Skip to content

gh pr create -w doesn't open new PR tab when branch had previous PR #320

Description

@tierninho

When using gh pr create to open a new PR with -w, the browser result is an existing PR, previously merged or closed.

Reproduce:

Expected result:
Browser open the compare PR page: https://github.com/tierninho/PRlist/compare/ccc?expand=1

When removing the -w flag, the results are inline with expectations as the expected result URL is shown. Alternatively, if a branch had no prior PRs, then the correct URL is opened.

gh version 0.5.4 (2020-02-04), OSX

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions