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

Add PR label action #1796

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Add PR label action #1796

merged 1 commit into from
Feb 13, 2024

Conversation

paracycle
Copy link
Member

@paracycle paracycle commented Feb 12, 2024

Motivation

Fix #1434

Implementation

We couldn't use a reusable action in #1435, but I realized that we can put together a quick action based on a bash script and some gh wizardry.

Tests

No tests

@paracycle paracycle force-pushed the uk-pr-labeller branch 4 times, most recently from f548551 to a1dd559 Compare February 12, 2024 23:57
@paracycle paracycle added duplicate This issue or pull request already exists bugfix labels Feb 12, 2024
@paracycle paracycle force-pushed the uk-pr-labeller branch 4 times, most recently from 9ebdd95 to cd2ccb2 Compare February 13, 2024 00:31
@paracycle paracycle removed the bugfix label Feb 13, 2024
@Shopify Shopify deleted a comment from github-actions bot Feb 13, 2024
@paracycle paracycle force-pushed the uk-pr-labeller branch 2 times, most recently from dfe1e63 to d0262f0 Compare February 13, 2024 01:01
@paracycle paracycle added chore and removed duplicate This issue or pull request already exists labels Feb 13, 2024
@paracycle paracycle force-pushed the uk-pr-labeller branch 2 times, most recently from 0d88543 to 792f65f Compare February 13, 2024 01:09
@paracycle paracycle removed the chore label Feb 13, 2024
@paracycle paracycle marked this pull request as ready for review February 13, 2024 01:14
@paracycle paracycle requested a review from a team as a code owner February 13, 2024 01:14
- uses: actions/checkout@v4
- name: Check for Pull Request Labels
run: |
REQUIRED_LABELS=("documentation" "bugfix" "chore" "enhancement" "ignore-for-release" "security" "sorbet")
Copy link
Member

Choose a reason for hiding this comment

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

Since the labels will now be required, I wonder if we're missing another category. For example, would a refactor fit into chore?

Copy link
Member Author

Choose a reason for hiding this comment

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

We'd been using chore for refactors and most other non-user visible changes, yeah. Open to better suggestions, though.

Copy link
Member

Choose a reason for hiding this comment

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

Okay. Honestly, that sounds good, I was just wondering. IMO, ship it and we'll identify if any categories are missing as we open PRs.

.github/workflows/require_label.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@egiurleo egiurleo left a comment

Choose a reason for hiding this comment

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

Yay! I like Vini's comment about moving the shell key into a more visible location.

@paracycle paracycle enabled auto-merge February 13, 2024 17:24
@paracycle paracycle merged commit 6533cc7 into main Feb 13, 2024
25 of 33 checks passed
@paracycle paracycle deleted the uk-pr-labeller branch February 13, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify PR labels before merging
3 participants