Decide the format of a commit inside a PR, now that the landing commit is the record
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- git, github, shell
- Domain
- developer-experience, documentation
Research direction
Read CONTRIBUTING.md, .agents/skills/commit/SKILL.md, .github/pull_request_template.md, and steps 3–5 of .agents/skills/trace-decision/SKILL.md, then compare the four proposed formats and their effects on trace-decision and commit editing. Related issues #60 and #78 define adjacent decisions. Done when the commit and PR body format is decided and the listed guidance is consistent with that decision.
Written by the indexing model from the issue text.
Description
Kind
Unclear
Location
- Message format in
CONTRIBUTING.md .agents/skills/commit/SKILL.md.github/pull_request_template.md- Steps 3 to 5 of
.agents/skills/trace-decision/SKILL.md
Version
7c2e454
Problem
#68 makes the landing commit of a PR the unit of the decision record, with the PR body as its message. Message format still applies to each commit: a Why: line, and Rejected:, Cost:, Evidence: and Supersedes: lines where they apply. The commit skill asks for them in each commit.
After #68:
- A commit inside a PR gives a reason at a point inside the PR.
trace-decisiontreats it as a second source. - After a squash merge, the commits inside a PR are not in Git.
- The PR body has its own format: a
## Whysection withRejected:,Cost:andEvidence:lines, and separate## Breaking changeand## Supersedessections. So a commit and a PR body give the same facts in two formats, andtrace-decisionreads both.
PR #68 itself had 25 commits, each with full Message format fields. A squash merge would have left them only on GitHub, and with a merge commit they are a second source. This is the cost that C1 in #54 warns about.
Proposal
Decide the format of a commit inside a PR, and whether the two formats become one.
| Option | Commit inside a PR | PR body |
|---|---|---|
| A. Subject only | <type>: <summary>. A body is optional |
## Why with field lines, as now |
| B. Free text in commits | A body gives the reason in prose, without fields | As now |
| C. One format for both | When a commit has a reason worth keeping, it uses the same ## Why section with optional field lines as the PR body |
As now |
| D. No fields anywhere | Prose in commits | ## Why in prose. Rejected options go into the text |
Effects:
- A and C keep one format for
trace-decisionto read, and cut the work of each commit. - D removes the fields. Then
git log --grep='^Rejected:'and the field-based steps oftrace-decisionstop working, and they must read whole texts. Fields also remind a writer to name rejected options, which is what keeps an agent from proposing them again. A template comment can give the same reminder. - With any option,
SupersedesandBreaking changestay in the PR body only. ## Whyin a commit message: whengit commitopens an editor, its default cleanup removes lines that start with#. With-mor-Fand no editor, it keeps them. A heading in a commit body then needs--cleanup=verbatimin the editor case, or another marker.- The history before this change keeps commits in the earlier format, so
trace-decisionreads both forms anyway.
Related: #60 (when a choice needs a written reason) decides when a commit has a reason worth keeping. #78 (the PR body rules in seven places) decides where the format is defined.
- Dominant language
- Shell
- Stars
- 1
- Forks
- 0
- Avg merge
- 6h 59m
- Merged PRs (30d)
- 26
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from c-w-z/commit-decision-record
-
type/documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
c-w-z/commit-decision-record#90 · 1 comment ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
c-w-z/commit-decision-record#85 ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
c-w-z/commit-decision-record#84 ·
Maintainers usually reply within 1 day
-
type/feature
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
c-w-z/commit-decision-record#35 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
c-w-z/commit-decision-record#33 ·
Maintainers usually reply within 1 day
All issues in c-w-z/commit-decision-record
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
omacom/omarchy#21286 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ChurchCRM/docs.churchcrm.io#328 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
melodic-software/claude-code-plugins#20573 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
bmaltais/StartDrive#17 ·