mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[IMP] runbot_merge: filter on the base attribute not computed
Should not actually do anything relevant, but seems like a good idea.
This commit is contained in:
parent
3410f50248
commit
906505ed15
@ -1058,7 +1058,7 @@ class PullRequests(models.Model):
|
||||
# could have two PRs (e.g. one open and one closed) at least
|
||||
# temporarily on the same head, or on the same head with different
|
||||
# targets
|
||||
updateable = self.filtered(lambda p: p.state != 'merged')
|
||||
updateable = self.filtered(lambda p: not p.merge_date)
|
||||
updateable.statuses = statuses
|
||||
for pr in updateable:
|
||||
if pr.status == "failure":
|
||||
|
Loading…
Reference in New Issue
Block a user