docs: clarify conventional commit body blank-line rule
This commit is contained in:
@@ -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.
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user