Skip to content

[CELEBORN-2328] Auto-apply correctness label from PR template checkbox#3688

Open
turboFei wants to merge 6 commits into
apache:mainfrom
turboFei:correctness
Open

[CELEBORN-2328] Auto-apply correctness label from PR template checkbox#3688
turboFei wants to merge 6 commits into
apache:mainfrom
turboFei:correctness

Conversation

@turboFei
Copy link
Copy Markdown
Member

@turboFei turboFei commented May 15, 2026

What changes were proposed in this pull request?

Replace the free-text Yes/No comment under "Does this PR resolve a correctness bug?" with a single checkbox in the PR template. Add a GitHub Actions workflow (correctness-label.yml) that automatically adds or removes the correctness label based on whether the box is checked, triggered on every PR open/edit.

Why are the changes needed?

Previously the note said "committer will add correctness label" — a manual step that was easy to miss. This automates it: checking the box applies the label immediately, and unchecking it removes the label, with no committer action required.

To track all correctness PR: https://github.com/apache/celeborn/issues?q=label%3Acorrectness

Does this PR resolve a correctness bug?

  • Yes

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI workflow logic verified by code review. End-to-end behavior can be confirmed by opening a test PR against the repo and toggling the checkbox.

image

@turboFei turboFei closed this May 15, 2026
@turboFei turboFei changed the title ci: auto-apply correctness label from PR template checkbox [CELEBORN-2328] auto-apply correctness label from PR template checkbox May 15, 2026
@turboFei turboFei reopened this May 15, 2026
Replace the free-text Yes/No comment in PULL_REQUEST_TEMPLATE.md with a
single checkbox. A new GitHub Actions workflow (correctness-label.yml)
triggers on pull_request_target opened/edited/synchronize, parses the
correctness section of the PR body, and adds or removes the `correctness`
label automatically — no manual committer action needed.

test

ci: auto-apply correctness label from PR template checkbox (#59)

Replace the free-text Yes/No comment in PULL_REQUEST_TEMPLATE.md with a
single checkbox. A new GitHub Actions workflow (correctness-label.yml)
triggers on pull_request_target opened/edited/synchronize, parses the
correctness section of the PR body, and adds or removes the `correctness`
label automatically — no manual committer action needed.

ci: replace github-script with gh CLI to fix workflow validation error

ci: auto-create correctness label if it does not exist

Revert "ci: auto-create correctness label if it does not exist"

This reverts commit e5bed81.
@turboFei turboFei changed the title [CELEBORN-2328] auto-apply correctness label from PR template checkbox [CELEBORN-2328] Auto-apply correctness label from PR template checkbox May 15, 2026
@turboFei turboFei changed the title [CELEBORN-2328] Auto-apply correctness label from PR template checkbox [WIP][CELEBORN-2328] Auto-apply correctness label from PR template checkbox May 15, 2026
@turboFei turboFei changed the title [WIP][CELEBORN-2328] Auto-apply correctness label from PR template checkbox [CELEBORN-2328] Auto-apply correctness label from PR template checkbox May 15, 2026
@turboFei turboFei requested a review from Copilot May 15, 2026 22:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR automates management of the correctness label by replacing the PR template’s free-text correctness prompt with a checkbox and adding a workflow that syncs the label from that checkbox.

Changes:

  • Adds a pull_request_target workflow to add/remove the correctness label based on the PR body checkbox.
  • Updates the PR template to use a single - [ ] Yes checkbox for correctness bugs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/correctness-label.yml Adds automation for syncing the correctness label from the PR template checkbox.
.github/PULL_REQUEST_TEMPLATE.md Replaces the previous correctness prompt with an actionable checkbox.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Consolidate correctness-label.yml into labeler.yml as a second job to
reduce workflow file count and unify the pull_request_target trigger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants