diff --git a/CLAUDE.md b/CLAUDE.md index 8af2b36..0edcd23 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -83,3 +83,39 @@ This is a common problem. Nextcloud aggressively caches JS assets. Escalation pa - Repo: `shahondin1624/Mitgliederverwaltung` on `git.shahondin1624.de` - Issues use labels: `enhancement`, `bug`, `backend`, `frontend`, `security`, `epic`, `priority:high/medium/low` - Close issues via commit message: `(Closes #N)` + +### Using `tea` CLI + +Always use the `tea` CLI for Gitea operations (never the web UI or raw API calls): + +```bash +# Pull requests +teaprclose +teaprclose +teapr create --head --title "" --labels "<labels>" --description "<body>" +teapr list +teapr view <PR> +teapr diff <PR> +teapr merge <PR> + +# Issues +tei list --state open +tei create --title "<title>" --labels "<labels>" +tei view <Issue> +tei close <Issue> +tei update <Issue> --labels "<new-labels>" --assignees "<user>" + +# Labels +tel list +tel create <name> --color "<hex>" --description "<desc>" + +# Milestones +tems list +tms create --title "<title>" --deadline "YYYY-MM-DD" +``` + +**Rules:** +- Before creating a PR: ensure the branch is pushed to origin first, and verify there are actual commits on the branch (never create a PR from a branch identical to main/base) +- Always use `tea pr diff` to verify the PR has the expected changes before merging +- Use `tea pr merge` to merge after review +- Close issues via commit message `(Closes #N)` — `tea` is only for PR/issue management on the Gitea server