From 2971d042a4617e6e5f2d8b8ae98f44c290a1865f Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 11 Oct 2019 09:37:03 +0200 Subject: [PATCH] [FIX] forwardport: only send notifications to the PR we're processing --- runbot_merge/models/pull_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot_merge/models/pull_requests.py b/runbot_merge/models/pull_requests.py index ab4a08ae..efb5e79e 100644 --- a/runbot_merge/models/pull_requests.py +++ b/runbot_merge/models/pull_requests.py @@ -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':