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

Use REST API to create labels if they don't exist yet #807

Open
xander-marjoram opened this issue Oct 1, 2024 · 1 comment
Open

Use REST API to create labels if they don't exist yet #807

xander-marjoram opened this issue Oct 1, 2024 · 1 comment
Labels
feature request New feature or request to improve the current logic

Comments

@xander-marjoram
Copy link

xander-marjoram commented Oct 1, 2024

Description:
Add a configuration option which would allow the action to attempt to create new labels if they do not already exist.

Justification:
We have a generator which creates new components inside a monorepo. We use this labeler action to apply labels to pull requests based on which components are included in the pull request.

Currently, the majority of steps in our process are automated (including adding a new entry to our label YML file), however we still need to go to the labels page in the UI to create a new label before it can actually be added to PRs.

It's possible to use the REST API to do this separately, but I wondered whether this functionality might be well-suited as part of this action because it already has the logic to read the configuration and know which labels exist or not.

Are you willing to submit a PR?
Maybe, but I don't know if this idea would be accepted or rejected in principle first.

@xander-marjoram xander-marjoram added feature request New feature or request to improve the current logic needs triage labels Oct 1, 2024
@mahabaleshwars
Copy link

Hi @xander-marjoram,
Thank you for creating this issue. We will investigate it and provide feedback as soon as we have some updates.

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

No branches or pull requests

2 participants