mirror of
https://github.com/odoo/runbot.git
synced 2025-03-30 23:05:44 +07:00
[FIX] runbot_merge: only cancel active staging on p=0
Not when any priority is set on any PR…
This commit is contained in:
parent
9286b346e8
commit
7233179d6a
@ -504,6 +504,7 @@ class PullRequests(models.Model):
|
|||||||
if is_admin:
|
if is_admin:
|
||||||
ok = True
|
ok = True
|
||||||
self.priority = param
|
self.priority = param
|
||||||
|
if param == 0:
|
||||||
self.target.active_staging_id.cancel(
|
self.target.active_staging_id.cancel(
|
||||||
"P=0 on %s:%s by %s, unstaging %s",
|
"P=0 on %s:%s by %s, unstaging %s",
|
||||||
self.repository.name, self.number,
|
self.repository.name, self.number,
|
||||||
|
Loading…
Reference in New Issue
Block a user