Skip to content

allow gh pr create --fill to be non-interactive #4879

@georgettica

Description

@georgettica

Describe the feature or problem you’d like to solve

when running gh pr create --fill and the branch is not pushed, an interactive window is opened.
I would like this choice to be taken away by configuring it once per repo

Proposed solution

add a gh-push-to env same as gh-resolved to resolve where to push the branches
then add a flag to gh pr create to auto-choose that env (thus keeping functionality the same)

then a user can configure once and run gh pr create --fill --auto-push which will choose the gh-push-to flag

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions