[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:
Xavier Morel 2024-06-21 10:42:08 +02:00
parent 3410f50248
commit 906505ed15

View File

@ -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":