Skip to content

ci(release): skip fix comments for preview and rc releases - #87

Merged
jdx merged 1 commit into
mainfrom
ci/skip-prerelease-fix-comments
Dec 3, 2026
Merged

jdx merged 1 commit into
mainfrom
ci/skip-prerelease-fix-comments

Conversation

@jdx

@jdx jdx commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Preview and rc releases run comment-release-fixes, but the job cannot succeed for them:

  • The tag_pattern passed by release.yml rejects revision tags such as 4.1.0-preview1-2.
  • The shared script also only accepts stable (non-prerelease) published releases, so widening the pattern would not help.

This skips the job when the version contains preview or rc, the same test the workflow uses to mark a release as a prerelease. Stable releases are unaffected.

This came up in the 4.1.0-preview1 release run. That particular failure was reported as the hosted runner losing communication, which this change does not address; it removes the job that would be expected to fail on a rerun anyway.

Verification

  • Checked the current tag_pattern against 4.1.0-preview1-2 and 4.0.0-rc1-1 (no match) and 4.0.6-3 (match).
  • actionlint on release.yml reports only shellcheck info/style notes in run blocks this PR does not touch.
  • The new condition has not been exercised by a release run.

AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable.

🤖 Generated with Claude Code


Note

Low Risk
CI-only guard on an optional post-release job; stable release behavior is unchanged.

Overview
The comment-release-fixes job now runs only when the release version is a stable build, not when inputs.version contains preview or rc.

That matches how the workflow already treats those strings as prereleases elsewhere, and avoids invoking the shared workflow when revision tags (e.g. 4.1.0-preview1-2) do not match the configured tag_pattern and the upstream script only supports non-prerelease releases.

Reviewed by Cursor Bugbot for commit 2b72fd8. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • Chores
    • Follow-up release comments are now posted only after successful stable releases. Preview and release-candidate publishes no longer trigger these comments.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The release workflow now skips the comment-release-fixes job when the version contains preview or rc, even after a successful publish.

Changes: Release comment eligibility

Layer / File(s) Summary
Release-fix comment job condition
.github/workflows/release.yml
The comment-release-fixes job now requires a successful publish and a version without preview or rc.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Merge Risk: Minimal · up to 2b72f

The change stops release-fix comments from being posted for preview and release-candidate releases. Stable releases are unaffected, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: the comment-release-fixes job is skipped for preview and rc releases. The release.yml summary confirms the job now runs only when the version contains neither preview…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the comment-release-fixes job is skipped for preview and rc releases. The release.yml summary confirms the job now runs only when the version contains neither preview nor rc. The title is specific and matches the changeset.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 14265ad8-18de-47d6-9271-b978b8d1d66b
Commits

Reviewing files that changed from the base of the PR and between 0ac04d2 and 2b72fd8.

Files selected for processing: 1

  • .github/workflows/release.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Low impact] This change appears safe to merge.

Summary

Skips comment-release-fixes for preview and rc releases.

  • Preview and rc releases skip the fix-comment job.

Reviews (1) · Last reviewed commit: "ci(release): skip fix comments for previ..." · Reviewed by Greptile

@jdx
jdx merged commit c7b5a20 into main Dec 3, 2026
14 checks passed
@jdx
jdx deleted the ci/skip-prerelease-fix-comments branch December 3, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant