Skip to content

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

Merged
priethor merged 3 commits into
trunkfrom
try/enforce-pr-labels-reenable
Jul 28, 2023
Merged

Enforce PR labels: fully re-enabling the pre-merge check#52990
priethor merged 3 commits into
trunkfrom
try/enforce-pr-labels-reenable

Conversation

@priethor

@priethor priethor commented Jul 26, 2023

Copy link
Copy Markdown
Contributor

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

@ockham ockham left a comment

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.

👍

@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
@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.

2 participants