Skip to content

Commit 0139078

Browse files
committed
Merge branch 'omgitsads/go-sdk' into lulu/migrate-search
2 parents ad8a41d + 7fbf80d commit 0139078

Some content is hidden

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

44 files changed

+3180
-2010
lines changed
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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"annotations": {
3+
"title": "Cancel workflow run"
4+
},
5+
"description": "Cancel a workflow run",
6+
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"owner",
10+
"repo",
11+
"run_id"
12+
],
13+
"properties": {
14+
"owner": {
15+
"type": "string",
16+
"description": "Repository owner"
17+
},
18+
"repo": {
19+
"type": "string",
20+
"description": "Repository name"
21+
},
22+
"run_id": {
23+
"type": "number",
24+
"description": "The unique identifier of the workflow run"
25+
}
26+
}
27+
},
28+
"name": "cancel_workflow_run"
29+
}
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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"annotations": {
3+
"destructiveHint": true,
4+
"title": "Delete workflow logs"
5+
},
6+
"description": "Delete logs for a workflow run",
7+
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"run_id"
13+
],
14+
"properties": {
15+
"owner": {
16+
"type": "string",
17+
"description": "Repository owner"
18+
},
19+
"repo": {
20+
"type": "string",
21+
"description": "Repository name"
22+
},
23+
"run_id": {
24+
"type": "number",
25+
"description": "The unique identifier of the workflow run"
26+
}
27+
}
28+
},
29+
"name": "delete_workflow_run_logs"
30+
}
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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint": true,
4+
"title": "Download workflow artifact"
5+
},
6+
"description": "Get download URL for a workflow run artifact",
7+
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"artifact_id"
13+
],
14+
"properties": {
15+
"artifact_id": {
16+
"type": "number",
17+
"description": "The unique identifier of the artifact"
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": "download_workflow_run_artifact"
30+
}
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+
}

0 commit comments

Comments
 (0)