📝 docs(AGENTS): Document 50/72 Git commit rule
Add the 50/72 rule to the Git conventions section of `AGENTS.md`. This guideline establishes that commit subjects must not exceed 50 characters for conciseness and clarity, while commit body lines must not exceed 72 characters to maintain readability in terminal pagers and git log views. Assisted-by: gemini-3.8-flash (1M context) Signed-off-by: Justin Wheeler <jwheel@redhat.com>
This commit is contained in:
parent
587b71bbf3
commit
965535133d
1 changed files with 12 additions and 12 deletions
24
AGENTS.md
24
AGENTS.md
|
|
@ -134,23 +134,23 @@ Include an `Assisted-by:` trailer with the AI model name, version, and context w
|
|||
Use `--signoff` on all commits.
|
||||
Use `--gpg-sign` if the operator has a GPG key available — prompt them to use it, but do not require it.
|
||||
|
||||
Follow the **50/72 rule** for Git commit messages:
|
||||
- **50-character subject line**: The subject line of a commit message should be no more than 50 characters long.
|
||||
This ensures the message is concise, easy to read, and provides a brief summary of the changes made.
|
||||
- **72-character body lines**: Each line in the commit body should not exceed 72 characters.
|
||||
This maintains readability when commit messages are viewed in terminal pagers or other tools that wrap text.
|
||||
|
||||
### Example (from this repository)
|
||||
|
||||
```
|
||||
✨ gallery: Add Flock 2026 photo gallery page
|
||||
📝 docs(AGENTS): Document 50/72 Git commit rule
|
||||
|
||||
Create a self-contained HTML photo gallery for the 643 community photos
|
||||
from Flock to Fedora 2026. The gallery is hosted on Fedora People at
|
||||
jflory7.fedorapeople.org/flock-2026-gallery/ as a shareable, Google-free
|
||||
alternative to the community Google Photos album.
|
||||
Add the 50/72 rule to the Git conventions section of `AGENTS.md`. This
|
||||
guideline establishes that commit subjects must not exceed 50 characters
|
||||
for conciseness and clarity, while commit body lines must not exceed 72
|
||||
characters to maintain readability in terminal pagers and git log views.
|
||||
|
||||
The page is a single `index.html` with all CSS and JS inline — no build
|
||||
step, no server-side dependencies. Photos are loaded directly from the
|
||||
existing upload directory on the same server.
|
||||
|
||||
This gallery supports issue council/flock#83 (Publish event photos).
|
||||
|
||||
Assisted-by: Claude Opus 4.6 (1M context)
|
||||
Assisted-by: gemini-3.8-flash (1M context)
|
||||
Signed-off-by: Justin Wheeler <jwheel@redhat.com>
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue