more hardcoded github.com urls
This commit is contained in:
parent
8b1dfd67f9
commit
2aba520512
|
@ -86,12 +86,12 @@ require 'config/emoij'
|
||||||
_githubReferenceLink: (reference, current, matched) ->
|
_githubReferenceLink: (reference, current, matched) ->
|
||||||
owner = matched.owner || current.owner
|
owner = matched.owner || current.owner
|
||||||
repo = matched.repo || current.repo
|
repo = matched.repo || current.repo
|
||||||
"<a href=\"https://github.com/#{owner}/#{repo}/issues/#{matched.number}\">#{reference}</a>"
|
"<a href=\"#{Travis.config.source_endpoint}/#{owner}/#{repo}/issues/#{matched.number}\">#{reference}</a>"
|
||||||
|
|
||||||
_githubUserRegexp: new RegExp("\\B@([\\w-]+)", 'g')
|
_githubUserRegexp: new RegExp("\\B@([\\w-]+)", 'g')
|
||||||
|
|
||||||
_githubUserLink: (reference, username) ->
|
_githubUserLink: (reference, username) ->
|
||||||
"<a href=\"https://github.com/#{username}\">#{reference}</a>"
|
"<a href=\"#{Travis.config.source_endpoint}/#{username}\">#{reference}</a>"
|
||||||
|
|
||||||
_githubCommitReferenceRegexp: new RegExp("([\\w-]+)?\\/([\\w-]+)?@([0-9A-Fa-f]+)", 'g')
|
_githubCommitReferenceRegexp: new RegExp("([\\w-]+)?\\/([\\w-]+)?@([0-9A-Fa-f]+)", 'g')
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ require 'travis/model'
|
||||||
_reposCount: Ember.attr(Number, key: 'repos_count')
|
_reposCount: Ember.attr(Number, key: 'repos_count')
|
||||||
|
|
||||||
urlGithub: (->
|
urlGithub: (->
|
||||||
"https://github.com/#{@get('login')}"
|
"#{Travis.config.source_endpoint}/#{@get('login')}"
|
||||||
).property()
|
).property()
|
||||||
|
|
||||||
# TODO: maybe it would be good to add a "default" value for Ember.attr
|
# TODO: maybe it would be good to add a "default" value for Ember.attr
|
||||||
|
|
|
@ -16,11 +16,11 @@ require 'travis/model'
|
||||||
).property('ownerName', 'name')
|
).property('ownerName', 'name')
|
||||||
|
|
||||||
urlGithub: (->
|
urlGithub: (->
|
||||||
"https://github.com/#{@get('slug')}"
|
"#{Travis.config.source_endpoint}/#{@get('slug')}"
|
||||||
).property()
|
).property()
|
||||||
|
|
||||||
urlGithubAdmin: (->
|
urlGithubAdmin: (->
|
||||||
"https://github.com/#{@get('slug')}/settings/hooks#travis_minibucket"
|
"#{Travis.config.source_endpoint}/#{@get('slug')}/settings/hooks#travis_minibucket"
|
||||||
).property()
|
).property()
|
||||||
|
|
||||||
toggle: ->
|
toggle: ->
|
||||||
|
|
|
@ -26,7 +26,7 @@ require 'travis/model'
|
||||||
).observes('isSyncing')
|
).observes('isSyncing')
|
||||||
|
|
||||||
urlGithub: (->
|
urlGithub: (->
|
||||||
"https://github.com/#{@get('login')}"
|
"#{Travis.config.source_endpoint}/#{@get('login')}"
|
||||||
).property()
|
).property()
|
||||||
|
|
||||||
_rawPermissions: (->
|
_rawPermissions: (->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user