Skip to content

Commit 2a297e9

Browse files
committed
Merge remote-tracking branch 'origin/omgitsads/go-sdk' into copilot/migrate-repos-toolset-to-go-sdk
2 parents 32e0afa + 4042338 commit 2a297e9

39 files changed

+1804
-1792
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ require (
5353
github.com/spf13/cast v1.10.0 // indirect
5454
github.com/spf13/pflag v1.0.10
5555
github.com/subosito/gotenv v1.6.0 // indirect
56-
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
56+
github.com/yosida95/uritemplate/v3 v3.0.2
5757
golang.org/x/oauth2 v0.30.0 // indirect
5858
golang.org/x/sys v0.31.0 // indirect
5959
golang.org/x/text v0.28.0 // indirect
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": "Issue number to comment on",
15-
"type": "number"
20+
"type": "number",
21+
"description": "Issue number 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": "Issue number",
12-
"type": "number"
16+
"type": "number",
17+
"description": "Issue number"
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: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
22
"annotations": {
3-
"title": "Get dependabot alert",
4-
"readOnlyHint": true
3+
"readOnlyHint": true,
4+
"title": "Get dependabot alert"
55
},
66
"description": "Get details of a specific dependabot alert in a GitHub repository.",
77
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"alertNumber"
13+
],
814
"properties": {
915
"alertNumber": {
10-
"description": "The number of the alert.",
11-
"type": "number"
16+
"type": "number",
17+
"description": "The number of the alert."
1218
},
1319
"owner": {
14-
"description": "The owner of the repository.",
15-
"type": "string"
20+
"type": "string",
21+
"description": "The owner of the repository."
1622
},
1723
"repo": {
18-
"description": "The name of the repository.",
19-
"type": "string"
24+
"type": "string",
25+
"description": "The name of the repository."
2026
}
21-
},
22-
"required": [
23-
"owner",
24-
"repo",
25-
"alertNumber"
26-
],
27-
"type": "object"
27+
}
2828
},
2929
"name": "get_dependabot_alert"
3030
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint": true,
4+
"title": "Get discussion"
5+
},
6+
"description": "Get a specific discussion by ID",
7+
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"discussionNumber"
13+
],
14+
"properties": {
15+
"discussionNumber": {
16+
"type": "number",
17+
"description": "Discussion Number"
18+
},
19+
"owner": {
20+
"type": "string",
21+
"description": "Repository owner"
22+
},
23+
"repo": {
24+
"type": "string",
25+
"description": "Repository name"
26+
}
27+
}
28+
},
29+
"name": "get_discussion"
30+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint": true,
4+
"title": "Get discussion comments"
5+
},
6+
"description": "Get comments from a discussion",
7+
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"discussionNumber"
13+
],
14+
"properties": {
15+
"after": {
16+
"type": "string",
17+
"description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs."
18+
},
19+
"discussionNumber": {
20+
"type": "number",
21+
"description": "Discussion Number"
22+
},
23+
"owner": {
24+
"type": "string",
25+
"description": "Repository owner"
26+
},
27+
"perPage": {
28+
"type": "number",
29+
"description": "Results per page for pagination (min 1, max 100)",
30+
"minimum": 1,
31+
"maximum": 100
32+
},
33+
"repo": {
34+
"type": "string",
35+
"description": "Repository name"
36+
}
37+
}
38+
},
39+
"name": "get_discussion_comments"
40+
}
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": "The number of the issue",
11-
"type": "number"
17+
"type": "number",
18+
"description": "The number 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
}

0 commit comments

Comments
 (0)