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

Enforce PR labels: fully re-enabling the pre-merge check #52990

Merged
merged 3 commits into from Jul 28, 2023

Conversation

priethor
Copy link
Contributor

@priethor priethor commented Jul 26, 2023

Follow-up to #52981

What?

Fully enables the pre-check merge that enforces PR labels so that the check fails if the PR is not fully labeled.

Also improves the error message description linking to all type-related labels in the repository and adds the missing [Type] Regression label.

Why?

After the initial setup of the GitHub action, there were some cases where it didn't work properly, so I made the check exit in a success state in all cases to avoid blocking PRs.

How?

By removing the exit_type: sucess setting in the workflow configuration.

Testing Instructions

After merging:

  • Create a PR with no labels: the Enforce PR labels pre-merge check will fail.
  • Add one of the suggested labels, and the workflow will run again and will succeed.

@priethor priethor requested a review from ockham July 26, 2023 16:43
@priethor priethor self-assigned this Jul 26, 2023
Copy link
Contributor

@ockham ockham left a comment

Choose a reason for hiding this comment

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

👍

@priethor priethor added the [Type] Project Management Meta-issues related to project management of Gutenberg label Jul 27, 2023
@priethor priethor merged commit cfc3d20 into trunk Jul 28, 2023
51 checks passed
@priethor priethor deleted the try/enforce-pr-labels-reenable branch July 28, 2023 10:03
@github-actions github-actions bot added this to the Gutenberg 16.4 milestone Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Project Management Meta-issues related to project management of Gutenberg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants