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