feat: add provider-neutral tracker automation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Issue tracker: Gitea
|
||||
# Issue tracker: provider-neutral tracker over Gitea
|
||||
|
||||
Issues and PRDs for this repo live as Gitea issues. Use the `tea` CLI for all operations.
|
||||
Use `tracker` (see `docs/agents/tracker.md`) for normal issue and pull-request automation. It delegates to `tea` and emits one JSON envelope. The Gitea command details below remain capability and fallback reference material; do not issue exploratory raw commands when a tracker operation exists.
|
||||
|
||||
## Conventions
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# Provider-neutral tracker automation
|
||||
|
||||
Use `tracker` for normal issue and pull-request automation. It owns the high-level operation, prerequisite checks, normalization, bounded retry policy, and JSON protocol; it delegates credentials and provider commands to `gh`, `glab`, or `tea`.
|
||||
|
||||
```sh
|
||||
tracker --provider gitea issue get 16
|
||||
TRACKER_PROVIDER=gitlab tracker issue list --state open --label ready-for-agent
|
||||
tracker pr get 42 --diff
|
||||
```
|
||||
|
||||
Provider selection is explicit CLI flag, then `TRACKER_PROVIDER`, then the `origin` remote. Always choose `issue` or `pr` explicitly for reads and writes. Use `resolve-reference` only for an intentionally ambiguous bare number.
|
||||
|
||||
Parse `ok` and `error.code`; do not parse provider output or issue exploratory retries. The library (`from tracker import Tracker`) returns the same envelope as the CLI. `RecordingRunner` provides the fake subprocess seam for tests.
|
||||
|
||||
Provider-specific capability and fallback references remain in `docs/agents/issue-tracker.md` and the setup templates. They are not the normal execution path. Wayfinding relationships may use native provider APIs where available and task-list/body or note fallbacks otherwise; the result's `details` identifies the relationship mode.
|
||||
Reference in New Issue
Block a user