v0.1.1: Gitea transport surface de-MCP — REST+swagger sole canon (adapter recipes, terminology map, review probes)

This commit is contained in:
octopus
2026-09-15 09:59:04 +08:00
parent bb35e661b2
commit 18ffce5d29
15 changed files with 202 additions and 136 deletions
+14 -16
View File
@@ -732,10 +732,10 @@ originating slug in each row so the trail survives.
independent ticket THEN, carrying the reserved `TD-NNN`:
```
gitea_issue__create(owner="Octopus", repo="octopus",
title="[{origin}] Tech debt: {short description} (TD-{NNN})",
body=<promotion template below>,
labels=[tech_debt_label_id, severity_label_id])
POST <gitea-base-url>/api/v1/repos/Octopus/octopus/issues
body: {"title":"[{origin}] Tech debt: {short description} (TD-{NNN})",
"body":<promotion template below>,
"labels":[tech_debt_label_id, severity_label_id]}
```
- **Severity → label** (reuse the existing exclusive Priority set):
@@ -820,8 +820,7 @@ AND closed), per `core/rules/testing.md`** (de-duplicate BEFORE filing,
retro [org-internal #2696]). Query `baseline-failure` issues in ALL states:
```
gitea_issue__list(owner="Octopus", repo="octopus",
labels="baseline-failure", state="all")
GET <gitea-base-url>/api/v1/repos/Octopus/octopus/issues?labels=baseline-failure&state=all&page=N&limit=50
```
Match each candidate by **failure signature** — the error/assertion signature
@@ -848,10 +847,10 @@ number `#NNNN` is the tracker handle.
no existing family matches the signature:
```
gitea_issue__create(owner="Octopus", repo="octopus",
title="[{origin}] Baseline failure: {test identifier} (BF-{NNN})",
body=<issue body template below>,
labels=[baseline_failure_label_id, severity_label_id, kind_bug_label_id])
POST <gitea-base-url>/api/v1/repos/Octopus/octopus/issues
body: {"title":"[{origin}] Baseline failure: {test identifier} (BF-{NNN})",
"body":<issue body template below>,
"labels":[baseline_failure_label_id, severity_label_id, kind_bug_label_id]}
```
- **Title**: `[{origin}] Baseline failure: {signature summary} (BF-{NNN})`
@@ -965,8 +964,7 @@ AND closed), per `core/rules/testing.md`** (de-duplicate BEFORE filing,
retro [org-internal #2696]). Query `flaky-test` issues in ALL states:
```
gitea_issue__list(owner="Octopus", repo="octopus",
labels="flaky-test", state="all")
GET <gitea-base-url>/api/v1/repos/Octopus/octopus/issues?labels=flaky-test&state=all&page=N&limit=50
```
Match each candidate by **failure signature** — the flakiness mode (timeout /
@@ -991,10 +989,10 @@ incl. closed tickets). `FT-NNN` names the FAMILY.
no existing family matches the signature:
```
gitea_issue__create(owner="Octopus", repo="octopus",
title="[{origin}] Flaky test: {test identifier} (FT-{NNN})",
body=<issue body template below>,
labels=[flaky_test_label_id, severity_label_id, kind_testing_label_id])
POST <gitea-base-url>/api/v1/repos/Octopus/octopus/issues
body: {"title":"[{origin}] Flaky test: {test identifier} (FT-{NNN})",
"body":<issue body template below>,
"labels":[flaky_test_label_id, severity_label_id, kind_testing_label_id]}
```
- **Title**: `[{origin}] Flaky test: {signature summary} (FT-{NNN})` — the