Skip to content

Commit b842d59

Browse files
committed
Merge branch 'omgitsads/go-sdk' into copilot/migrate-actions-toolset
2 parents d2bdb28 + 17aaf6b commit b842d59

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+3272
-3057
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: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,72 @@
11
{
22
"annotations": {
3-
"title": "Add review comment to the requester's latest pending pull request review",
4-
"readOnlyHint": false
3+
"title": "Add review comment to the requester's latest pending pull request review"
54
},
65
"description": "Add review comment to the requester's latest pending pull request review. A pending review needs to already exist to call this (check with the user if not sure).",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"owner",
10+
"repo",
11+
"pullNumber",
12+
"path",
13+
"body",
14+
"subjectType"
15+
],
816
"properties": {
917
"body": {
10-
"description": "The text of the review comment",
11-
"type": "string"
18+
"type": "string",
19+
"description": "The text of the review comment"
1220
},
1321
"line": {
14-
"description": "The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range",
15-
"type": "number"
22+
"type": "number",
23+
"description": "The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range"
1624
},
1725
"owner": {
18-
"description": "Repository owner",
19-
"type": "string"
26+
"type": "string",
27+
"description": "Repository owner"
2028
},
2129
"path": {
22-
"description": "The relative path to the file that necessitates a comment",
23-
"type": "string"
30+
"type": "string",
31+
"description": "The relative path to the file that necessitates a comment"
2432
},
2533
"pullNumber": {
26-
"description": "Pull request number",
27-
"type": "number"
34+
"type": "number",
35+
"description": "Pull request number"
2836
},
2937
"repo": {
30-
"description": "Repository name",
31-
"type": "string"
38+
"type": "string",
39+
"description": "Repository name"
3240
},
3341
"side": {
42+
"type": "string",
3443
"description": "The side of the diff to comment on. LEFT indicates the previous state, RIGHT indicates the new state",
3544
"enum": [
3645
"LEFT",
3746
"RIGHT"
38-
],
39-
"type": "string"
47+
]
4048
},
4149
"startLine": {
42-
"description": "For multi-line comments, the first line of the range that the comment applies to",
43-
"type": "number"
50+
"type": "number",
51+
"description": "For multi-line comments, the first line of the range that the comment applies to"
4452
},
4553
"startSide": {
54+
"type": "string",
4655
"description": "For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state",
4756
"enum": [
4857
"LEFT",
4958
"RIGHT"
50-
],
51-
"type": "string"
59+
]
5260
},
5361
"subjectType": {
62+
"type": "string",
5463
"description": "The level at which the comment is targeted",
5564
"enum": [
5665
"FILE",
5766
"LINE"
58-
],
59-
"type": "string"
67+
]
6068
}
61-
},
62-
"required": [
63-
"owner",
64-
"repo",
65-
"pullNumber",
66-
"path",
67-
"body",
68-
"subjectType"
69-
],
70-
"type": "object"
69+
}
7170
},
7271
"name": "add_comment_to_pending_review"
7372
}
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: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,51 @@
11
{
22
"annotations": {
3-
"title": "Open new pull request",
4-
"readOnlyHint": false
3+
"title": "Open new pull request"
54
},
65
"description": "Create a new pull request in a GitHub repository.",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"owner",
10+
"repo",
11+
"title",
12+
"head",
13+
"base"
14+
],
815
"properties": {
916
"base": {
10-
"description": "Branch to merge into",
11-
"type": "string"
17+
"type": "string",
18+
"description": "Branch to merge into"
1219
},
1320
"body": {
14-
"description": "PR description",
15-
"type": "string"
21+
"type": "string",
22+
"description": "PR description"
1623
},
1724
"draft": {
18-
"description": "Create as draft PR",
19-
"type": "boolean"
25+
"type": "boolean",
26+
"description": "Create as draft PR"
2027
},
2128
"head": {
22-
"description": "Branch containing changes",
23-
"type": "string"
29+
"type": "string",
30+
"description": "Branch containing changes"
2431
},
2532
"maintainer_can_modify": {
26-
"description": "Allow maintainer edits",
27-
"type": "boolean"
33+
"type": "boolean",
34+
"description": "Allow maintainer edits"
2835
},
2936
"owner": {
30-
"description": "Repository owner",
31-
"type": "string"
37+
"type": "string",
38+
"description": "Repository owner"
3239
},
3340
"repo": {
34-
"description": "Repository name",
35-
"type": "string"
41+
"type": "string",
42+
"description": "Repository name"
3643
},
3744
"title": {
38-
"description": "PR title",
39-
"type": "string"
45+
"type": "string",
46+
"description": "PR title"
4047
}
41-
},
42-
"required": [
43-
"owner",
44-
"repo",
45-
"title",
46-
"head",
47-
"base"
48-
],
49-
"type": "object"
48+
}
5049
},
5150
"name": "create_pull_request"
5251
}
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
22
"annotations": {
3-
"title": "Dismiss notification",
4-
"readOnlyHint": false
3+
"title": "Dismiss notification"
54
},
65
"description": "Dismiss a notification by marking it as read or done",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"threadID",
10+
"state"
11+
],
812
"properties": {
913
"state": {
14+
"type": "string",
1015
"description": "The new state of the notification (read/done)",
1116
"enum": [
1217
"read",
1318
"done"
14-
],
15-
"type": "string"
19+
]
1620
},
1721
"threadID": {
18-
"description": "The ID of the notification thread",
19-
"type": "string"
22+
"type": "string",
23+
"description": "The ID of the notification thread"
2024
}
21-
},
22-
"required": [
23-
"threadID"
24-
],
25-
"type": "object"
25+
}
2626
},
2727
"name": "dismiss_notification"
2828
}
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
}

0 commit comments

Comments
 (0)