mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] forwardport: gh api raises by default, avoid that here
This commit is contained in:
parent
ea410ab6d1
commit
c1cef0c18b
@ -132,7 +132,7 @@ class DeleteBranches(models.Model, Queue):
|
||||
_deleter.info('✘ PR owner != FP target owner (%s)', repo_owner)
|
||||
return # probably don't have access to arbitrary repos
|
||||
|
||||
github = GH(token=repository.project_id.fp_github_token, repo=fp_remote)
|
||||
github = GH(token=repository.project_id.fp_github_token, repo=fp_remote, check=False)
|
||||
refurl = 'git/refs/heads/' + branch
|
||||
ref = github('get', refurl)
|
||||
if ref.status_code != 200:
|
||||
|
Loading…
Reference in New Issue
Block a user