Skip to content

Allow gh label create to forcibly create existing labels #5450

Closed

Description

@heaths

Hey, would love if the feature here #2196 was addressed. I just tried out creating a label that already exists i.e. gh label create test and got

HTTP 422: Validation Failed (https://api.github.com/repos/****/****/labels)
Label.name already exists

IMO gh cli should create if not exist already, or exit gracefully if already exist

Should I use this issue to track feature requests against the gh label command or open a new one?

Another feature I think would be useful is listing/viewing specific labels e.g. gh label view test, similar to the gh pr view 123 behaviour.

Originally posted by @mishabruml in #446 (comment)

Activity

  1. added a commit that references this issue on Apr 13, 2022
    67ff352
  2. added
    enhancementa request to improve CLI
    and removed on Apr 13, 2022
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 CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions