Skip to content

fix(pr-create): guard web flow with base preflights#190

Merged
barrettruth merged 1 commit intomainfrom
fix/web-create-preflights
Apr 12, 2026
Merged

fix(pr-create): guard web flow with base preflights#190
barrettruth merged 1 commit intomainfrom
fix/web-create-preflights

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

:Forge pr create web could still push and open the browser flow in cases that normal PR creation already should reject, especially when the current branch already matched the effective base branch or there were no changes from origin/<base>.

Solution

Reuse the same base-resolution and creatability checks before the web flow pushes or opens the browser. This keeps valid same-origin PR creation working, blocks branch==base, and blocks no-diff cases. The PR also removes a stale |forge-review| vimdoc tag reference so CI passes.

@barrettruth barrettruth merged commit 4a8c1f0 into main Apr 12, 2026
7 of 8 checks passed
@barrettruth barrettruth deleted the fix/web-create-preflights branch April 12, 2026 20:41
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