2026-01-30 20:48:56 +00:00
- Use `make help` to find available development targets
2026-03-24 17:49:29 +01:00
- Run `make fmt` to format `.go` files, and run `make lint-go` to lint them
- Run `make lint-js` to lint `.ts` files
- Run `make tidy` after any `go.mod` changes
2026-05-07 02:57:59 +08:00
- Run single go tests with `go test -run '^TestName$' ./modulepath/`
2026-04-26 12:00:48 +02:00
- Run single js test files with `pnpm exec vitest <path-filter>`
2026-04-24 11:49:20 +02:00
- Run single playwright e2e test files with `GITEA_TEST_E2E_FLAGS='<filepath>' make test-e2e`
2026-03-24 17:49:29 +01:00
- Add the current year into the copyright header of new `.go` files
- Ensure no trailing whitespace in edited files
2026-05-26 07:06:54 +02:00
- Use Conventional Commits for commit messages and PR titles, e.g. `type(scope): subject` ; `!` before the colon if breaking. Use `test` type for test-only changes.
2026-03-29 00:44:17 +01:00
- 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
2026-05-13 08:27:22 +02:00
- 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
2026-03-29 00:44:17 +01:00
- In TypeScript, use `!` (non-null assertion) instead of `?.` /`??` when a value is known to always exist
2026-04-19 08:53:02 -04:00
- For CSS layout, prefer `flex-*` helpers over per-child `tw-ml-*` / `tw-mr-*` margins; fall back to `tw-*` utilities when specificity requires `!important`
2026-03-29 00:44:17 +01:00
- Include authorship attribution in issue and pull request comments
2026-06-01 18:22:17 +02:00
- Always add `Assisted-By` trailers to commit messages in format `Assisted-by: AGENT_NAME:MODEL_VERSION`
- Never add `Co-Authored-By` `Signed-off-by` trailer to commit messages. Sign off must be done by a human.