mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] forwardport: only send notifications to the PR we're processing
This commit is contained in:
parent
e5efd52674
commit
2971d042a4
@ -824,7 +824,7 @@ class PullRequests(models.Model):
|
||||
success = False
|
||||
if st in ('error', 'failure'):
|
||||
failed |= pr
|
||||
self._notify_ci_new_failure(ci, to_status(statuses.get(ci.strip(), 'pending')))
|
||||
pr._notify_ci_new_failure(ci, to_status(statuses.get(ci.strip(), 'pending')))
|
||||
if success:
|
||||
oldstate = pr.state
|
||||
if oldstate == 'opened':
|
||||
|
Loading…
Reference in New Issue
Block a user