mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP]: runbot_merge: sort unready PRs alphabetically
The `_order` of pull requests are just the `number`. Allow test `test_two_of_three_unready` to be reliable as both unready PRs have the same number.
This commit is contained in:
parent
3632463f80
commit
e169934e61
@ -769,7 +769,7 @@ class PullRequests(models.Model):
|
||||
for [ids] in self.env.cr.fetchall():
|
||||
prs = self.browse(ids)
|
||||
ready = prs.filtered(lambda p: p.state == 'ready')
|
||||
unready = (prs - ready).sorted()
|
||||
unready = (prs - ready).sorted(key=lambda p: (p.repository.name, p.number))
|
||||
|
||||
for r in ready:
|
||||
self.env['runbot_merge.pull_requests.feedback'].create({
|
||||
|
Loading…
Reference in New Issue
Block a user