mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: fix branch infos singleton
This commit is contained in:
parent
1330d52098
commit
c14b864b06
@ -38,7 +38,7 @@ class runbot_branch(models.Model):
|
||||
branch.branch_url = "https://%s/pull/%s" % (branch.repo_id.base, branch.branch_name)
|
||||
else:
|
||||
branch.branch_url = "https://%s/tree/%s" % (branch.repo_id.base, branch.branch_name)
|
||||
pi = self._get_pull_info()
|
||||
pi = branch._get_pull_info()
|
||||
if pi:
|
||||
branch.target_branch_name = pi['base']['ref']
|
||||
if not _re_patch.match(pi['head']['label']):
|
||||
|
Loading…
Reference in New Issue
Block a user