webhook: also allow yunohost-bot to auto-trigger job for ci-auto-update- branches

This commit is contained in:
Alexandre Aubin 2023-04-05 16:56:16 +02:00
parent d130e12d44
commit 52ef23a2cb

2
run.py
View file

@ -1558,7 +1558,7 @@ async def github(request):
# We only accept PRs that are created by github-action bot
if hook_infos["pull_request"]["user"][
"login"
] != "github-actions[bot]" or not hook_infos["pull_request"]["head"][
] not in ["github-actions[bot]", "yunohost-bot"] or not hook_infos["pull_request"]["head"][
"ref"
].startswith(
"ci-auto-update-"