From 7bd0fa98d46e27b2418d80d9e3fad80bcd774d6e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 15 2018 13:07:16 +0000 Subject: Load the Pagure CI plugin so project.ci_hook is accessible Without this the worker fails to access this attribute and the method fails. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/query.py b/pagure/lib/query.py index 236e305..19c1167 100644 --- a/pagure/lib/query.py +++ b/pagure/lib/query.py @@ -1360,6 +1360,9 @@ def add_pull_request_comment( # Send notification to the CI server, if the comment added was a # notification and the PR is still open and project is not private + ci_hook = pagure.lib.plugins.get_plugin("Pagure CI") + ci_hook.db_object() + ci_triggered = False if ( notification