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 apply labels to the PR that the bot raises. #222

Open
ghuntley opened this issue Jun 27, 2019 · 6 comments
Open

Automatically apply labels to the PR that the bot raises. #222

ghuntley opened this issue Jun 27, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@ghuntley
Copy link

Describe the solution you'd like

Is there way way to make @all-contributors-release-bot automatically add labels to the PR it sends in? It would be nice to not have to do them by hand.

unoplatform/uno#1146 (comment)

Additional context

We are using your project over at https://github.com/unoplatform/uno/

Thank-you ❤️

@ghuntley ghuntley added the enhancement New feature or request label Jun 27, 2019
@mfix22
Copy link
Contributor

mfix22 commented Sep 13, 2019

I'm really interested in this too! That way I can have Ranger automatically merge the pull requests for me too 🙌 (example)

@derberg
Copy link

derberg commented May 4, 2020

You can easily workaround it with GitHub actions -> https://github.com/marketplace/actions/labeler

@mfix22
Copy link
Contributor

mfix22 commented May 5, 2020

Correct me if I am mistaken, but https://github.com/marketplace/actions/labeler can not be configured to only apply a label based on a specific author, right?

@derberg
Copy link

derberg commented May 5, 2020

@mfix22 it is not something labeler can or cannot do, it is default GH Actions functionality. In your action, you have access to the information about the actor, the user that triggered the action. So you can add a condition that labeler is triggered only if specific user triggered the action (created an issue for example)

You have an example of how to do it in this other action https://github.com/hmarr/auto-approve-action#usage-instructions, I use this for a few months already and works like a charm

@mfix22
Copy link
Contributor

mfix22 commented May 7, 2020

Ahh, I see. Thanks @derberg. Taking this approach still requires creating two separate configs, and hooking them together, as well as knowing what the github.actor string is (allcontributors[bot] in this case).

@derberg
Copy link

derberg commented May 7, 2020

@mfix22 you mean the full flow with labeling and merging, yes, sure. I'm just giving a hint here on how to deal with auto labeling before you get a feature in the bot :)

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