Skip to content

gh pr create: let specify the push remote #5717

@chmouel

Description

@chmouel

Describe the feature or problem you’d like to solve

when using the "gh pr create" it would be nice to be able to specify via a flag the push remote instead of always getting asked for it.

Proposed solution

add a flag for it, for example :

--push-target

Additional context

When we do a gh pr create and i have origin and "chmouel" as remote I will get asked where to push this :

image

I'd love to be able to automate this part with a flag.

Alternative

if we push before runnig gh pr create it would not ask for it, but where is the fun if we don't use gh for everything :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions