mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +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,11 +504,12 @@ class PullRequests(models.Model):
|
|||||||
if is_admin:
|
if is_admin:
|
||||||
ok = True
|
ok = True
|
||||||
self.priority = param
|
self.priority = param
|
||||||
self.target.active_staging_id.cancel(
|
if param == 0:
|
||||||
"P=0 on %s:%s by %s, unstaging %s",
|
self.target.active_staging_id.cancel(
|
||||||
self.repository.name, self.number,
|
"P=0 on %s:%s by %s, unstaging %s",
|
||||||
author.github_login, self.target.name,
|
self.repository.name, self.number,
|
||||||
)
|
author.github_login, self.target.name,
|
||||||
|
)
|
||||||
|
|
||||||
_logger.info(
|
_logger.info(
|
||||||
"%s %s(%s) on %s:%s by %s (%s)",
|
"%s %s(%s) on %s:%s by %s (%s)",
|
||||||
|
Loading…
Reference in New Issue
Block a user