Slide 22
Slide 22 text
Webhook event handler
@router.register("issue", action="opened")
async def issue_opened(event, gh, *args, **kwargs):
...
response = await gh.post(
f"{issue_url}/comments",
data={"body": msg},
oauth_token=installation_access_token["token"],
)
GitHub APIs with gidgethub
Mariatta fosstodon.org/@mariatta