From f7393aacfa4013db6bac105e5cb4e2c2f2182bb7 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 13 Oct 2026 12:30:57 +0800 Subject: [PATCH] lessons: a squash merge's message is written, not GitHub's default 708ae4144 (#852) and 81b7016e6 (#1028) each shipped a ~520KB body: their branches had main merged in, and the default squash message lists every commit, so #1028's own run record never reached git. The lesson says to pass --subject and --body-file to gh pr merge --squash. Docs only; nothing run. --- LESSONS.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/LESSONS.md b/LESSONS.md index b54a6dc12..1ff76c824 100644 --- a/LESSONS.md +++ b/LESSONS.md @@ -400,6 +400,17 @@ it doesn't.** - Done right on 10-09/10-10: none of the 22 commits over 400 lines lacks a body. +**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 +own change and what was run at the reviewed head. +- 708ae4144 (#852) and 81b7016e6 (#1028) each carry a ~520KB body. Their + branches had main merged in (100 commits on #1028), and the default + squash message lists every commit's message. #1028's own run record + isn't in git at all: the body after its subject is other commits. +- Before pushing, check that `git log -1 --format=%B | wc -c` is a few KB at + most. +- Seen 1× (2026-10-13). + **Two sessions never commit from the same checkout.** - 10-09 12:10: 2018882e carries the davsync subject but holds the GTK font-DPI fix (#1371, 7 files). b86001d4, "#1371 GTK", is empty. be203728