From ac8ee252972ea1540305afba6e4675a3a8b21b84 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 16 Jan 2022 19:31:45 +0100 Subject: [PATCH] Add ANSWER_TO_AUTO_UPDATER option --- run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.py b/run.py index bb9a7f6..f8f4caa 100644 --- a/run.py +++ b/run.py @@ -1123,6 +1123,9 @@ async def github(request): or not hook_infos["pull_request"]["head"]["ref"].startswith("ci-auto-update-"): # Unauthorized abort(204, "Nothing to do") + if not app.config.ANSWER_TO_AUTO_UPDATER: + # Unauthorized + abort(204, "Nothing to do, I am configured not to answer to the auto-updater") # Fetch the PR infos (yeah they ain't in the initial infos we get @_@) pr_infos_url = hook_infos["pull_request"]["url"] @@ -1246,6 +1249,7 @@ def main(config="./config.py"): "MONITOR_GIT": False, "MONITOR_ONLY_GOOD_QUALITY_APPS": False, "MONTHLY_JOBS": False, + "ANSWER_TO_AUTO_UPDATER": True, "WORKER_COUNT": 1, }