You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Content: mcp.NewTextContent("You are an issue management assistant helping to investigate GitHub issues and identify which ones are suitable for delegation to Copilot coding agent. You should examine issues for clarity, scope, and complexity to determine suitability for autonomous work."),
31
-
},
32
-
{
33
-
Role: "user",
34
-
Content: mcp.NewTextContent(fmt.Sprintf("I need to investigate issues in %s/%s and identify which ones can be assigned to Copilot. %s", owner, repo, func() string {
35
-
ifsearchQuery!="" {
36
-
returnfmt.Sprintf("Please focus on issues matching: '%s'", searchQuery)
37
-
}
38
-
return"Please help me find suitable issues."
39
-
}())),
40
-
},
41
-
{
42
-
Role: "assistant",
43
-
Content: mcp.NewTextContent(fmt.Sprintf("I'll help you investigate issues in %s/%s and identify which ones are suitable for Copilot assignment. Let me search for relevant issues and examine them for clarity, scope, and complexity.", owner, repo)),
44
-
},
45
-
{
46
-
Role: "user",
47
-
Content: mcp.NewTextContent("Perfect! For each issue, please check if it has:\n- Clear problem description\n- Defined acceptance criteria\n- Appropriate scope (not too large/complex)\n- Technical feasibility for autonomous work\n\nThen assign suitable ones to Copilot."),
48
-
},
49
-
{
50
-
Role: "assistant",
51
-
Content: mcp.NewTextContent("Excellent criteria! I'll evaluate each issue against these requirements:\n\n- Clear problem description\n- Defined acceptance criteria\n- Appropriate scope\n- Technical feasibility\n\nLet me start by finding and examining the issues."),
52
-
},
53
-
}
54
-
return&mcp.GetPromptResult{
55
-
Messages: messages,
56
-
}, nil
57
-
}
58
-
}
59
-
60
12
// IssueToFixWorkflowPrompt provides a guided workflow for creating an issue and then generating a PR to fix it
0 commit comments