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

feat: Add labeler workflow #523

Closed
wants to merge 1 commit into from

Conversation

Panquesito7
Copy link
Member

The labeler workflow will add the feature:icon label when the icons
folder is being modified. On PR approval, it will add the approved label. 🙂

The labeler workflow will add the `feature:icon` label when the `icons`
folder is being modified. On PR approval, it will add the `approved` label.
@Panquesito7 Panquesito7 added the devops Use this label for devops related enhancements label Mar 2, 2021
Copy link
Member

@Thomas-Boi Thomas-Boi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the "feature:icon" labeler workflow would be a good thing to have. The "approve" label though I'm not so sure. @amacado what do you think?

@@ -0,0 +1,14 @@
on: pull_request_review
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether we need the approved label. Usually, once things are approved we just merge it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to use the Probot Stale app, then this will be good, as the app won't mark as stale the PRs that have the approved label. 🙂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all: I ❤️ labels! But I'm not a fan of duplicated functionality. GitHub already provides many options to filter by review status:
image

I don't see an advantage of having a approved label indicating the same what GitHub already provides. Or am I missing something?

Auto adding the feature:icon label is a nice enhancement! Maybe someone can take a look at pull request templates? They might allow to achieve the same result (without a extra workflow). With issue templates (which we already use) it's possible to define a label which is added automatically.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see an advantage of having an approved label indicating the same what GitHub already provides

Well, to me it is easier to use the approved label. Sometimes, we merge PRs, but we don't approve them; still, we can add the approved label, and it'll be easier to track them (without being approved).

It's your decision if you want to have it in Devicon or not, but to me, it's a good idea. 🙂

@Panquesito7
Copy link
Member Author

I will add the feature:icon thingy directly to the develop branch. 🙂

@Panquesito7
Copy link
Member Author

I will add the feature:icon thingy directly to the develop branch.

Never mind, it seems I can't push to the develop branch?...

@Thomas-Boi
Copy link
Member

I think amacado needs to take a look at this before we can merge your code.

@amacado
Copy link
Member

amacado commented Mar 3, 2021

Never mind, it seems I can't push to the develop branch?...

No one is allowed to directly push to develop or master branch (see https://github.com/devicons/devicon/blob/develop/CONTRIBUTING.md#maintainerreviewerteams). There is always a review by another contributor required.

@amacado amacado added the discussion Use this label for community discussions about changes/features/.. label Mar 3, 2021
@Thomas-Boi
Copy link
Member

Thomas-Boi commented Mar 4, 2021

Auto adding the feature:icon label is a nice enhancement! Maybe someone can take a look at pull request templates?

I think maybe we can use the PR templates instead of an Action. This would requires only 1 extra file rather than 2 for the "feature:icon" label. We can also use the template to enforce certain details, such as a link to the technology page or any other notes. Would you be open to changing from a labelling workflow to a PR template? We can work together to decide what the template should have.

As for the "approved" label, unfortunately I don't think it's applicable for our repo. amacado and myself tries to only merge changes that we approve so having a label is a bit redundant. Perhaps if we ever need to merge something that we don't approve of, we will add a special label to it so we can review it again.

Copy link
Member

@amacado amacado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a result of the discussion I propose to close this pull request, delete the branch and start a discussion about a pull request template. @Panquesito7 are you ok with this?

@Panquesito7
Copy link
Member Author

Panquesito7 commented Mar 4, 2021

@Panquesito7, are you ok with this?

EDIT: The only thing is that if the user doesn't use the PR template, the label won't be applied.

Sounds good to me (apart from the above). 🙂
I will help with the PR template.

Thanks anyway.

@Panquesito7 Panquesito7 closed this Mar 4, 2021
@Thomas-Boi Thomas-Boi deleted the panquesito7/add/labeler-workflow branch March 29, 2021 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops Use this label for devops related enhancements discussion Use this label for community discussions about changes/features/..
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants