From fc2b9312fad9fff8515cdced07d4cd6b9f986387 Mon Sep 17 00:00:00 2001 From: Huxley Date: Sun, 5 Jul 2026 17:18:59 +0800 Subject: [PATCH] docs: clarify conventional commit body blank-line rule --- AGENTS.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 8561963..10e217c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -59,7 +59,7 @@ Use Conventional Commits: - Keep the title to one concise sentence describing the main change. - Write the body as bullet points grouped by change category. Each bullet starts with a typed prefix such as `feat:`, `fix:`, `test:`, `docs:`, `refactor:`, or `build:`. - Use as few as possible bullets. -- Use one blank line between the title and body, and one blank line between body bullets. +- Use one blank line between the title and body. - DON'T paste full code sentences into the message body; summarize behavior and intent. Example: @@ -68,9 +68,7 @@ Example: feat(middleware): add AdminRequired authorization middleware - feat: AdminRequired gates admin endpoints by checking user IsAdmin flag. Placed after AuthRequired; fetches user from repository, returns 403 for non-admins. - - fix: soft-deleted users are rejected with 401 since FindByID excludes them. - - test: admin passes, non-admin forbidden, soft-deleted admin rejected, missing user ID. ```