Skip to content

Allow PR create to create PRs with numerical branch names#5090

Merged
samcoe merged 1 commit intotrunkfrom
fix-pr-create-number-branch
Jan 25, 2022
Merged

Allow PR create to create PRs with numerical branch names#5090
samcoe merged 1 commit intotrunkfrom
fix-pr-create-number-branch

Conversation

@samcoe
Copy link
Contributor

@samcoe samcoe commented Jan 24, 2022

This PR adds a special case for the pr create command so that it can create PRs on branches that have numerical names. It adds a special case to the pull request finder where if the BaseBranch option is specified then always interpret the Selector option as a branch name rather than a potential PR number. The pr create command is the only command that uses the BaseBranch option functionality.

Closes #3885

@samcoe samcoe requested a review from a team as a code owner January 24, 2022 14:39
@samcoe samcoe requested review from mislav and removed request for a team January 24, 2022 14:39
@samcoe samcoe self-assigned this Jan 24, 2022
Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome; thank you for a straightforward solution and for documenting the hack really well for future generations!

@samcoe samcoe merged commit 603502f into trunk Jan 25, 2022
@samcoe samcoe deleted the fix-pr-create-number-branch branch January 25, 2022 05:22
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.

Numerical branch names break PR finder

2 participants