Skip to content

Repo flag not respected on PR Create command #174

@tierninho

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

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