US02-07: Automate Phase B End-to-End Acceptance (#60)

This commit was merged in pull request #60.
This commit is contained in:
2026-08-14 12:53:45 +02:00
parent b59bc93fcb
commit b9bcb47c68
11 changed files with 577 additions and 12 deletions

View File

@@ -50,6 +50,13 @@ if args[0] == "api":
out(state["prs"][str(number)])
elif "/commits/" in endpoint and endpoint.endswith("/status"):
out({"state": state.get("ci_state", "success")})
elif "--method" in args and args[args.index("--method") + 1] == "PATCH" and "/issues/" in endpoint:
number = int(endpoint.rsplit("/", 1)[1])
issue = next(x for x in state["issues"] if x["number"] == number)
payload = json.loads(args[args.index("--data") + 1])
if "assignees" in payload:
issue["assignees"] = [{"login": login} for login in payload["assignees"]]
save(); out(issue)
else:
raise SystemExit(f"unsupported api: {endpoint}")
elif args[:2] == ["issues", "edit"]: