Work In Progress!

Get the full activation and deactivation cycle working for bitbucket.
This commit is contained in:
Joseph Schorr 2015-04-28 18:15:12 -04:00
parent 5cc91ed202
commit 6479f8ddc9
8 changed files with 204 additions and 65 deletions

View file

@ -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) {