ci: validate semver label on PR events#26
Merged
Conversation
The Check-PR-Labels job in release.yml only runs on `pull_request closed`, so a merge with no label produces a failed release run that can't be re-fired (re-running uses the cached event payload, which still has no labels). Run the same check on PR open/sync/labeled/unlabeled so the problem surfaces while it's still fixable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
jrennichjc
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Check-PR-Labelsjob inrelease.ymlonly fires onpull_request closed. PR feat(mcp): Ed25519 op-envelope signing for destructive ops (KLA-411) #25 merged with no label, the release run failed, and re-running it didn't help —gh run rerunreuses the cached event payload, which still shows no labels.pull_requestopen/synchronize/reopened/labeled/unlabeled events, so a missing label surfaces while the PR is still open.release.yml; the post-merge check stays as a defense-in-depth.Follow-up
mainwithCheck-PR-Labels(from this workflow) as a required status check to actually block merges. That's a settings change, not a code change, so it's not in this PR.Test plan
no versionlabel → check passes.minor→ check passes.minor+patchtogether → check fails (more than one).🤖 Generated with Claude Code
Note
Low Risk
Low risk: adds a new GitHub Actions workflow that only reads PR labels and fails the check when labeling is incorrect; no application/runtime code changes.
Overview
Adds a new GitHub Actions workflow (
.github/workflows/pr-labels.yml) that runs on PR open/update/label changes to enforce that each PR has exactly one release label (major,minor,patch, orno version).The job uses
actions/github-scriptto read labels from the PR event payload and fails early when the label set is missing or ambiguous, surfacing release-label issues before merge.Reviewed by Cursor Bugbot for commit 001b2a3. Bugbot is set up for automated code reviews on this repo. Configure here.