Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically set label colors #2

Open
steebchen opened this issue Mar 16, 2019 · 5 comments
Open

Automatically set label colors #2

steebchen opened this issue Mar 16, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@steebchen
Copy link

I'm not sure if this is possible, but it would be awesome if this action could automatically set colors from green to red like Kubernetes does.

@pascalgn
Copy link
Owner

I consider label creation out of scope for this action, as there is already at least one action that can take care of it. In my opinion it's better to have all labels in one configuration file so they can be managed in a central place, instead of having each action modify the project's labels.

I would recommend to use issue-label-manager-action. You could use the following configuration to copy the Kubernetes labels:

[
  {
    "name": "size/XS",
    "color": "009900",
    "description": "Denotes a PR that changes 0-9 lines, ignoring generated files."
  },
  {
    "name": "size/S",
    "color": "77bb00",
    "description": "Denotes a PR that changes 10-29 lines, ignoring generated files."
  },
  {
    "name": "size/M",
    "color": "eebb00",
    "description": "Denotes a PR that changes 30-99 lines, ignoring generated files."
  },
  {
    "name": "size/L",
    "color": "ee9900",
    "description": "Denotes a PR that changes 100-499 lines, ignoring generated files."
  },
  {
    "name": "size/XL",
    "color": "ee5500",
    "description": "Denotes a PR that changes 500-999 lines, ignoring generated files."
  },
  {
    "name": "size/XXL",
    "color": "ee0000",
    "description": "Denotes a PR that changes 1000+ lines, ignoring generated files."
  }
]

@steebchen
Copy link
Author

That would force me to manage my labels from the repo from now on which I would first have to think about. Thanks for the link though.

@pascalgn
Copy link
Owner

We now have https://github.com/pascalgn/size-label-action#create-the-needed-labels which is maybe better than nothing. If you want to create a PR for this, feel free and I will have a look at it! 👍

@pascalgn pascalgn added the enhancement New feature or request label Feb 14, 2021
@baibhavKumar1
Copy link

@pascalgn , this is for PR labeling , is there any similar feature for issue labling? Thank you

@pascalgn
Copy link
Owner

How do you expect that to work? Counting the number of words in the issue description? I'm not sure if that would be very useful...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants