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 label checking for group reviews #153

Merged
merged 4 commits into from
Jan 22, 2025

Conversation

kdvalin
Copy link
Member

@kdvalin kdvalin commented Jan 17, 2025

Description

This PR adds a workflow to prevent merging without a label being applied indicating the PR has gone through a group code review.

Before/After Comparison

Before this PR, there is nothing preventing anyone from merging a PR without going through a group code review.

After this PR, the PR will need an additional label (currently group_review_lgtm) before a merge can happen. This will allow others to submit approving code reviews before a group code review meeting and still prevent merging until the label has been applied to the PR.

There is no Issue number or Jira ticket associated with this PR.

@kdvalin kdvalin requested a review from a team January 17, 2025 19:58
frival
frival previously approved these changes Jan 20, 2025
Copy link
Contributor

@frival frival left a comment

Choose a reason for hiding this comment

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

LGTM. We should provide a gh CLI-based tool or alias example to add the label - it's as simple as gh pr edit --add-label <pr> I believe,

@kdvalin kdvalin added pr_inprogress [Automatic Label] Issue has a PR in progress group_review_lgtm Indicates approval after a group review meeting labels Jan 21, 2025
@kdvalin kdvalin requested a review from frival January 21, 2025 19:27
Copy link
Contributor

@frival frival left a comment

Choose a reason for hiding this comment

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

LGTM, and thanks for adding the CLI example - let's make sure @dvalinrh knows about that for the review meetings he runs.

@kdvalin kdvalin merged commit d337a5c into redhat-performance:main Jan 22, 2025
1 of 5 checks passed
@kdvalin kdvalin deleted the ci/verify-review-label branch January 22, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group_review_lgtm Indicates approval after a group review meeting pr_inprogress [Automatic Label] Issue has a PR in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants