mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +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)
|
_deleter.info('✘ PR owner != FP target owner (%s)', repo_owner)
|
||||||
return # probably don't have access to arbitrary repos
|
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
|
refurl = 'git/refs/heads/' + branch
|
||||||
ref = github('get', refurl)
|
ref = github('get', refurl)
|
||||||
if ref.status_code != 200:
|
if ref.status_code != 200:
|
||||||
|
Loading…
Reference in New Issue
Block a user