Skip to content

Commit f1e5328

Browse files
committed
rm another
1 parent bcccfe0 commit f1e5328

File tree

2 files changed

+0
-49
lines changed

2 files changed

+0
-49
lines changed

pkg/github/tools.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
6565
toolsets.NewServerTool(ReprioritizeSubIssue(getClient, t)),
6666
).AddPrompts(
6767
toolsets.NewServerPrompt(AssignCodingAgentPrompt(t)),
68-
toolsets.NewServerPrompt(IssueInvestigationWorkflowPrompt(t)),
6968
toolsets.NewServerPrompt(IssueToFixWorkflowPrompt(t)),
7069
)
7170
users := toolsets.NewToolset("users", "GitHub User related tools").

pkg/github/workflow_prompts.go

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,6 @@ import (
99
"github.com/mark3labs/mcp-go/server"
1010
)
1111

12-
// IssueInvestigationWorkflowPrompt provides guided workflow for investigating and delegating issues
13-
func IssueInvestigationWorkflowPrompt(t translations.TranslationHelperFunc) (tool mcp.Prompt, handler server.PromptHandlerFunc) {
14-
return mcp.NewPrompt("IssueInvestigationWorkflow",
15-
mcp.WithPromptDescription(t("PROMPT_ISSUE_INVESTIGATION_WORKFLOW_DESCRIPTION", "Investigate issues and delegate appropriate ones to Copilot coding agent")),
16-
mcp.WithArgument("owner", mcp.ArgumentDescription("Repository owner"), mcp.RequiredArgument()),
17-
mcp.WithArgument("repo", mcp.ArgumentDescription("Repository name"), mcp.RequiredArgument()),
18-
mcp.WithArgument("searchQuery", mcp.ArgumentDescription("Search query for issues (optional)")),
19-
), func(_ context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) {
20-
owner := request.Params.Arguments["owner"]
21-
repo := request.Params.Arguments["repo"]
22-
searchQuery := ""
23-
if q, exists := request.Params.Arguments["searchQuery"]; exists {
24-
searchQuery = fmt.Sprintf("%v", q)
25-
}
26-
27-
messages := []mcp.PromptMessage{
28-
{
29-
Role: "system",
30-
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-
if searchQuery != "" {
36-
return fmt.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-
6012
// IssueToFixWorkflowPrompt provides a guided workflow for creating an issue and then generating a PR to fix it
6113
func IssueToFixWorkflowPrompt(t translations.TranslationHelperFunc) (tool mcp.Prompt, handler server.PromptHandlerFunc) {
6214
return mcp.NewPrompt("IssueToFixWorkflow",

0 commit comments

Comments
 (0)