docs: one commit, one goal moves into the code standards (seen a third day)
LESSONS.md's "One commit, one goal" was seen on 10-05 and 10-06. On 10-286e080ca04answered two reports in two layers under one subject: psikent's /v1/models tools flag (gateway) and windy's routing group Context hint (GUI, five languages), the subject naming only the first. A revert of either takes the other with it, and the record can't say which test guards which. - docs/code-standards.md, Commits: a paragraph on one goal per commit, with653cb8ee,1e0829b1and6e080ca04. - LESSONS.md: the lesson replaced by a pointer, and listed under Moved to the code standards with the 10-28 evidence. Docs only. Checked that no test reads either file's content (loop_guard_test.go and rtk_detect_once_test.go only name them).
This commit is contained in:
+6
-8
@@ -611,14 +611,8 @@ it doesn't.**
|
||||
open for the reporter.
|
||||
- Seen 1× (2026-10-05).
|
||||
|
||||
**One commit, one goal.**
|
||||
- 653cb8ee bundled ZCode sign-in with WSL session deletion.
|
||||
- 5464a362 capped six pages at 1200px when #860 asked for a speed display.
|
||||
- A fix found on the way goes in its own commit. 1e0829b1 hid the ja/de fix
|
||||
inside a Usage change, beside two issues (#925, #928).
|
||||
- 76dc5aed bundled a Routing animation fix, a scrollbar fix and bringing the
|
||||
GUI tests up to date.
|
||||
- Seen 2× (2026-10-05, 2026-10-06).
|
||||
**One commit, one goal** is in the code standards since 10-28. See
|
||||
[Moved to the code standards](#moved-to-the-code-standards).
|
||||
|
||||
**A squash merge's message is written, not GitHub's default.** Give
|
||||
`gh pr merge --squash` a `--subject` and a `--body-file` holding the PR's
|
||||
@@ -664,6 +658,10 @@ These were seen on three or more days. The rules and their evidence are in
|
||||
[docs/code-standards.md](docs/code-standards.md); a review still checks
|
||||
each one.
|
||||
|
||||
- **One commit, one goal** (10-05, 10-06, 10-28). On 10-28 6e080ca04
|
||||
answered psikent (/v1/models says every model takes tools) and windy
|
||||
(a group's Context hint names the member a longer conversation skips)
|
||||
under one subject that names only the first.
|
||||
- **Never let magpie's default override a value the user set themselves**
|
||||
(10-05, 10-10, 10-17). On 10-17 5a2414acd brought every plugins.yml
|
||||
without `settled` up once, Essentials to All. A user who had run
|
||||
|
||||
@@ -218,6 +218,15 @@ left two GUI tests red, found by 2dcc51417 the same evening. When a
|
||||
community commit is applied without a body, the review commit says what
|
||||
was run against that author's code.
|
||||
|
||||
One commit has one goal. Two reports fixed together are two commits,
|
||||
each with its own record, so a revert takes back one and keeps the other,
|
||||
and a review can tell which test guards which change. A fix found on the
|
||||
way goes in a commit of its own. 653cb8ee bundled ZCode sign-in with WSL
|
||||
session deletion, and 1e0829b1 hid a ja/de fix inside a Usage change. On
|
||||
10-28 6e080ca04 put psikent's /v1/models tools flag and windy's routing
|
||||
group Context hint, two reports in two layers (gateway, GUI), under one
|
||||
subject that names only the first.
|
||||
|
||||
A checkout, a worktree and the logs in it belong to the session that made
|
||||
them. Work in a worktree of your own (`git worktree add --detach`), never
|
||||
check out, commit from or clean another session's, and after committing
|
||||
|
||||
Reference in New Issue
Block a user