Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a GitHub hook to listen when a PR description changes?

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_requestevent 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).

like image 284
dimirc Avatar asked Mar 15 '14 04:03

dimirc


People also ask

Can GitHub receive Webhooks?

Webhooks can be installed on an organization, a specific repository, or a GitHub App.

What is secret in GitHub webhook?

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.


2 Answers


GitHub Pull Request Hook

Updated: the 26th of August 2021 26th of 2021

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 a Webhook payload object that is unique from all other GitHub 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, the edited action is what you will likely want to use.




GitHub Official Documentation for Pull Request Hooks


like image 82
dimirc Avatar answered Nov 15 '22 09:11

dimirc


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

like image 24
rethab Avatar answered Nov 15 '22 07:11

rethab