mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Add ANSWER_TO_AUTO_UPDATER option
This commit is contained in:
parent
de28fea3b5
commit
ac8ee25297
1 changed files with 4 additions and 0 deletions
4
run.py
4
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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue