Skip to content

Conversation

priethor
Copy link
Contributor

@priethor priethor commented Aug 8, 2023

What?

Changes the GitHub workflow that enforces PRs have proper labels not to work on draft PRs by default—original conversation found in WordPress Slack.

Why?

Some folks have suggested removing it. I would like to hear more drawbacks of having this check for draft PRs.

Some benefits I see of doing the label checks even on draft PRs:

  • For folks that browse open PRs regularly, it can help to see labels even in draft PRs.
  • By the time a PR is ready to review, it's more likely that the PR is labeled correctly and without the noise of the GitHub actions comment, helping with the review process

How?

Removes the triggers opened and synchronize, and adds ready_for_review and review_requested. With these changes, the check would still apply to draft PRs in some scenarios, primarily when adding or removing labels, but also when asking folks to review: in my opinion, if people are invited to check a PR, it should indeed have proper labels to help these people get the context of the PR.

@priethor priethor added [Type] Project Management Meta-issues related to project management of Gutenberg GitHub Actions Pull requests that update GitHub Actions code labels Aug 8, 2023
@priethor priethor self-assigned this Aug 8, 2023
@Mamaduka
Copy link
Member

Mamaduka commented Aug 8, 2023

The change makes sense to me, or at least how I use "Draft" vs. "Ready for Preview" PRs. On rare occasions when I push draft PRs, I don't fill out any details; I mostly want to see if CI checks catch anything. Once I think it's in good condition (they rarely are 😄), I'll add details and request reviews.

Copy link
Contributor

@alexstine alexstine left a comment

Choose a reason for hiding this comment

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

This seems fine to me. 👍

@priethor priethor marked this pull request as ready for review August 9, 2023 10:02
@priethor
Copy link
Contributor Author

All we need to merge this then is a favorable review 🙂

Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

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

Here you go :)

@draganescu draganescu merged commit fb37f1f into trunk Aug 17, 2023
@draganescu draganescu deleted the update/enforce-pr-labels branch August 17, 2023 07:44
@github-actions github-actions bot added this to the Gutenberg 16.6 milestone Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GitHub Actions Pull requests that update GitHub Actions code [Type] Project Management Meta-issues related to project management of Gutenberg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants