Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit726c683

Browse files
Copilotomgitsads
andauthored
Migrate issues toolset to modelcontextprotocol/go-sdk (#1440)
* Initial plan* Migrate imports and first 3 tools (IssueRead, ListIssueTypes, helper functions)Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>* Migrate AddIssueComment, SubIssueWrite and helper functionsCo-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>* Migrate SearchIssues and search_utils helperCo-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>* Migrate IssueWrite tool with CreateIssue and UpdateIssue helpersCo-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>* Migrate remaining tools: ListIssues, AssignCopilotToIssue, AssignCodingAgentPromptCo-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>* Fix all linter errors in issues.go and search_utils.goCo-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>* Fix test file and update toolsnaps - migration complete!Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>* uncomment issues toolset* Migrate Issue workflow prompt* Remove commented out tool definition* Remove duplicate func---------Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>Co-authored-by: Adam Holt <me@adamholt.co.uk>
1 parent9bf905b commit726c683

14 files changed

+920
-808
lines changed
Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
{
22
"annotations": {
3-
"title":"Add comment to issue",
4-
"readOnlyHint":false
3+
"title":"Add comment to issue"
54
},
65
"description":"Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments.",
76
"inputSchema": {
7+
"type":"object",
8+
"required": [
9+
"owner",
10+
"repo",
11+
"issue_number",
12+
"body"
13+
],
814
"properties": {
915
"body": {
10-
"description":"Comment content",
11-
"type":"string"
16+
"type":"string",
17+
"description":"Comment content"
1218
},
1319
"issue_number": {
14-
"description":"Issuenumber to comment on",
15-
"type":"number"
20+
"type":"number",
21+
"description":"Issuenumber to comment on"
1622
},
1723
"owner": {
18-
"description":"Repository owner",
19-
"type":"string"
24+
"type":"string",
25+
"description":"Repository owner"
2026
},
2127
"repo": {
22-
"description":"Repository name",
23-
"type":"string"
28+
"type":"string",
29+
"description":"Repository name"
2430
}
25-
},
26-
"required": [
27-
"owner",
28-
"repo",
29-
"issue_number",
30-
"body"
31-
],
32-
"type":"object"
31+
}
3332
},
3433
"name":"add_issue_comment"
3534
}
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
{
22
"annotations": {
3-
"title":"Assign Copilot to issue",
4-
"readOnlyHint":false,
5-
"idempotentHint":true
3+
"idempotentHint":true,
4+
"title":"Assign Copilot to issue"
65
},
76
"description":"Assign Copilot to a specific issue in a GitHub repository.\n\nThis tool can help with the following outcomes:\n- a Pull Request created with source code changes to resolve the issue\n\n\nMore information can be found at:\n- https://docs.github.com/en/copilot/using-github-copilot/using-copilot-coding-agent-to-work-on-tasks/about-assigning-tasks-to-copilot\n",
87
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"issueNumber"
13+
],
914
"properties": {
1015
"issueNumber": {
11-
"description":"Issuenumber",
12-
"type":"number"
16+
"type":"number",
17+
"description":"Issuenumber"
1318
},
1419
"owner": {
15-
"description":"Repository owner",
16-
"type":"string"
20+
"type":"string",
21+
"description":"Repository owner"
1722
},
1823
"repo": {
19-
"description":"Repository name",
20-
"type":"string"
24+
"type":"string",
25+
"description":"Repository name"
2126
}
22-
},
23-
"required": [
24-
"owner",
25-
"repo",
26-
"issueNumber"
27-
],
28-
"type":"object"
27+
}
2928
},
3029
"name":"assign_copilot_to_issue"
3130
}
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
{
22
"annotations": {
3-
"title":"Get issue details",
4-
"readOnlyHint":true
3+
"readOnlyHint":true,
4+
"title":"Get issue details"
55
},
66
"description":"Get information about a specific issue in a GitHub repository.",
77
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"method",
11+
"owner",
12+
"repo",
13+
"issue_number"
14+
],
815
"properties": {
916
"issue_number": {
10-
"description":"Thenumber of the issue",
11-
"type":"number"
17+
"type":"number",
18+
"description":"Thenumber of the issue"
1219
},
1320
"method": {
14-
"description":"The read operation to perform on a single issue.\nOptions are:\n1. get - Get details of a specific issue.\n2. get_comments - Get issue comments.\n3. get_sub_issues - Get sub-issues of the issue.\n4. get_labels - Get labels assigned to the issue.\n",
21+
"type":"string",
22+
"description":"The read operation to perform on a single issue.\nOptions are:\n1. get - Get details of a specific issue.\n2. get_comments - Get issue comments.\n3. get_sub_issues - Get sub-issues of the issue.\n4. get_labels - Get labels assigned to the issue.\n",
1523
"enum": [
1624
"get",
1725
"get_comments",
1826
"get_sub_issues",
1927
"get_labels"
20-
],
21-
"type":"string"
28+
]
2229
},
2330
"owner": {
24-
"description":"The owner of the repository",
25-
"type":"string"
31+
"type":"string",
32+
"description":"The owner of the repository"
2633
},
2734
"page": {
35+
"type":"number",
2836
"description":"Page number for pagination (min 1)",
29-
"minimum":1,
30-
"type":"number"
37+
"minimum":1
3138
},
3239
"perPage": {
40+
"type":"number",
3341
"description":"Results per page for pagination (min 1, max 100)",
34-
"maximum":100,
3542
"minimum":1,
36-
"type":"number"
43+
"maximum":100
3744
},
3845
"repo": {
39-
"description":"The name of the repository",
40-
"type":"string"
46+
"type":"string",
47+
"description":"The name of the repository"
4148
}
42-
},
43-
"required": [
44-
"method",
45-
"owner",
46-
"repo",
47-
"issue_number"
48-
],
49-
"type":"object"
49+
}
5050
},
5151
"name":"issue_read"
5252
}
Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,88 @@
11
{
22
"annotations": {
3-
"title":"Create or update issue.",
4-
"readOnlyHint":false
3+
"title":"Create or update issue."
54
},
65
"description":"Create a new or update an existing issue in a GitHub repository.",
76
"inputSchema": {
7+
"type":"object",
8+
"required": [
9+
"method",
10+
"owner",
11+
"repo"
12+
],
813
"properties": {
914
"assignees": {
15+
"type":"array",
1016
"description":"Usernames to assign to this issue",
1117
"items": {
1218
"type":"string"
13-
},
14-
"type":"array"
19+
}
1520
},
1621
"body": {
17-
"description":"Issue body content",
18-
"type":"string"
22+
"type":"string",
23+
"description":"Issue body content"
1924
},
2025
"duplicate_of": {
21-
"description":"Issuenumber that this issue is a duplicate of. Only used when state_reason is 'duplicate'.",
22-
"type":"number"
26+
"type":"number",
27+
"description":"Issuenumber that this issue is a duplicate of. Only used when state_reason is 'duplicate'."
2328
},
2429
"issue_number": {
25-
"description":"Issuenumber to update",
26-
"type":"number"
30+
"type":"number",
31+
"description":"Issuenumber to update"
2732
},
2833
"labels": {
34+
"type":"array",
2935
"description":"Labels to apply to this issue",
3036
"items": {
3137
"type":"string"
32-
},
33-
"type":"array"
38+
}
3439
},
3540
"method": {
36-
"description":"Write operation to perform on a single issue.\nOptions are:\n- 'create' - creates a new issue.\n- 'update' - updates an existing issue.\n",
41+
"type":"string",
42+
"description":"Write operation to perform on a single issue.\nOptions are:\n- 'create' - creates a new issue.\n- 'update' - updates an existing issue.\n",
3743
"enum": [
3844
"create",
3945
"update"
40-
],
41-
"type":"string"
46+
]
4247
},
4348
"milestone": {
44-
"description":"Milestonenumber",
45-
"type":"number"
49+
"type":"number",
50+
"description":"Milestonenumber"
4651
},
4752
"owner": {
48-
"description":"Repository owner",
49-
"type":"string"
53+
"type":"string",
54+
"description":"Repository owner"
5055
},
5156
"repo": {
52-
"description":"Repository name",
53-
"type":"string"
57+
"type":"string",
58+
"description":"Repository name"
5459
},
5560
"state": {
61+
"type":"string",
5662
"description":"New state",
5763
"enum": [
5864
"open",
5965
"closed"
60-
],
61-
"type":"string"
66+
]
6267
},
6368
"state_reason": {
69+
"type":"string",
6470
"description":"Reason for the state change. Ignored unless state is changed.",
6571
"enum": [
6672
"completed",
6773
"not_planned",
6874
"duplicate"
69-
],
70-
"type":"string"
75+
]
7176
},
7277
"title": {
73-
"description":"Issue title",
74-
"type":"string"
78+
"type":"string",
79+
"description":"Issue title"
7580
},
7681
"type": {
77-
"description":"Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter.",
78-
"type":"string"
82+
"type":"string",
83+
"description":"Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter."
7984
}
80-
},
81-
"required": [
82-
"method",
83-
"owner",
84-
"repo"
85-
],
86-
"type":"object"
85+
}
8786
},
8887
"name":"issue_write"
8988
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"annotations": {
3-
"title":"List available issue types",
4-
"readOnlyHint":true
3+
"readOnlyHint":true,
4+
"title":"List available issue types"
55
},
66
"description":"List supported issue types for repository owner (organization).",
77
"inputSchema": {
8-
"properties": {
9-
"owner": {
10-
"description":"The organization owner of the repository",
11-
"type":"string"
12-
}
13-
},
8+
"type":"object",
149
"required": [
1510
"owner"
1611
],
17-
"type":"object"
12+
"properties": {
13+
"owner": {
14+
"type":"string",
15+
"description":"The organization owner of the repository"
16+
}
17+
}
1818
},
1919
"name":"list_issue_types"
2020
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp