mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Typo
This commit is contained in:
parent
e3d2dc3046
commit
0136788358
1 changed files with 1 additions and 1 deletions
2
run.py
2
run.py
|
@ -1037,7 +1037,7 @@ async def github(request):
|
|||
async def is_user_in_organization(user):
|
||||
token = open("./github_bot_token").read().strip()
|
||||
async with aiohttp.ClientSession(headers={"Authorization": f"token {token}", "Accept": "application/vnd.github.v3+json"}) as session:
|
||||
await resp = session.get(f"https://api.github.com/orgs/YunoHost-Apps/members/{user}")
|
||||
resp = await session.get(f"https://api.github.com/orgs/YunoHost-Apps/members/{user}")
|
||||
return resp.status == 204
|
||||
|
||||
if not await is_user_in_organization(hook_infos["comment"]["user"]["login"]):
|
||||
|
|
Loading…
Add table
Reference in a new issue