mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot_merge: when looking for stageable PRs group by target
This is more of a sanity check as it normally should not be a factor: labels generally contain the target name, and staging checks are performed per-target so we're not mixing multiple targets anyway. But let's say a third-party creates a fix-foo branch for A and a fix-foo branch for B, we want to ensure they're not considered batched together.
This commit is contained in:
parent
b96bc9a58c
commit
3b417b16a1
@ -337,6 +337,7 @@ class Branch(models.Model):
|
||||
AND pr.state != 'merged'
|
||||
AND pr.state != 'closed'
|
||||
GROUP BY
|
||||
pr.target,
|
||||
CASE
|
||||
WHEN pr.label SIMILAR TO '%%:patch-[[:digit:]]+'
|
||||
THEN pr.id::text
|
||||
|
Loading…
Reference in New Issue
Block a user