mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: remove pull_head_name patch filter
Since we store the target_branch_name, filtering out pull head names that contains `patch-` is not necessary anymore. This commit is one first step towards a clean refactoring.
This commit is contained in:
parent
59d4eeaf24
commit
4c4b7213bb
@ -7,7 +7,6 @@ from odoo import models, fields, api
|
||||
from odoo.osv import expression
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
_re_patch = re.compile(r'.*patch-\d+$')
|
||||
|
||||
|
||||
class runbot_branch(models.Model):
|
||||
@ -123,9 +122,7 @@ class runbot_branch(models.Model):
|
||||
pi = pull_info or branch._get_pull_info()
|
||||
if pi:
|
||||
branch.target_branch_name = pi['base']['ref']
|
||||
if not _re_patch.match(pi['head']['label']):
|
||||
# label is used to disambiguate PR with same branch name
|
||||
branch.pull_head_name = pi['head']['label']
|
||||
branch.pull_head_name = pi['head']['label']
|
||||
else:
|
||||
branch.branch_name = ''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user