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