Skip to content

ci(release): 用 Release/Beta 选项替代 PR 标题触发发版 - #3651

Merged
tangge233 merged 1 commit into
devfrom
chore/ci-release-dispatch
Oct 4, 2026
Merged

tangge233 merged 1 commit into
devfrom
chore/ci-release-dispatch

Conversation

@tangge233

@tangge233 tangge233 commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor
  • 删除 release-trigger.yml:不再通过 release-stable/release-beta PR 标题自动触发发版
  • release-publish.yml 的 dispatch 输入改为 configuration 单选(Release/Beta),prerelease 由该选项决定

Sourcery 总结

使用手动 Release/Beta 配置来控制发布流程和预发布行为。

增强功能:

  • 用明确的 Release/Beta 工作流配置选项替代基于 PR 标题的发布触发方式,并根据该选项确定是否为预发布版本。

CI:

  • 移除自动发布触发工作流,并简化手动发布流程的输入项。
Original summary in English

Summary by Sourcery

Use the manual Release/Beta configuration to control release publishing and prerelease behavior.

Enhancements:

  • Replace PR-title-based release triggering with an explicit Release/Beta workflow configuration choice and derive prerelease status from that selection.

CI:

  • Remove the automatic release trigger workflow and streamline manual release publishing inputs.

- 删除 release-trigger.yml:不再通过 release-stable/release-beta PR 标题自动触发发版
- release-publish.yml 的 dispatch 输入改为 configuration 单选(Release/Beta),prerelease 由该选项决定
@pcl-ce-automation pcl-ce-automation Bot added 🛠️ 等待审查 Pull Request 已完善,等待维护者或负责人进行代码审查 size: M PR 大小评估:中型 labels Oct 4, 2026
@sourcery-ai

sourcery-ai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor
审查者指南(小型 PR 中折叠显示)

审查者指南

发版流程改为通过 release-publish 工作流手动选择 Release 或 Beta 配置;Beta 自动发布为 prerelease,同时删除基于 release-stable/release-beta PR 标题的自动触发工作流。

手动发布 Release 或 Beta 的流程图

flowchart TD
    A[Manually dispatch release-publish] --> B{Select configuration}
    B -->|Release| C[Build Release]
    B -->|Beta| D[Build Beta]
    C --> E[Create GitHub release with prerelease false]
    D --> F[Create GitHub release with prerelease true]
Loading

文件级变更

变更 详情 文件
将发版类型收敛为手动选择 Release 或 Beta,并由选择结果自动决定是否创建预发布版本。
  • 将 configuration 输入改为 Release/Beta 单选项,默认 Beta
  • 移除独立的 prerelease 布尔输入
  • 根据 configuration 是否为 Beta 设置 GitHub Release 的 prerelease 属性
.github/workflows/release-publish.yml
移除基于 PR 标题的自动发版触发机制。
  • 删除 release-trigger 工作流及其 PR 标题触发逻辑
.github/workflows/release-trigger.yml

提示与命令

与 Sourcery 交互

  • 触发新的审查: 在拉取请求中评论 @sourcery-ai review。
  • 继续讨论: 直接回复 Sourcery 的审查评论。
  • 从审查评论生成 GitHub issue: 回复审查评论,请 Sourcery 根据该评论创建 issue。你也可以使用 @sourcery-ai issue 回复审查评论,以根据该评论创建 issue。
  • 生成拉取请求标题: 在拉取请求标题的任意位置写入 @sourcery-ai,即可随时生成标题。你也可以在拉取请求中评论 @sourcery-ai title,以随时重新生成标题。
  • 生成拉取请求摘要: 在拉取请求正文中任意位置写入 @sourcery-ai summary,即可在指定位置随时生成 PR 摘要。你也可以在拉取请求中评论 @sourcery-ai summary,以随时重新生成摘要。
  • 生成审查者指南: 在拉取请求中评论 @sourcery-ai guide,即可随时重新生成审查者指南。
  • 解决所有 Sourcery 评论: 在拉取请求中评论 @sourcery-ai resolve,以解决所有 Sourcery 评论。如果你已经处理完所有评论并且不想再看到它们,这一功能会很有用。
  • 忽略所有 Sourcery 审查: 在拉取请求中评论 @sourcery-ai dismiss,以忽略所有现有的 Sourcery 审查。如果你想从新的审查开始,这一功能尤其有用——别忘了评论 @sourcery-ai review 来触发新的审查!

自定义使用体验

访问你的仪表板以:

  • 启用或禁用审查功能,例如 Sourcery 生成的拉取请求摘要、审查者指南等。
  • 更改审查语言。
  • 添加、删除或编辑自定义审查说明。
  • 调整其他审查设置。

获取帮助

Original review guide in English
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

发版流程改为通过 release-publish 工作流手动选择 Release 或 Beta 配置;Beta 自动发布为 prerelease,同时删除基于 release-stable/release-beta PR 标题的自动触发工作流。

Flow diagram for manual Release or Beta publishing

flowchart TD
    A[Manually dispatch release-publish] --> B{Select configuration}
    B -->|Release| C[Build Release]
    B -->|Beta| D[Build Beta]
    C --> E[Create GitHub release with prerelease false]
    D --> F[Create GitHub release with prerelease true]
Loading

File-Level Changes

Change Details Files
将发版类型收敛为手动选择 Release 或 Beta,并由选择结果自动决定是否创建预发布版本。
  • 将 configuration 输入改为 Release/Beta 单选项,默认 Beta
  • 移除独立的 prerelease 布尔输入
  • 根据 configuration 是否为 Beta 设置 GitHub Release 的 prerelease 属性
.github/workflows/release-publish.yml
移除基于 PR 标题的自动发版触发机制。
  • 删除 release-trigger 工作流及其 PR 标题触发逻辑
.github/workflows/release-trigger.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

嗨——我已经审阅了你的更改,整体看起来很棒!


Sourcery 对开源项目免费——如果你喜欢我们的审阅结果,请考虑分享它们 ✨
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@tangge233
tangge233 merged commit f943218 into dev Oct 4, 2026
3 checks passed
@pcl-ce-automation pcl-ce-automation Bot added 👌 完成 相关问题已修复或功能已实现,计划在下次版本更新时正式上线 and removed 🛠️ 等待审查 Pull Request 已完善,等待维护者或负责人进行代码审查 labels Oct 4, 2026
@tangge233
tangge233 deleted the chore/ci-release-dispatch branch October 4, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M PR 大小评估:中型 👌 完成 相关问题已修复或功能已实现,计划在下次版本更新时正式上线

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant