Add CONTRIBUTOR to the allowed author_association

This commit is contained in:
Kayou 2021-01-20 14:09:37 +01:00 committed by GitHub
parent 268a3f8289
commit e569bffd89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
run.py
View file

@ -1032,7 +1032,7 @@ async def github(request):
# We only accept this from people which are member/owner of the org/repo
# https://docs.github.com/en/free-pro-team@latest/graphql/reference/enums#commentauthorassociation
if hook_infos["comment"]["author_association"] not in ["MEMBER", "OWNER", "COLLABORATOR"]:
if hook_infos["comment"]["author_association"] not in ["MEMBER", "OWNER", "COLLABORATOR", "CONTRIBUTOR"]:
# Unauthorized
abort(403, "Unauthorized")