trigger-service: specific callback URLs for GH-git
This commit is contained in:
parent
e1def540da
commit
80ae3fd310
2 changed files with 2 additions and 1 deletions
|
@ -249,6 +249,7 @@ def github_oauth_attach():
|
|||
@callback.route('/github/callback/trigger/<path:repository>', methods=['GET'])
|
||||
@callback.route('/github/callback/trigger/<path:repository>/__new', methods=['GET'])
|
||||
@callback.route('/github/callback/trigger/<path:repostiory>/__git', methods=['GET'])
|
||||
@callback.route('/github/callback/trigger/<path:repostiory>/__git/__new', methods=['GET'])
|
||||
@route_show_if(features.GITHUB_BUILD)
|
||||
@require_session_login
|
||||
@parse_repository_name
|
||||
|
|
|
@ -63,7 +63,7 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
|||
],
|
||||
'get_redirect_url': function(namespace, repository) {
|
||||
var redirect_uri = KeyService['githubRedirectUri'] + '/trigger/' +
|
||||
namespace + '/' + repository;
|
||||
namespace + '/' + repository + '/__git';
|
||||
|
||||
// TODO(jschorr): Remove once the new layout is in place.
|
||||
if (CookieService.get('quay.exp-new-layout') == 'true') {
|
||||
|
|
Reference in a new issue