mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Make sure the issue is a pull request
Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
parent
d97747eed0
commit
19f26497e7
1 changed files with 2 additions and 1 deletions
3
run.py
3
run.py
|
@ -989,7 +989,8 @@ async def github(request):
|
|||
# - On issue/PRs which are still open
|
||||
if hook_type != "issue_comment" \
|
||||
or hook_infos["action"] != "created" \
|
||||
or hook_infos["issue"]["state"] != "open": \
|
||||
or hook_infos["issue"]["state"] != "open" \
|
||||
or "pull_request" not in hook_infos["issue"]:
|
||||
# idk what code we want to return
|
||||
abort(400)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue