From b35ae4b1c02cd311b518ca265a83a279c2a73a50 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 21 2018 15:23:08 +0000 Subject: Get the Pagure CI plugin so we can access the ci_hook backref Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/query.py b/pagure/lib/query.py index e6234f7..2b5c855 100644 --- a/pagure/lib/query.py +++ b/pagure/lib/query.py @@ -1939,6 +1939,8 @@ def new_pull_request( ) # Send notification to the CI server + ci_hook = pagure.lib.plugins.get_plugin("Pagure CI") + ci_hook.db_object() if ( pagure_config.get("PAGURE_CI_SERVICES") and request.project.ci_hook