python
python copied to clipboard
Create Discord webhook integrations and set up GitHub webhooks to publish to them
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"}}'
Test.