Add create_issue tool and update README with usage examples

This commit is contained in:
sha
2026-03-20 14:13:30 +02:00
parent 3a701a5280
commit 1bfb98b7c0
3 changed files with 46 additions and 1 deletions
+8
View File
@@ -24,3 +24,11 @@ def _put(path: str, body: dict) -> dict:
resp = client.put(url, headers=_headers(), content=json.dumps(body))
resp.raise_for_status()
return resp.json() if resp.content else {}
def _post(path: str, body: dict) -> dict:
url = f"{REDMINE_URL}{path}"
with httpx.Client(timeout=15) as client:
resp = client.post(url, headers=_headers(), content=json.dumps(body))
resp.raise_for_status()
return resp.json()