e10463419e
CI / push-validation (pull_request) Successful in 9s
CI / helm (pull_request) Successful in 25s
CI / lint (pull_request) Failing after 40s
CI / typecheck (pull_request) Successful in 55s
CI / build (pull_request) Successful in 3m18s
CI / quality (pull_request) Successful in 3m41s
CI / integration_tests (pull_request) Successful in 4m0s
CI / security (pull_request) Successful in 4m27s
CI / coverage (pull_request) Has been skipped
CI / unit_tests (pull_request) Failing after 5m43s
CI / docker (pull_request) Has been skipped
CI / e2e_tests (pull_request) Successful in 7m43s
CI / status-check (pull_request) Failing after 2s
- Capture started_at timestamp using datetime.now(UTC) before service call - Add timing.started field to JSON envelope with ISO 8601 format - Update step definitions to verify timing.started is present and valid - Remove @tdd_expected_fail tag from plan_prompt_command.feature scenario Fixes #9353
58 lines
2.0 KiB
Python
58 lines
2.0 KiB
Python
import urllib.request
|
|
import json
|
|
import sys
|
|
|
|
BASE = "https://git.cleverthis.com/api/v1"
|
|
TOKEN = "92224acff675c50c5958d1eaca9a688abd405e06"
|
|
HEADERS = {
|
|
"Authorization": f"token {TOKEN}",
|
|
"Content-Type": "application/json",
|
|
}
|
|
PR_NUMBER = 9439
|
|
ISSUE_NUMBER = 8370
|
|
REPO = "cleveragents/cleveragents-core"
|
|
|
|
PR_BODY = """## Summary
|
|
|
|
- Added a **pre-flight duplicate-check** step to prevent redundant PRs (e.g. #7793) by verifying the proposed change is not already present in master before proceeding.
|
|
- Added a mandatory **`CHANGELOG.md` update** requirement: every agent-evolution PR must add an entry under `[Unreleased] > Changed`.
|
|
- Added **milestone v3.2.0 (ID: 105)** assignment requirement for all agent-evolution PRs.
|
|
- Added **`Type/Chore` label** requirement (agent definition changes are chores).
|
|
- Added an explicit **PR Compliance Checklist** in the worker instructions listing all required items before PR submission.
|
|
|
|
Closes #8370
|
|
|
|
---
|
|
**Automated by CleverAgents Bot**
|
|
Supervisor: Agent Evolution | Agent: agent-evolution-pool-supervisor"""
|
|
|
|
|
|
def api(method, path, data=None):
|
|
url = f"{BASE}/{path}"
|
|
body = json.dumps(data).encode() if data is not None else None
|
|
req = urllib.request.Request(url, method=method, data=body, headers=HEADERS)
|
|
try:
|
|
resp = urllib.request.urlopen(req)
|
|
return json.load(resp), resp.status
|
|
except urllib.error.HTTPError as e:
|
|
return json.load(e), e.code
|
|
|
|
|
|
# 1. Assign milestone (keep full body to avoid wiping it)
|
|
print("=== Assigning milestone 105 ===")
|
|
result, status = api("PATCH", f"repos/{REPO}/pulls/{PR_NUMBER}", {
|
|
"milestone": 105,
|
|
"body": PR_BODY,
|
|
})
|
|
ms = result.get("milestone")
|
|
print(f"Status: {status}, milestone: {ms}")
|
|
|
|
# 2. Add dependency: issue #8370 depends on PR #9439
|
|
print("\n=== Adding issue dependency ===")
|
|
result2, status2 = api("POST", f"repos/{REPO}/issues/{ISSUE_NUMBER}/dependencies", {
|
|
"created_issue_id": PR_NUMBER,
|
|
})
|
|
print(f"Status: {status2}, result: {json.dumps(result2)[:200]}")
|
|
|
|
print("\nDone.")
|