[FIX] forwardport: only send notifications to the PR we're processing

This commit is contained in:
Xavier Morel 2019-10-11 09:37:03 +02:00
parent e5efd52674
commit 2971d042a4

View File

@ -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':