Files
email-assistant/docs/agents/issue-tracker.md
T
hermes a934c5406e docs(wiki): LLM-Wiki проекта + публикатор в вики Gitea; задачи — в issues
- docs/wiki/: SCHEMA, index, log, glossary, sessions/decisions/pitfalls/references
  (структура как в itacc.nixg.ru)
- scripts/wiki_publish.py: публикация docs/wiki в нативную вики Gitea
  (плоские имена, index.md → Home, [[wikilink]] → код), проверено — 9 страниц
- TODO.md: открытые задачи переведены в Gitea issues (#2 CardDAV-PUSH,
  #3 DnD доски, #4 backfill сущностей); «Разложить старые VTODO» отменена
- docs/agents/issue-tracker.md: конвенция «задачи — в issues, процедуры — в вики»
- WALKTHROUGH: раздел 2026-11-01 про трекер и вики + грабли Gitea wiki
2026-11-01 16:41:32 +00:00

85 lines
4.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Issue Tracker
**Tracker:** Gitea (self-hosted, https://gitea.nixg.ru)
**Repository:** `hermes/email-assistant`
**Web UI:** https://gitea.nixg.ru/hermes/email-assistant
This is a custom ("Other") tracker configuration for the Matt Pocock engineering skills (`to-tickets`, `to-spec`, `triage`). Gitea is not natively supported by `/setup-matt-pocock-skills` (which offers GitHub / GitLab / local files), so the workflow is recorded here as freeform prose.
## How to publish issues
Use the **`tea` CLI** (v0.16.0, at `~/.local/bin/tea`) with the login **`gitea.nixg-full`**:
```bash
export PATH="$HOME/.local/bin:$PATH"
# Create an issue
tea issues create --login gitea.nixg-full --repo hermes/email-assistant \
--title "Ticket title" \
--description "Ticket body (use the to-tickets per-ticket template)" \
--labels "ready-for-agent"
# List issues
tea issues list --login gitea.nixg-full --repo hermes/email-assistant -o simple
# Show one issue (with comments)
tea issues --login gitea.nixg-full --repo hermes/email-assistant 42 --comments
# Add a comment
tea comment --login gitea.nixg-full --repo hermes/email-assistant 42 "comment"
# Close / reopen
tea issues close --login gitea.nixg-full --repo hermes/email-assistant 42
```
**Alternative:** the `gitea` MCP server (gitea-mcp, 72 tools: `create_issue`, `list_issues`, `update_issue`, `add_issue_labels`, ...) is configured in Hermes `mcp_servers.gitea` — it talks to the same instance with the same token. Use whichever is more convenient; prefer MCP tools when you are already in an agent session, `tea` for quick shell checks.
## Repository and credentials
- Instance: `https://gitea.nixg.ru` (API v1.26.2, external VPS 5.129.217.146)
- Owner/repo: `hermes/email-assistant` (issues enabled: yes)
- Login (tea): `gitea.nixg-full` — token `hermes-mcp-full` (full: `read:user`, `write:user`, `read:issue`, `write:issue`, `read:repository`, `write:repository`)
- Token source: `/opt/hermes/.hermes/secrets/git-tokens.env` (`GITEA_NIXG_TOKEN`); also in Hermes `config.yaml` → `mcp_servers.gitea` env `GITEA_TOKEN`.
- SSH (for git push): `ssh://git@gitea.nixg.ru:2222/hermes/email-assistant.git`
## Triage labels (created)
The five canonical labels are already created in this repo (IDs shown):
| Label | Color | ID |
|---|---|---|
| `needs-triage` | `#e11d21` | 1 |
| `needs-info` | `#fbca04` | 2 |
| `ready-for-agent` | `#0e8a16` | 3 |
| `ready-for-human` | `#006b75` | 4 |
| `wontfix` | `#ffffff` | 5 |
Use `ready-for-agent` for tickets published by `to-tickets` (agent-grabbable by construction, per the skill default).
## Blocking edges
Gitea has no native issue-blocking links in the API used here. Follow the `to-tickets` rule for trackers without native blocking: publish tickets in dependency order (blockers first), and set each ticket's **"Blocked by"** section to the blocking issues' real identifiers (e.g. `#12`, `#13`).
## Scope / local files fallback
If a task is not tied to `hermes/email-assistant` (e.g. infra on another repo), either:
- create the issue in the matching repo on gitea.nixg.ru (`tea issues create --repo <owner>/<repo>`), or
- fall back to local markdown under `.scratch/<feature>/issues/` in that project.
Update this file if the tracker repository ever changes.
## Открытые задачи проекта — только в issues
Решение 2026-11-01 (см. `docs/wiki/decisions/decision-issue-tracker-gitea.md`):
открытые задачи ведутся issues репозитория `hermes/email-assistant`, а `TODO.md`
служит указателем и историей закрытого.
- Новая задача = новый issue (метка триажа: `needs-triage`, `ready-for-agent`,
`ready-for-human`, `needs-info`, `wontfix`) + строка «➡ Gitea #N» в TODO.md.
- Закрытие: issue closed, строка в TODO.md переводится в «✅ закрыта» с датой и
коммитом/изменением.
- Процедурные знания (как настроить, как чинить, доступы без секретов) идут в
`docs/wiki/` и публикуются в вики репозитория:
`.venv/bin/python scripts/wiki_publish.py` →
https://gitea.nixg.ru/hermes/email-assistant/wiki (структура и правила —
`docs/wiki/SCHEMA.md`, инструкция — `docs/wiki/references/reference-wiki-publishing.md`).