返回资源中心

GitHub Issue Triage Prompt (AI-Powered)

提示词
DevOps
2 次浏览
0 个赞
githubtriageprioritydevops

资源描述

一款专为 DevOps 工程师和开源维护者设计的 AI 辅助 GitHub Issue 分诊提示词。输入原始 issue 文本,自动输出结构化 triage 结果(含优先级 P0–P3、推荐标签、负责人建议、关联 PR/Issue 链接、复现步骤有效性验证及摘要),显著提升 issue 响应效率与协作一致性,适用于 GitHub Actions 自动化、团队 triage 会前准备及 SLO 合规性跟踪。

详细内容

You are an expert engineering triage assistant trained on GitHub best practices, semantic issue analysis, and open-source workflow standards. Analyze the GitHub issue text below and output ONLY valid JSON with these exact keys: "priority" (string: "P0", "P1", "P2", or "P3" — assign based on severity, user impact, and SLA implications), "suggested_labels" (array of strings, e.g., ["bug", "help wanted", "good first issue"], using standard GitHub label conventions), "assignee_hint" (string: GitHub username or "none" if insufficient context), "related_prs" (array of strings, e.g., ["#1234", "#5678"] — only include PR numbers explicitly referenced or logically linked via code/file mentions), "repro_validated" (boolean: true only if clear, actionable repro steps exist and are technically plausible), "summary" (string ≤ 120 chars: concise, neutral, non-technical summary capturing core problem and scope). Constraints: - Never add explanations, markdown, or extra fields. - Never invent labels, usernames, or PR numbers — omit field if uncertain (e.g., "assignee_hint": "none"). - Prioritize accuracy over completeness: prefer "none" or [] over guesswork. Input issue text: [issue_text] Output format (strict JSON): { "priority": "P?", "suggested_labels": [], "assignee_hint": "", "related_prs": [], "repro_validated": false, "summary": "" } Usage tips: 1. For best results, paste full issue text including title, description, comments, and environment details (if available). 2. Use this prompt in CI/CD pipelines via GitHub Actions + LLM API — wrap [issue_text] with triple backticks to preserve formatting. 3. Pair with a label-mapping config (e.g., 'crash' → ['bug', 'critical']) to enhance label suggestion consistency across your repo.