Repository navigation
fix(release): release notes abort when a commit body mentions a deleted PR - #160305
Conversation
The release-notes verifier aborted on #155121, a pull request GitHub no longer returns, which only appears as context in the body of #156166. The verifier now records exact GraphQL NOT_FOUND results and omits a reference only when it is confined to contextual commit-body text (not a subject PR ref, closing reference, provenance override, or notes/record citation) and lies below the highest resolved number. Omitted references are reported in the manifest as unavailableReferences and never credited; every other unresolved reference stays fatal.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 5:00 AM ET / 09:00 UTC. ClawSweeper reviewWhat this changesThe branch lets the release-note verifier report and omit exact GitHub NOT_FOUND references found only in commit-body context, and adds manifest output and regression tests. Merge readiness✅ Ready for maintainer review Current main still fails on an unresolved reference in release history. This PR addresses the reported case, and the review found no concrete defect in the proposed exception. Priority: P2 Review scores
Verification
How this fits togetherRelease maintainers give the verifier a Git commit range and draft notes. It resolves GitHub references, checks contributor credit, and produces a contribution record and manifest. flowchart LR
A[Git commit range] --> C[Collect references]
B[Draft release notes] --> C
C --> D[GitHub resolution]
D --> E[Check citation role]
E --> F[Verified release notes]
E --> G[Unavailable reference list]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +186, Docs +1, Other +96. Total +283 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep release attribution strict for credit-bearing citations while allowing an auditable exception for deleted contextual links. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main fails on unresolved source references, and the cited merged commit contains the contextual reference. This read-only review did not run the verifier. Is this the best way to solve the issue? Yes. The exception is confined to exact missing body context and retains fatal checks for references that affect release notes or credit. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7510c4bd5289. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…ed PR (openclaw#160305) The release-notes verifier now records exact GraphQL NOT_FOUND results and omits a reference only when it appears solely as contextual commit-body text and lies below the highest resolved number, reporting it as manifest unavailableReferences without credit. Every other unresolved reference stays fatal. Unblocks 2026.9.7 notes regeneration (openclaw#155121 mentioned in openclaw#156166).
What Problem This Solves
Fixes: release-note generation for 2026.9.7 aborts with
GitHub could not resolve source references: #155121because a merged commit body (#156166) mentions a pull request that GitHub no longer returns.User Impact
No user-visible product change. Release maintainers can regenerate release notes and contribution records for ranges whose commit bodies mention deleted pull requests, without a local workaround.
Why This Change Was Made
The verifier now keeps exact GraphQL
NOT_FOUNDresults and omits a reference only when it appears solely as contextual commit-body text: not a subject PR reference, closing reference, provenance override, or notes/record citation, and lower than the highest number that resolved. Omitted references are reported asunavailableReferencesin the manifest and on stderr and never produce credit or record rows. Every other unresolved reference stays fatal.Evidence
verify-release-notes.mjs --base 814a7e752afc --target d09ffd222826 --shipped-ref v2026.9.6 --version 2026.9.7against the prepared 2026.9.7 notes verifies 2,498 PRs and reports only#155121(commitb6b45244ab75) as unavailable; before this change the same command aborted.node scripts/run-vitest.mjs test/scripts/verify-release-notes.test.ts: 120 tests pass (134.9 s wall for the whole file; the 21 new cases take 4.9 s). The regression reproduced the abort before the fix. Strictness cases cover subject refs, closing refs, notes/record citations, non-NOT_FOUNDerrors, and numbers above the highest resolved reference.$autoreview(Codex): scoped-clean, no P0-P2 findings.