Work In Progress!
Get the full activation and deactivation cycle working for bitbucket.
This commit is contained in:
parent
5cc91ed202
commit
6479f8ddc9
8 changed files with 204 additions and 65 deletions
|
@ -49,7 +49,8 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
|||
}
|
||||
|
||||
return 'GitHub Repository Push';
|
||||
}
|
||||
},
|
||||
'supports_full_directory_listing': true
|
||||
},
|
||||
|
||||
'bitbucket': {
|
||||
|
@ -75,7 +76,8 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
|||
return Features.BITBUCKET_BUILD;
|
||||
},
|
||||
'icon': 'fa-bitbucket',
|
||||
'title': function() { return 'Bitbucket Repository Push'; }
|
||||
'title': function() { return 'Bitbucket Repository Push'; },
|
||||
'supports_full_directory_listing': false
|
||||
},
|
||||
|
||||
'custom-git': {
|
||||
|
@ -104,6 +106,15 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
|||
}
|
||||
}
|
||||
|
||||
triggerService.supportsFullListing = function(name) {
|
||||
var type = triggerTypes[name];
|
||||
if (!type) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return !!type['supports_full_directory_listing'];
|
||||
};
|
||||
|
||||
triggerService.getTypes = function() {
|
||||
var types = [];
|
||||
for (var key in triggerTypes) {
|
||||
|
|
Reference in a new issue