mirror of
https://github.com/Comfy-Org/github-workflows.git
synced 2026-11-05 00:17:37 +00:00
[PR #45] [MERGED] fix(bump-callers): commit all of a repo's files onto one bump branch (BE-3896) #54
Labels
No labels
cursor-review-catalog-drift
groom
groom
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/github-workflows#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/github-workflows/pull/45
Author: @mattmillerai
Created: 7/21/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @mattmillerai
Base:
matt/be-3882-stable-bump-branch← Head:matt/be-3896-multi-file-per-repo📝 Commits (2)
4455be2fix(bump-callers): commit all of a repo's files onto one bump branch (BE-3896)214a1a7fix(bump-callers): harden per-file staging against partial/erroneous bumps (BE-3896)📊 Changes
2 files changed (+317 additions, -60 deletions)
View changed files
📝
.github/bump-callers/bump-callers.sh(+166 -58)📝
.github/bump-callers/tests/test_bump_callers.sh(+151 -2)📄 Description
ELI-5
The SHA-bumper opens one PR per repo on a fixed branch (
ci/bump-<tag>). To keep that PR a clean "bump to @SHORT" diff, it wipes the branch back to the repo's default-branch tip before committing. That wipe ran once per file. So when one repo pins the reusable workflow from two files (a monorepo), the second file's wipe erased the first file's commit — the PR ended up with only the last file bumped, even though every file "succeeded." This groups the work by repo: wipe the branch once, then commit each of that repo's files onto it, then open/update the single PR. Now both files ride along.What changed
bump-callers.sh:bump_one()(per-entry) →bump_repo()(per-repo). The driving loop now groups the flatrepo|file|labelentry list by repo (first-seen order preserved) and callsbump_repoonce per repo with all its entries.tests/test_bump_callers.sh: theghstub now models the one bump branch's committed file set (agit/refscreate/reset truncates it; a contents PUT appends the file). A new monorepo case drives two entries for the SAME repo and asserts both files land on the branch and exactly one PR is opened.Only triggers on the multi-file path
Single-file-per-repo callers are structurally unchanged — the 37 pre-existing test assertions (single caller, PR reuse, decoy-fork rejection, two distinct repos, empty/malformed handling) all pass untouched.
Testing
bash .github/bump-callers/tests/test_bump_callers.sh→ 45 passed, 0 failed (37 existing + 8 new).shellcheck -x .github/bump-callers/bump-callers.sh .github/bump-callers/tests/test_bump_callers.sh→ clean.ci-bsurvives, two PRs opened), exactly matching the bug. Against this fix they pass.Deferred from a review thread on #44 (BE-3896).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.