Skip to content

feat: pick the target branch when generating PR content - #5

Merged
ozerozdas merged 1 commit into
masterfrom
feat/pr-target-branch-picker
Sep 25, 2026
Merged

ozerozdas merged 1 commit into
masterfrom
feat/pr-target-branch-picker

Conversation

@ozerozdas

Copy link
Copy Markdown
Contributor

Summary

  • "Generate Pull Request Content" now asks for the target branch via a QuickPick instead of always diffing against the resolved default.
  • The default (pullRequestBaseBranch setting → origin/HEAD → main → master) is listed first and marked default, so Enter keeps the old behavior.
  • The list contains local then remote branches; the current branch, its remote twin and origin/HEAD are excluded. Esc cancels.

Refs NVC-1

Known gap

The picked branch drives the generated title/description, but it is not passed to the GitHub Pull Requests extension's create view (pr.create still only gets compareBranch). The target may need to be picked again there.

Test plan

  • npx jest (109/109), including new tests for branch listing and default ordering
  • tsc --noEmit, eslint, prettier
  • Manual: run the command from a feature branch, pick a non-default target, check the generated content

🤖 Generated with Claude Code

The PR content command always diffed against the resolved default
(setting, origin/HEAD, main, master). It now shows a QuickPick of local
and remote branches with that default listed first, so any target can
be chosen. The current branch, its remote twin and remote HEAD aliases
are excluded; Esc cancels.

Refs NVC-1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ozerozdas
ozerozdas merged commit 395e87f into master Sep 25, 2026
2 checks passed
@ozerozdas
ozerozdas deleted the feat/pr-target-branch-picker branch September 25, 2026 11:39
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