mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-15 02:03:19 +02:00
docs(agents): update AGENTS.md (#37684)
Add two rules to `AGENTS.md` for recurring issues. Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
This commit is contained in:
parent
79f7062d9e
commit
ffd5e0698b
@ -10,6 +10,9 @@
|
|||||||
- Use Conventional Commits format for commit messages and PR titles (e.g. `type(scope): subject`)
|
- Use Conventional Commits format for commit messages and PR titles (e.g. `type(scope): subject`)
|
||||||
- Never force-push, amend, or squash unless asked. Use new commits and normal push for pull request updates
|
- Never force-push, amend, or squash unless asked. Use new commits and normal push for pull request updates
|
||||||
- Preserve existing code comments, do not remove or rewrite comments that are still relevant
|
- Preserve existing code comments, do not remove or rewrite comments that are still relevant
|
||||||
|
- Keep comments short, prefer same-line, explain why, never narrate code
|
||||||
|
- Prefer unit tests over integration tests when logic is testable in isolation
|
||||||
|
- Aim for sub-2s local runtime for integration and e2e tests
|
||||||
- In TypeScript, use `!` (non-null assertion) instead of `?.`/`??` when a value is known to always exist
|
- In TypeScript, use `!` (non-null assertion) instead of `?.`/`??` when a value is known to always exist
|
||||||
- For CSS layout, prefer `flex-*` helpers over per-child `tw-ml-*` / `tw-mr-*` margins; fall back to `tw-*` utilities when specificity requires `!important`
|
- For CSS layout, prefer `flex-*` helpers over per-child `tw-ml-*` / `tw-mr-*` margins; fall back to `tw-*` utilities when specificity requires `!important`
|
||||||
- Include authorship attribution in issue and pull request comments
|
- Include authorship attribution in issue and pull request comments
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user