From 69860cc34b9e3a2e4a6f0301c119c79b9814634d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 23 Jul 2026 11:51:25 +0200 Subject: [PATCH] feat: define structured issue triage output --- .github/ai/triage-schema.json | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/ai/triage-schema.json diff --git a/.github/ai/triage-schema.json b/.github/ai/triage-schema.json new file mode 100644 index 0000000000..a18360cfc9 --- /dev/null +++ b/.github/ai/triage-schema.json @@ -0,0 +1,66 @@ +{ + "type": "object", + "additionalProperties": false, + "properties": { + "category": { + "type": "string", + "enum": [ + "question", + "missing_information", + "bug", + "improvement", + "new_addon_request", + "unsupported", + "spam" + ] + }, + "confidence": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "addon": { + "type": [ + "string", + "null" + ] + }, + "needs_repository_analysis": { + "type": "boolean" + }, + "safe_to_answer_automatically": { + "type": "boolean" + }, + "risk": { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + "summary": { + "type": "string" + }, + "response": { + "type": "string" + }, + "missing_information": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "category", + "confidence", + "addon", + "needs_repository_analysis", + "safe_to_answer_automatically", + "risk", + "summary", + "response", + "missing_information" + ] +}