python icon indicating copy to clipboard operation
python copied to clipboard

Create Discord webhook integrations and set up GitHub webhooks to publish to them

Open bswck opened this issue 1 year ago • 1 comments

https://docs.hikari-py.dev/en/latest/reference/hikari/impl/rest/#hikari.impl.rest.RESTClientImpl.create_webhook https://docs.github.com/en/webhooks/webhook-events-and-payloads#commit_comment

gh api /repos/{{repo_name}}/hooks --input - <<< '{"name":"web","events":["create","commit_comment","pull_request_review_comment","delete","fork","issue_comment","issues","label","member","milestone","public","pull_request","pull_request_review","push","release","repository","star","watch"],"config":{"url":"{{webhook_url}}","content_type":"json"}}'

bswck avatar Jan 07 '24 22:01 bswck

Test.

bswck avatar Jan 07 '24 22:01 bswck