Gitea Tooling dokumentiert: tea CLI + API
- Token-Speicherort: ~/.config/gitea/token (lokal, nicht git-synced) - tea CLI Installation: ~/bin/tea - Beispiele für tea und curl API Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
49
CLAUDE.md
49
CLAUDE.md
@@ -356,7 +356,54 @@ ssh://git@gitea.egonetix.de:222/[Kunde]/[repo-name].git
|
||||
| Vinos | zabbix | `ssh://git@gitea.egonetix.de:222/Vinos/zabbix.git` |
|
||||
| Egonetix | infrastructure | `ssh://git@gitea.egonetix.de:222/Egonetix/infrastructure.git` |
|
||||
|
||||
**Wichtig:** Das Repo muss auf Gitea ZUERST erstellt werden (API oder Web-UI).
|
||||
### Gitea Tooling
|
||||
|
||||
**Token-Speicherort (NICHT im Git-Sync!):**
|
||||
```
|
||||
~/.config/gitea/token
|
||||
```
|
||||
|
||||
**Verfügbare Tools:**
|
||||
|
||||
| Tool | Befehl | Anwendung |
|
||||
|------|--------|-----------|
|
||||
| tea CLI | `~/bin/tea` | Vollständige Gitea-Interaktion |
|
||||
| curl + API | `curl -H "Authorization: token $(cat ~/.config/gitea/token)"` | Einfache API-Aufrufe |
|
||||
|
||||
**tea CLI Beispiele:**
|
||||
```bash
|
||||
# Repos auflisten
|
||||
~/bin/tea repos list
|
||||
|
||||
# Neues persönliches Repo erstellen
|
||||
~/bin/tea repos create --name mein-repo --description "Beschreibung"
|
||||
|
||||
# Neues Repo in Organisation erstellen
|
||||
~/bin/tea repos create --owner Vinos --name repo-name
|
||||
|
||||
# Issues auflisten
|
||||
~/bin/tea issues list
|
||||
|
||||
# PR erstellen
|
||||
~/bin/tea pr create --title "Feature X" --description "..."
|
||||
```
|
||||
|
||||
**curl API Beispiele:**
|
||||
```bash
|
||||
# Persönliches Repo erstellen
|
||||
curl -X POST -H "Authorization: token $(cat ~/.config/gitea/token)" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"name":"repo-name","description":"...","private":false}' \
|
||||
https://gitea.egonetix.de/api/v1/user/repos
|
||||
|
||||
# Repo in Organisation erstellen
|
||||
curl -X POST -H "Authorization: token $(cat ~/.config/gitea/token)" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"name":"repo-name","description":"..."}' \
|
||||
https://gitea.egonetix.de/api/v1/orgs/[Org]/repos
|
||||
```
|
||||
|
||||
**Wichtig:** Der Token wird LOKAL gespeichert und NICHT nach `~/dotfiles/claude_settings` synchronisiert.
|
||||
|
||||
### Workflow: Neues System-/Dienst-Repo anlegen
|
||||
|
||||
|
||||
Reference in New Issue
Block a user