Repository navigation
Make automation PR reconciliation safe and effective - #619
Merged
GraciousGazelles merged 6 commits intoAug 15, 2026
Merged
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the automation PR supersession script to support robust version parsing and comparison for Dependabot updates, and introduces dedicated handling for models-json PRs along with comprehensive unit tests. The review feedback highlights a logic bug in strictly_supersedes where a newer stable release does not supersede an older prerelease, and suggests adding a corresponding test case. Additionally, it is recommended to normalize the author and repository names to lowercase in models_key to ensure case-insensitive comparisons.
GraciousGazelles
marked this pull request as ready for review
August 15, 2026 05:21
GraciousGazelles
deleted the
fix/automation-pr-reconciliation-safety-20260815
branch
August 15, 2026 05:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context
The scheduled model-sync reconciliation reached an actionable stale/current pair but failed while posting the stale pull request comment with
Resource not accessible by integration. The workflow declared issue write access while mutating pull requests. Separately, the existing numeric-token comparator could rank a prerelease above the corresponding stable release.This change uses pull-request write access, closes through the pull-request API, and checks for the exact existing comment before posting. Dependabot groups now reconcile only when one candidate provably supersedes every other candidate; unsupported or ambiguous version forms produce no close action.
Validation
just test-github-scripts(282 tests)git diff --checkHosted validation and an exact actionable-pair acceptance run will be recorded before this draft is marked ready.