Skip to content

fix(release): prevent docs and chore commits from triggering version bumps #210

Description

@terry90918

背景

PR #208 的未解決 P2 指出:Release Please 以 simple strategy 處理 docschore 時仍預設 patch bump,導致僅包含 OpenSpec/文件維護的變更產生 v1.37.1,並同步九個 plugin 的版本。

範圍

  • 保留 Release Please 對已合併 release PR 的 tag/GitHub Release 建立。
  • 在 Drone 的 release-pr 前,根據最新已發布版本至 main 的提交,僅在存在 featfix 時呼叫 Release Please 產生或更新 release PR。
  • 為 eligibility 判定、失敗封閉行為及 Drone 結構契約新增測試。
  • 同步受影響的 OpenSpec 規格與 repository 指引。

非目標

  • 不手動修改任何 release-managed version。
  • 不刪除或重寫已發布的 v1.37.1 tag/GitHub Release;該補救需另行明確授權。
  • 不改變 featfix 的既有版本升級語意。

驗收標準

  • docs-only、chore-only 與二者混合的未發布提交不建立 release PR。
  • 含 feat 或 fix 的未發布提交仍建立或更新 release PR。
  • 已合併 release PR 的 push 仍可先執行 github-release 並建立 tag/GitHub Release。
  • 判定無法安全取得時,release-pr 不會在未知範圍產生版本變更。
  • repository validation、Drone policy validation、Spectra strict validation 均通過。

來源:PR #208 discussion_r3746155597。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions