Disable web endpoints for app repos
This commit is contained in:
parent
54efed62ee
commit
178373293d
3 changed files with 12 additions and 1 deletions
|
@ -31,6 +31,8 @@ def attach_github_build_trigger(namespace_name, repo_name):
|
|||
if not repo:
|
||||
msg = 'Invalid repository: %s/%s' % (namespace_name, repo_name)
|
||||
abort(404, message=msg)
|
||||
elif repo.kind.name != 'image':
|
||||
abort(501)
|
||||
|
||||
trigger = model.build.create_build_trigger(repo, 'github', token, current_user.db_user())
|
||||
repo_path = '%s/%s' % (namespace_name, repo_name)
|
||||
|
|
Reference in a new issue