trigger-service: copy missing fields
This commit is contained in:
parent
e6a7156657
commit
9c3655dc17
1 changed files with 14 additions and 5 deletions
|
@ -31,6 +31,18 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
||||||
|
|
||||||
return authorize_url + 'client_id=' + client_id +
|
return authorize_url + 'client_id=' + client_id +
|
||||||
'&scope=repo,user:email&redirect_uri=' + redirect_uri;
|
'&scope=repo,user:email&redirect_uri=' + redirect_uri;
|
||||||
|
},
|
||||||
|
'is_enabled': function() {
|
||||||
|
return Features.GITHUB_BUILD;
|
||||||
|
},
|
||||||
|
'icon': 'fa-github',
|
||||||
|
'title': function() {
|
||||||
|
var isEnterprise = KeyService.isEnterprise('github-trigger');
|
||||||
|
if (isEnterprise) {
|
||||||
|
return 'GitHub Enterprise Repository Push (API)';
|
||||||
|
}
|
||||||
|
|
||||||
|
return 'GitHub Repository Push (API)';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -64,20 +76,17 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
||||||
return authorize_url + 'client_id=' + client_id +
|
return authorize_url + 'client_id=' + client_id +
|
||||||
'&scope=repo,user:email&redirect_uri=' + redirect_uri;
|
'&scope=repo,user:email&redirect_uri=' + redirect_uri;
|
||||||
},
|
},
|
||||||
|
|
||||||
'is_enabled': function() {
|
'is_enabled': function() {
|
||||||
return Features.GITHUB_BUILD;
|
return Features.GITHUB_BUILD;
|
||||||
},
|
},
|
||||||
|
|
||||||
'icon': 'fa-github',
|
'icon': 'fa-github',
|
||||||
|
|
||||||
'title': function() {
|
'title': function() {
|
||||||
var isEnterprise = KeyService.isEnterprise('github-trigger');
|
var isEnterprise = KeyService.isEnterprise('github-trigger');
|
||||||
if (isEnterprise) {
|
if (isEnterprise) {
|
||||||
return 'GitHub Enterprise Repository Push';
|
return 'GitHub Enterprise Repository Push (Deploy Key)';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'GitHub Repository Push';
|
return 'GitHub Repository Push (Deploy Key)';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue