Learning center

What to retain when exporting GitHub review decisions

Keep the provider review ID, reviewer identity, submission time, state and commit ID. Also preserve the repository and pull request identity. A pull request’s current approval display can answer whether it meets the current policy. The export needs to tell a reader what happened at the time.

Preserve an approval and its later dismissal#

Imagine a maintainer approves commit A. A new push lands, and an authorized maintainer dismisses the earlier review. An export that keeps only the pull request’s final approval count discards the first action and gives the reader no way to find its review.

Use GitHub’s review list to identify the earlier review and its current state. If the organization needs the original submitted state, capture it as it occurs and retain later changes as dated records. A fresh export after dismissal can show the dismissed state. It should only report the earlier state if a retained event, message or receipt supports it. GitHub review list and dismissal endpoints · GitHub pull request review webhook events

Export a fixture with both events and ask a colleague to identify which commit the initial reviewer saw. For comments about individual lines, also keep their original diff coordinates.

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