Skip to content

Repo flag not respected on PR Create command #174

Description

@tierninho

The Global -R flag is not taken into account when attempting to create a new PR on the target repo. Instead you get the output of the current repo.

Example:

gh pr create -R tierninho/sddffdgfdgdfgf
Warning: 2 uncommitted changes
To https://github.com/tierninho/PRlist.git
 ! [rejected]        HEAD -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/tierninho/PRlist.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
git: exit status 1

Tested on gh version 0.3.5, OSX

Activity

  1. vilmibm commented on Jan 17, 2020

    @vilmibm
    Contributor

    assigning to mislav and marking in progress as per https://github.slack.com/archives/CLLG3RMAR/p1579278463007700

  2. added a commit that references this issue on Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions