From dbff1b40b1228d1bd44e24158a81b408734d6f80 Mon Sep 17 00:00:00 2001 From: Chummy Date: Tue, 17 Feb 2026 01:00:39 +0800 Subject: [PATCH] docs(agents): add superseded-PR commit message template --- AGENTS.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 2670878..8ed3a4e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -345,6 +345,33 @@ When superseding multiple PRs, use a consistent title/body structure to reduce r - Rollback: ``` +### 9.4 Superseded-PR Commit Template (Recommended) + +When a commit unifies or supersedes prior PR work, use a deterministic commit message layout so attribution is machine-parsed and reviewer-friendly. + +- Keep one blank line between message sections, and exactly one blank line before trailer lines. +- Keep each trailer on its own line; do not wrap, indent, or encode as escaped `\n` text. +- Add one `Co-authored-by` trailer per materially incorporated contributor, using GitHub-recognized email. +- If no direct code/design is carried over, omit `Co-authored-by` and explain attribution in the PR body instead. + +```text +feat(): unify and supersede #, # [and #] + + + +Supersedes: +- # by @ +- # by @ +- # by @ + +Integrated scope: +- : from # +- : from # + +Co-authored-by: +Co-authored-by: +``` + Reference docs: - `CONTRIBUTING.md`