Skip to content

Allow refactor label to meet CI requirement#2573

Merged
amomchilov merged 2 commits intomainfrom
Alex/allow-refactor-label
Apr 2, 2026
Merged

Allow refactor label to meet CI requirement#2573
amomchilov merged 2 commits intomainfrom
Alex/allow-refactor-label

Conversation

@amomchilov
Copy link
Copy Markdown
Contributor

Motivation

PR is missing at least one of the following labels: documentation, bugfix, chore, enhancement, ignore-for-release, security, sorbet, dependencies

It's pretty reasonable to have a PR that's just labelled refactor. Right now, the CI would force you to tag it with something else like chore or enhancement, which aren't necessarily a good fit.

@amomchilov amomchilov requested a review from a team as a code owner April 1, 2026 18:32
"bugfix",
"chore",
"enhancement",
"refactor",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This on its own isn't enough, we need to also classify the tag to feed into one of the release categories here: https://github.com/Shopify/tapioca/blob/main/.github/release.yml#L10-L23

Actually, maybe, instead of manually maintaining this list, we should just check against the union of labels for all the categories

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could continue using chore for this as it doesn't bring much value for end users

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I can also see us adding refactor to the exclude list.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I like adding it to the exclude list.

@amomchilov amomchilov changed the title Allow refactor label to meet requirement Allow refactor label to meet CI requirement Apr 1, 2026
This error will always be triggered on community contributed PRs, whose authors wouldn't have the access level necessary to label it themselves.
@amomchilov amomchilov force-pushed the Alex/allow-refactor-label branch from ee8dab8 to 9b7619d Compare April 1, 2026 20:21

if matching_labels.empty?
warn("PR is missing at least one of the following labels: #{REQUIRED_LABELS.join(", ")}")
warn <<~MSG
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This error will always be triggered on community contributed PRs, whose authors wouldn't have the access level necessary to label it themselves.

We talked about this with the team a while ago, and didn't have a good solution. For now, let's at least give more clear instruction.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@amomchilov amomchilov merged commit 6eaf5bf into main Apr 2, 2026
19 of 20 checks passed
@amomchilov amomchilov deleted the Alex/allow-refactor-label branch April 2, 2026 00:23
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.

3 participants