diff --git a/MANIFEST.md b/MANIFEST.md index ac3bc85..7b48f3a 100644 --- a/MANIFEST.md +++ b/MANIFEST.md @@ -5,6 +5,7 @@ **Source:** Allegro v1.0 (Robe Architecture) **Purpose:** Maximum fidelity backup pre-migration to Harness **Status:** COMPLETE +**Last Checkpoint:** 2026-04-04 16:00:03 UTC **Last Checkpoint:** 2026-04-04 12:00:05 UTC **Last Checkpoint:** 2026-04-04 08:00:03 UTC **Last Checkpoint:** 2026-04-04 04:00:02 UTC diff --git a/skills/devops/gitea-api/SKILL.md b/skills/devops/gitea-api/SKILL.md index d46ec74..8c224dc 100644 --- a/skills/devops/gitea-api/SKILL.md +++ b/skills/devops/gitea-api/SKILL.md @@ -90,6 +90,12 @@ def api_post(path, data): with urllib.request.urlopen(req, timeout=15) as resp: return json.loads(resp.read().decode()) +def api_patch(path, data): + body = json.dumps(data).encode() + req = urllib.request.Request(f"{GITEA}/api/v1{path}", data=body, headers=HEADERS, method="PATCH") + with urllib.request.urlopen(req, timeout=15) as resp: + return json.loads(resp.read().decode()) + # === COMMON OPERATIONS === # List repos @@ -133,6 +139,17 @@ issue = api_get("/repos/OWNER/REPO/issues/NUMBER") api_post("/repos/OWNER/REPO/issues/NUMBER/comments", { "body": "Comment text" }) + +# Close an issue (or reopen with state="open") +api_patch("/repos/OWNER/REPO/issues/NUMBER", { + "state": "closed" +}) + +# Update issue fields (title, body, assignees, labels, milestone) +api_patch("/repos/OWNER/REPO/issues/NUMBER", { + "title": "Updated title", + "assignees": ["user1"] +}) ``` ## Pitfalls