From 788141e43381c3fb45b1be645536310ed49100b9 Mon Sep 17 00:00:00 2001 From: woksin Date: Tue, 25 Aug 2026 23:18:06 +0200 Subject: [PATCH] chore: accept the no-release intent in the semver gate Ports the release-intent gate the organization standardizes on (release-action/.ai/rules/pull-requests.md, as already implemented in cli): a pull request that changes nothing outward-facing carries no-release and merging it publishes nothing. Without this option, configuration-only pull requests were forced to carry patch, which cut empty releases on merge - exactly what happened with the 2026-08-25 CI remediation merges. --- .github/workflows/verify-semver-label.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/verify-semver-label.yml b/.github/workflows/verify-semver-label.yml index 4c2ead9..1ab872e 100644 --- a/.github/workflows/verify-semver-label.yml +++ b/.github/workflows/verify-semver-label.yml @@ -33,7 +33,7 @@ jobs: env: LABELS: ${{ toJSON(github.event.pull_request.labels.*.name) }} run: | - count=$(printf '%s' "$LABELS" | jq '[.[] | select(. == "major" or . == "minor" or . == "patch")] | length') + count=$(printf '%s' "$LABELS" | jq '[.[] | select(. == "major" or . == "minor" or . == "patch" or . == "no-release")] | length') if [ "$count" -eq 1 ]; then echo "Found one semantic version label." @@ -41,9 +41,9 @@ jobs: fi if [ "$count" -eq 0 ]; then - echo "::error::This pull request has no semantic version label. Add exactly one of major, minor or patch. Without one, merging produces a Publish run that succeeds while skipping every publish step, so no release is cut and nothing is published. (Documentation-only PRs are exempt — see pull-requests.md.)" + echo "::error::This pull request has no release intent label. Add exactly one of major, minor, patch, or no-release. Without one, merging produces a Publish run that succeeds while skipping every publish step, so no release is cut and nothing is published. (Documentation-only PRs are exempt — see pull-requests.md.)" else - echo "::error::This pull request carries $count semantic version labels. Exactly one of major, minor or patch is required, since the release version cannot be derived from more than one." + echo "::error::This pull request carries $count release intent labels. Exactly one of major, minor, patch, or no-release is required, since the release intent cannot be derived from more than one." fi exit 1