Put a pre-commit checklist at the top of the section that describes it #18
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/pre-commit-checklist"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
"Before you commit" is the longest section in this file and the one most likely to be consulted mid-task, when what a reader needs is the sequence rather than the argument for it. This puts an eleven-item checklist at the top; everything below stays exactly as it was and becomes the expansion.
The order is the order the work happens: branch name, scope of the diff, classify, run what the diff earns, lint what was touched, reproduce the pipeline, say what was skipped, no secrets, the message, permission.
Two items that are not restatements
Verified
markdownlint(v0.45.0, the pinned image the consuming repo uses) on the file before and after: the 30 added lines introduce no findings.It does report two that are pre-existing and untouched by this change, at what are lines 116 and 144 before the insertion:
Neither is this PR's to fix, but they are worth knowing about: this repository ships no markdownlint config and no workflows, and the consuming repository's linter deliberately excludes submodule content — so nothing has ever linted these files. Worth a follow-up decision about whether this repo should lint itself.
Follow-up in the consuming repo
The pointer bump lands separately, per this file's own rule that a standards change is two pull requests.