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.