We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pr edit
merge
pushRemote
Version:
gh version 2.4.0 (2021-12-21) https://github.com/cli/cli/releases/tag/v2.4.0
.git/config
[branch "xyz-feature-branch"] pushRemote = origin remote = origin merge = refs/heads/main
This should indicate to git that:
origin/xyz-feature-branch
origin/main
However, upon typing gh pr edit --add-reviewers I get the error message:
gh pr edit --add-reviewers
no pull requests found for branch "develop"
If you change the .git/config to be:
[branch "xyz-feature-branch"] pushRemote = origin
Then gh works.
gh
Expected: The github cli uses the pushremote, not the merge remote to determine the PR to edit Actual: The cli seems to use the merge remote :)
❯ gh pr edit --add-reviewer redacted no pull requests found for branch "develop"
The text was updated successfully, but these errors were encountered:
Agreed, we should be paying attention to pushRemote! Duplicate of #575 (comment)
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Version:
Steps to reproduce the behavior
.git/config
:This should indicate to git that:
origin/xyz-feature-branch
origin/main
However, upon typing
gh pr edit --add-reviewers
I get the error message:If you change the
.git/config
to be:Then
gh
works.Expected vs actual behavior
Expected: The github cli uses the pushremote, not the merge remote to determine the PR to edit
Actual: The cli seems to use the merge remote :)
Logs
The text was updated successfully, but these errors were encountered: