Learning center

How to keep webhook retries from duplicating review evidence

Use the host’s delivery ID to recognize repeated delivery and the review’s own ID and event type to interpret the action. Retain successive actions for a review. They can describe real transitions that a deduplication key for the whole pull request would erase.

Redeliver a fixture approval#

GitHub sends a pull_request_review submission event for a fixture pull request. Suppose the receiver saves it but its acknowledgement is lost. An operator redelivers the event. GitHub documents that a redelivery keeps the original X-GitHub-Delivery value. Both deliveries should leave one recorded action.

Now have the fixture maintainer dismiss that review. The dismissal is a separate event and should remain visible beside the submission. Verify that the reader can see who submitted the decision, when it changed and which review each event refers to. GitHub webhook redelivery and delivery IDs · GitHub pull request review event payloads

Check the ingestion result against the host’s review record for the same fixture. A delivery receipt records what arrived, and gaps can still require a separate reconciliation.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading