Skip to content

Add base_branch input, always branch off the base branch - #18

Merged
peterus merged 1 commit into
mainfrom
feat/base-branch
Nov 16, 2026
Merged

peterus merged 1 commit into
mainfrom
feat/base-branch

Conversation

@peterus

@peterus peterus commented Nov 16, 2026

Copy link
Copy Markdown
Owner
  • Neuer optionaler Input base_branch (Default: Default-Branch des Repos) – z. B. develop bei Git-Flow
  • Bugfix: Update-Branches wurden vom gerade ausgecheckten Stand abgezweigt, die PR ging aber gegen den Default-Branch. Lief der Workflow auf einem anderen Branch, landeten dessen Commits mit in den Update-PRs. Jetzt wird origin/<base_branch> gefetcht (auch bei shallow Checkout) und Analyse + alle Update-Branches basieren darauf; am Ende wird der ursprüngliche Checkout wiederhergestellt.
  • Neue Flow-Tests mit echtem Git (lokales Bare-Remote, normal + shallow Clone) und gemockter GitHub-API

🤖 Generated with Claude Code

Update branches were created from whatever was checked out while the
pull request targeted the default branch. A run started on another
branch therefore leaked that branch's commits into the update PRs.

Now the base branch (input base_branch, default: the repository's
default branch) is fetched and checked out before the analysis, every
update branch starts from it, and the original checkout is restored
at the end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@peterus
peterus merged commit bc98c3d into main Nov 16, 2026
2 checks passed
@peterus
peterus deleted the feat/base-branch branch November 16, 2026 16:40
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