mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-30 01:00:21 +02:00
Add and modify more instruction for common problems in this codebase and made the force-push instruction more strict. --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
784 B
784 B
- 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 - 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 - Include authorship attribution in issue and pull request comments
- Add
Co-Authored-Bylines to all commits, indicating name and model used