Full IssueMeta required for issue dependencies; a minimal
{index:N} 404s misleadingly. Verified with a GET after POST.
Ref #42.
46 lines
3.1 KiB
Markdown
46 lines
3.1 KiB
Markdown
# Issue tracker: Gitea
|
|
- **Blocked-by edges**: use the dependency API via `tea api '/repos/AlexKucera/museion/issues/<idx>/dependencies' -X POST` with the **full IssueMeta** `{"index":N,"owner":"AlexKucera","repo":"museion"}` — a minimal `{"index":N}` fails with a misleading 404. Verify with a GET (response uses the `number` key). Also declare the edge as a `## Blocked by` section in the issue body.
|
|
|
|
Issues and specs for this repo live as Gitea issues on git.babylondreams.de (repo `AlexKucera/museion`). Use the `tea` CLI for all operations; follow the `gitea-cli` skill for its traps.
|
|
|
|
## Conventions
|
|
|
|
- **Create an issue**: `tea issues create -t "..." -d "..."` (labels by name via `-L`, assignees by username via `-a`).
|
|
- **Read an issue**: `tea issues <idx> --comments` — positional; there is NO `view` subcommand (`tea issues view <idx>` silently lists everything instead).
|
|
- **List issues**: `tea issues list --state open` (index/title/labels overview only; `-o json` is lossy — no body). Full-body search: `tea api '/repos/AlexKucera/museion/issues?state=all&type=issues&limit=50&q=…'`.
|
|
- **Comment on an issue**: `tea comments add <idx> "..."` (`tea comments list <idx>` lists).
|
|
- **Apply / remove labels**: `tea issues edit <idx> --add-labels "..."` / `--remove-labels "..."`
|
|
- **Assign**: `tea issues edit <idx> --add-assignees <user>`
|
|
- **Close**: `tea issues close <idx>`
|
|
|
|
`tea` infers owner/repo from the local git remote; pass `-r AlexKucera/museion` if needed.
|
|
|
|
## Forge-write authorization
|
|
|
|
The root AGENTS.md forbids commenting on the forge autonomously. Creating, commenting, labeling, assigning, or closing issues are forge writes — run them only after explicit authorization in the session. (Reading/listing is fine.)
|
|
|
|
## Pull requests as a triage surface
|
|
|
|
**PRs as a request surface: no.** _(Set to `yes` if this repo treats external PRs as feature requests; `/triage` reads this flag.)_
|
|
|
|
Gitea shares one number space across issues and PRs: `tea issues <idx>` returns issues, `tea pulls <idx>` returns PRs — try both if a bare `#42` is ambiguous.
|
|
|
|
## When a skill says "publish to the issue tracker"
|
|
|
|
Create a Gitea issue (after authorization, see above).
|
|
|
|
## When a skill says "fetch the relevant ticket"
|
|
|
|
Run `tea issues <idx> --comments`.
|
|
|
|
## Wayfinding operations
|
|
|
|
Used by `/wayfinder`. The **map** is a single issue with **child** issues as tickets.
|
|
|
|
- **Map**: a single issue labelled `wayfinder:map`, holding the Notes / Decisions-so-far / Fog body.
|
|
- **Child ticket**: an issue with `Part of #<map>` at the top of the body, labelled `wayfinder:<type>` (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev.
|
|
- **Blocking**: a `Blocked by: #NN, #NN` line at the top of the child body. A ticket is unblocked when every listed issue is closed.
|
|
- **Frontier query**: list the map's open children, drop any with an open blocker or an assignee; first in map order wins.
|
|
- **Claim**: `tea issues edit <n> --add-assignees <me>` — the session's first write.
|
|
- **Resolve**: `tea comments add <n> "<answer>"`, then `tea issues close <n>`, then append a context pointer (gist + link) to the map's Decisions-so-far.
|