Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

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

Open
bswck opened this issue Jan 7, 2024 · 1 comment

Comments

@bswck
Copy link
Member

bswck commented Jan 7, 2024

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
Copy link
Member Author

bswck commented Jan 7, 2024

Test.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant