Skip to content

Numerical branch names break PR finder #3885

@vilmibm

Description

@vilmibm

Describe the bug

A clear and concise description of what the bug is. Include version by typing gh --version.

Steps to reproduce the behavior

git checkout -b 1234
echo foo > foo.txt && git commit foo.txt -m'foo'
gh pr create -t'foo' -b'bar'

Expected vs actual behavior

expected: it works
actual: the PR finder fails because it misinterprets a numerical Selector as a PR number instead of a branch name.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions