Skip to content

Instantly share code, notes, and snippets.

Avatar

Suttikiet Sadaengrit smoothzebra

View GitHub Profile
@smoothzebra
smoothzebra / pull_request_webhook.md
Created May 14, 2022 — forked from bjhess/pull_request_webhook.md
The way I had to add a github repo webhook for pull requests
View pull_request_webhook.md

This is more complex than necessary.

GitHub webhooks for a URL by default only fire on repo pushes. There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API. I prefer to do this type of thing with Hurl.

{
  "name": "web",
 "active": true,