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:
parent
3d70ec470a
commit
3e6c7f3617
4 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue