doc_parser_skill: - New: verify_flowchart.py (flowchart validation) - Updated: LLM.py (multi-provider: DeepSeek + DashScope) - Updated: image_parser.py (logic tree support, external prompts) - Updated: SKILL.md, prompts/image_prompt.md conflict_detection_skill: - Updated: LLM.py (multi-provider sync) - Updated: detect_conflicts.py (logic tree text conversion) ir_generation_skill: - Replaced old scripts/LLM.py + ir_generator.py with standalone project - New: main.py, config.py, step1-3_*.py, ensemble_merge.py - New: prompts/, tests/ subdirectories tests: - New: acceptance/ test suite with schema validation - Fixed: conftest no longer globally skips non-acceptance tests - Updated: test_sample.py for new ir_generation structure Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -17,14 +17,18 @@ def main():
|
||||
parser.add_argument("--run", required=True)
|
||||
parser.add_argument("--message", required=True)
|
||||
parser.add_argument("--api-token", default=os.environ.get("GITEA_API_TOKEN", ""))
|
||||
parser.add_argument("--workflow", default="CI", help="Workflow name that triggered this (default: CI)")
|
||||
parser.add_argument("--labels", default="ci-failure,agent-task",
|
||||
help="Comma-separated labels for the issue (default: ci-failure,agent-task)")
|
||||
args = parser.parse_args()
|
||||
|
||||
sha_short = args.sha[:7]
|
||||
run_url = f"{GITEA_URL}/{REPO}/actions/runs/{args.run}"
|
||||
labels = [l.strip() for l in args.labels.split(",") if l.strip()]
|
||||
|
||||
title = f"CI Failure: {args.message[:80]}"
|
||||
title = f"[{args.workflow}] Failure: {args.message[:80]}"
|
||||
body = (
|
||||
f"## CI 测试失败\n\n"
|
||||
f"## {args.workflow} 测试失败\n\n"
|
||||
f"- **Commit:** {sha_short}\n"
|
||||
f"- **Branch:** {args.branch}\n"
|
||||
f"- **工作流运行:** {run_url}\n\n"
|
||||
@@ -38,7 +42,7 @@ def main():
|
||||
payload = json.dumps({
|
||||
"title": title,
|
||||
"body": body,
|
||||
"labels": [],
|
||||
"labels": labels,
|
||||
}).encode("utf-8")
|
||||
|
||||
url = f"{GITEA_URL}/api/v1/repos/{REPO}/issues"
|
||||
|
||||
Reference in New Issue
Block a user