Skip to content

Conversation

@ThirteenLLB
Copy link
Contributor

@ThirteenLLB ThirteenLLB commented Feb 2, 2026

Summary

  • 正式版本(如 v1.0.0)发布后自动成为 latest release
  • 只有包含 -rc/-alpha/-beta 的版本才标记为 prerelease
  • isPrerelease 改为从 tag 名称自动判断,不再依赖 prerelease input
  • make_latest 根据是否为 prerelease 动态设置

影响范围

使用 auto-release action 的仓库:

  • wuji-retargeting-private
  • wujihandros2
  • wuji-hand-description
  • isaaclab-sim
  • wujihandpy

修改后这些仓库自动生效,无需额外改动。

Test plan

验证步骤:

  1. 合并 PR 后,在使用 auto-release 的仓库推送正式版本 tag(如 v0.3.0
  2. 确认 Release 页面显示为 "Latest",不显示 "Pre-release" 标签
  3. 推送预发布 tag(如 v0.3.1-rc.1),确认显示 "Pre-release" 标签

🤖 Generated with Claude Code

Summary by CodeRabbit

发布说明

  • 新特性

    • 预发布版本现在根据标签后缀(-rc、-alpha 或 -beta)自动识别,无需额外配置
  • 变更

    • 调整最新版本标记逻辑:预发布版本将不被标记为最新版本,仅正式版本为最新版本

Stable versions (e.g., v1.0.0) now become the latest release.
Only versions containing -rc, -alpha, or -beta are marked as
prerelease. The prerelease input is now ignored in favor of
automatic detection from the tag name.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 2, 2026

概览

更新 auto-release 操作配置,将预发布版本检测从环境变量改为基于标签内容的正则表达式匹配(-rc、-alpha、-beta),并使最新版本标记与预发布状态挂钩。

变更详情

文件/分组 摘要
自动发布配置
actions/auto-release/action.yml
将预发布标志从 INPUT_PRERELEASE 环境变量替换为基于标签的正则检测(包含 -rc、-alpha 或 -beta,不区分大小写);make_latest 现根据预发布状态条件设置,预发布版本时为 'false',否则为 'true'。

可能相关的 PR

建议审核者

  • chenjunnn

代码审核工作量评估

🎯 1 (Trivial) | ⏱️ ~3 minutes

庆祝诗句

🐰 标签换新妆,正则来把关,
预发布在其中,一眼便识端,
最新版自随心,简约而优雅。


Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore
❌ Failed checks (3 errors)
Check name Status Explanation Resolution
Changelog ❌ Error PR引入了auto-release操作的重大面向用户的变更,包括自动预发布检测和动态make_latest行为,但CHANGELOG.md未记录这些关键变更。 更新CHANGELOG.md的Unreleased部分,在Changed子部分添加条目说明:auto-release操作现在自动从标签名检测预发布版本(替代prerelease输入参数),以及make_latest标志现在根据版本类型自动确定。
Pr Description ❌ Error PR描述包含具体的测试计划,但缺少Feishu工作项ID引用(m-或f-格式),且源分支不符合豁免条件。 在PR描述中添加至少一个Feishu工作项ID引用,格式为m-<数字>或f-<数字>(例如m-123或f-456),以关联相关工作项。
Branch Name ❌ Error 源分支名称 fix/prerelease-logic 不符合规定的分支命名规范,缺少 f-<number>/ 部分。 请将分支名称改为 fix/f-<issue-number>/prerelease-logicchore/prerelease-logic 格式。
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title follows Conventional Commits format with type(scope) and clearly describes the main change: making stable releases automatically set as latest release.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/prerelease-logic

Comment @coderabbitai help to get the list of available commands and usage tips.

@ThirteenLLB
Copy link
Contributor Author

Recreating with chore/ branch naming

@ThirteenLLB ThirteenLLB closed this Feb 2, 2026
@ThirteenLLB ThirteenLLB deleted the fix/prerelease-logic branch February 2, 2026 13:41
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