0
0
Fork 0

Configrationable repository url (#10600)

* config: Add GITHUB_REPOSITORY for repository name

* config: Add SOURCE_BASE_URL for repository url

* Show source_url and repository name on getting started
This commit is contained in:
Sho Kusano 2019-04-21 11:41:34 +09:00 committed by Eugen Rochko
parent 3d70ec470a
commit 3e6c7f3617
4 changed files with 8 additions and 4 deletions

View file

@ -33,11 +33,11 @@ module Mastodon
end
def repository
'tootsuite/mastodon'
ENV.fetch('GITHUB_REPOSITORY') { 'tootsuite/mastodon' }
end
def source_base_url
"https://github.com/#{repository}"
ENV.fetch('SOURCE_BASE_URL') { "https://github.com/#{repository}" }
end
# specify git tag or commit hash here