Get basic support for GitLab working in the UI
This commit is contained in:
parent
e3aededcbc
commit
f091aaa07e
4 changed files with 33 additions and 7 deletions
|
@ -136,6 +136,14 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
|||
'templates': {
|
||||
'credentials': '/static/directives/trigger/githost/credentials.html',
|
||||
'trigger-description': '/static/directives/trigger/gitlab/trigger-description.html'
|
||||
},
|
||||
'repository_url': function(build) {
|
||||
return 'https://bitbucket.org/' + build.trigger.build_source;
|
||||
},
|
||||
'link_templates': {
|
||||
'commit': '/commit/{sha}',
|
||||
'branch': '/tree/{branch}',
|
||||
'tag': '/commits/{tag}',
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -184,7 +192,7 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
|||
}
|
||||
|
||||
var repositoryUrl = type.repository_url;
|
||||
if (!repositoryUrl) {
|
||||
if (!repositoryUrl || !repositoryUrl(build)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue