Skip to content

gh label accept repositories and orgs as parameter #12359

Open

Description

@BenjamenMeyer

CLI Feedback

What have you loved?

It's great that gh can now manage labels via gh label on a repository.

What was confusing or gave you pause?

The gh label command could not take an organization or repository as a command-line option. Even when running the application within a directory for a repository it wanted to work on the default repository set by gh repo set-default and the command-line parameters did not include any way to specify a repository or organization to work with.

Are there features you'd like to see added?

I manage multiple GH organizations and many repositories and would love to be able to also work at the organization level. I am trying to be able to standardize some things across numerous repositories and use org labels to do so.

Anything else?

Love gh - it has come a long ways.

Activity

  1. added
    needs-triage
    on Dec 22, 2025
  2. added
    gh-label
    on Dec 22, 2025
  3. andyfeller commented on Dec 22, 2025

    @andyfeller
    Contributor

    @BenjamenMeyer : Thank you for taking the time to offer feedback and enhancement idea! ✨

    I'd like to hear more how you envision org support would help in your tasks:

    1. Would this manage the default labels that new repos receive?

    2. Are you trying to add / edit / remove a specific label to all existing repos?

  4. BenjamenMeyer commented on Dec 23, 2025

    @BenjamenMeyer
    Author

    @BenjamenMeyer : Thank you for taking the time to offer feedback and enhancement idea! ✨

    I'd like to hear more how you envision org support would help in your tasks:

    1. Would this manage the default labels that new repos receive?

    yes; though I didn't quite realize that's what I would be doing. But yes.

    1. Are you trying to add / edit / remove a specific label to all existing repos?

    And yes.

    My ultimate goal is to be able to standardize an organization with a given set of labels - adding and removing appropriately. If I need to list through my repositories and pass in each via a parameter that's fine with me - it's easy enough to script; but I don't want to be using gh repo set-default for each iteration of the loop.

    Okay...taking a closer look again I can see the -R /--repo switch - not sure why I didn't see that yesterday. That said, I still want to be able to modify the labels at the organization level and just specifying an organization does not work.

  5. williammartin commented on Feb 11, 2026

    @williammartin
    Member

    I can't see an API endpoint to manage the default labels an org provides to repos as described in these docs: https://docs.github.com/en/organizations/managing-organization-settings/managing-default-labels-for-repositories-in-your-organization, sorry!

    I've asked the team that owns repos about this but in the meantime I'm going to label this enhancement and blocked.

  6. added
    enhancement
    and removed
    needs-triage
    on Feb 11, 2026
  7. github-actions commented on Feb 11, 2026

    @github-actions
    Contributor

    Thank you for your issue! We have categorized it as a feature request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.

    Unless you see the help wanted Contributions welcome label, we are not currently looking for external contributions for this feature.

    If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.

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

    blockedenhancementgh-labelstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions