mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +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
|
success = False
|
||||||
if st in ('error', 'failure'):
|
if st in ('error', 'failure'):
|
||||||
failed |= pr
|
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:
|
if success:
|
||||||
oldstate = pr.state
|
oldstate = pr.state
|
||||||
if oldstate == 'opened':
|
if oldstate == 'opened':
|
||||||
|
Loading…
Reference in New Issue
Block a user