Skip to content

fix(ci): suppress phantom PRs when bst source track only normalizes r…#317

Merged
castrojo merged 1 commit intoprojectbluefin:mainfrom
castrojo:feature/fix-phantom-version-prs
Apr 22, 2026
Merged

fix(ci): suppress phantom PRs when bst source track only normalizes r…#317
castrojo merged 1 commit intoprojectbluefin:mainfrom
castrojo:feature/fix-phantom-version-prs

Conversation

@castrojo
Copy link
Copy Markdown
Contributor

…ef format

bst source track rewrites plain SHA refs to git-describe format (e.g. 965cd7b9... -> v0.2.13-0-g965cd7b9...) even when the underlying commit has not changed. This caused the daily bot to open PRs like #312 and #311 where old and new SHAs were identical.

Fix: after detecting a git diff, compare the set of terminal 40-char hex SHAs extracted from ref: lines in the old file state (HEAD) vs the new (working tree). If the sets are identical and non-empty, it is a format-only normalization — set has_changes=false and skip PR creation.

Using file-state comparison (not diff-hunk parsing) correctly handles multi-ref elements such as common.bst (git_repo + git_module).

Assisted-by: Claude Sonnet 4.6 via GitHub Copilot

…ef format

bst source track rewrites plain SHA refs to git-describe format
(e.g. 965cd7b9... -> v0.2.13-0-g965cd7b9...) even when the underlying
commit has not changed. This caused the daily bot to open PRs like projectbluefin#312
and projectbluefin#311 where old and new SHAs were identical.

Fix: after detecting a git diff, compare the set of terminal 40-char
hex SHAs extracted from ref: lines in the old file state (HEAD) vs the
new (working tree). If the sets are identical and non-empty, it is a
format-only normalization — set has_changes=false and skip PR creation.

Using file-state comparison (not diff-hunk parsing) correctly handles
multi-ref elements such as common.bst (git_repo + git_module).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Assisted-by: Claude Sonnet 4.6 via GitHub Copilot
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@castrojo castrojo merged commit 3fc6442 into projectbluefin:main Apr 22, 2026
2 checks passed
@castrojo castrojo deleted the feature/fix-phantom-version-prs branch April 22, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant