Repository navigation
docs: add AGENTS.md with commit type guidance - #5053
Conversation
Point coding agents at CONTRIBUTING.md and spell out how to choose the conventional-commit type, since the merge queue squashes and the pull request title becomes the commit on master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
|
||
| Choose by what the change is, whatever release it produces. | ||
|
|
||
| The merge queue squashes, so the pull request title becomes the commit on master. Give the title, every commit and the "Types of changes" boxes the same type, and update all three together if the type changes. |
There was a problem hiding this comment.
Requiring every commit to match the pull request title conflicts with .github/CONTRIBUTING.md, which shows a test: commit followed by a feat: implementation commit. An agent following this rule would relabel the test-only commit instead of following the linked guide. Keep the title tied to the overall change and let each commit describe its own contents.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
|
||
| Choose by what the change is, whatever release it produces. | ||
|
|
||
| The merge queue squashes, so the pull request title becomes the commit on master. Give the title, every commit and the "Types of changes" boxes the same type, and update all three together if the type changes. |
There was a problem hiding this comment.
Matching checkboxes are missing
The instruction to give the “Types of changes” boxes the same type cannot be followed for perf, docs, or chore changes. .github/PULL_REQUEST_TEMPLATE.md only offers bug fix, new feature, and breaking change. Agents are therefore asked to choose a matching box that does not exist. Say to check only applicable boxes and leave them unchecked when none apply.
Description
Adds a root
AGENTS.mdfor coding agents working in this repo. It points to.github/CONTRIBUTING.mdand adds one section on choosing the conventional-commit type.Motivation and Context
commitlint lints commit messages, so its own history should get the type right. The repo had no agent instruction file, and CONTRIBUTING.md gives the message format but not how to pick a type.
Concrete case: #5052 was first opened as
fix(load)although nothing was broken; it is an install-size improvement and is nowperf(load).The file covers:
perfUsage examples
None; documentation only.
How Has This Been Tested?
pnpm formatpasses. No code changes.Types of changes
Documentation only, so none of the boxes apply.
Checklist:
🤖 Generated with Claude Code