[merge] dev & ci: default promote-dev-to-main merge strategy to squash

Switch default merge_method from 'merge' to 'squash' so dev->main PRs collapse the dev branch's incremental commits into one squash commit on main, keeping main's history linear and release-tag-friendly. Affects: workflow_dispatch input default, decide-step initial value + workflow_dispatch fallback, both push-trigger branches (tag + commit-msg), and the case-statement fallback in the auto-merge step. CONTRIBUTING.md updated to reflect the new default.
This commit is contained in:
手瓜一十雪 committed 2026-05-09 15:06:54 +08:00
1 parent c3b328f91d
commit 3afbcfaae5
2 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ SnowLuma 使用 **`main` + `dev`** 双分支模型:
打开仓库 Actions 页面 → `Promote Dev to Main` → `Run workflow`。可选输入:
- `auto_merge`:是否启用 auto-merge(默认 `true`)。
- `merge_method`:`merge` / `squash` / `rebase`(默认 `merge`)。
- `merge_method`:`squash` / `merge` / `rebase`(默认 `squash`,把 `dev` 上的多个增量提交压成一个再合入 `main`,保持 `main` 历史线性)。
工作流会按照当前 `dev` 与 `main` 的差异开 / 更新 PR。