Skip to content

gh pr create --label new-label #2196

Description

@stribb

Describe the feature or problem you’d like to solve

When I try to create a PR using a label that hasn't yet been created, I want gh to do what I said. This seems like the most "Unixy" way of doing it.

Proposed solution

If the label does not exist, gh will create it then try again to create the PR.

Alternative solution

Create a flag, --force-new-label and only create a new label if that is set.

Activity

  1. mislav commented on Oct 15, 2020

    @mislav
    Contributor

    Thanks for the request! I'm going to close this as duplicate of #1503, where there is also a temporary workaround using gh api which you can use to create the label before running gh pr create.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions