mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-26 23:50:46 +00:00
Adds points to `AGENTS.md` how to run single tests because AIs get these wrong too often (either they trigger the whole suite or run into other errors). --- This PR was written with the help of Claude Opus 4.7 --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
1.2 KiB
1.2 KiB
- Use
make helpto find available development targets - Run
make fmtto format.gofiles, and runmake lint-goto lint them - Run
make lint-jsto lint.tsfiles - Run
make tidyafter anygo.modchanges - Run single go unit tests with
go test -tags 'sqlite sqlite_unlock_notify' -run '^TestName$' ./modulepath/ - Run single go integration tests with
make 'test-sqlite#TestName/Subtest' - Run single playwright e2e test files with
GITEA_TEST_E2E_FLAGS='<filepath>' make test-e2e - Add the current year into the copyright header of new
.gofiles - Ensure no trailing whitespace in edited files
- 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
- In TypeScript, use
!(non-null assertion) instead of?./??when a value is known to always exist - For CSS layout, prefer
flex-*helpers over per-childtw-ml-*/tw-mr-*margins; fall back totw-*utilities when specificity requires!important - Include authorship attribution in issue and pull request comments
- Add
Co-Authored-Bylines to all commits, indicating name and model used