Is there any event or way to get a notification pushed (webhook) when the description or title of a Pull Request changes?
I currently listed to pull_request
event but it only fires when a PR is “opened”, “closed”, “synchronize”, or “reopened”.
I'm tracking some links/tags/word from the description of a PR and during the review of the PR, the author may change the description but I cant find a way to receive a notification when this is happening.
One way could be to be checking with the api for changes (polling) but I need some better way to receive get this (push).
Webhooks can be installed on an organization, a specific repository, or a GitHub App.
Secret. Setting a webhook secret allows you to ensure that POST requests sent to the payload URL are from GitHub. When you set a secret, you'll receive the X-Hub-Signature and X-Hub-Signature-256 headers in the webhook POST request.
Previously there was no such hook that could satisfy this answer, however 7 years have passed, and things have changed. The contemporary GitHub platform does offer a hook for listening to whether or not a Pull Request has been altered (aka "Edited").
A very thorough, and well developed,
Pull Request Hook
, or (PR Hook), now exists. As with all of the associated "GitHub WebHooks" , the PR-Hook uses aWebhook payload object
that is unique from all otherGitHub WebHooks
. The PR-Hook has special actions that can trigger code in response to a wide variety of events, however; for specifically to the altercation of a Pull Request's description, theedited
action is what you will likely want to use.
Pull Request Hooks
This is now possible, since there is an action edited
.
Docs: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With