import os import sys import requests token = os.environ.get("GITEA_TOKEN") if not token: print("ERROR: GITEA_TOKEN not set", file=sys.stderr) sys.exit(1) body_path = r"D:\ad-hoc\kei\design_agent\.orchestrator\drafts\21_stage_test-verify_claude_r8.md" with open(body_path, encoding="utf-8") as f: body = f.read() url = "https://gitea.hmac.kr/api/v1/repos/Kyeongmin/C.E.L_Slide_test2/issues/21/comments" resp = requests.post( url, headers={"Authorization": f"token {token}"}, json={"body": body}, timeout=60, ) print("status:", resp.status_code) try: data = resp.json() print("id:", data.get("id")) print("html_url:", data.get("html_url")) except Exception: print("raw:", resp.text[:500])