github-rest-mcp 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +55 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +133 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/actions.d.ts +25 -0
- package/dist/tools/actions.d.ts.map +1 -0
- package/dist/tools/actions.js +2202 -0
- package/dist/tools/actions.js.map +1 -0
- package/dist/tools/activity.d.ts +8 -0
- package/dist/tools/activity.d.ts.map +1 -0
- package/dist/tools/activity.js +385 -0
- package/dist/tools/activity.js.map +1 -0
- package/dist/tools/agent-tasks.d.ts +38 -0
- package/dist/tools/agent-tasks.d.ts.map +1 -0
- package/dist/tools/agent-tasks.js +78 -0
- package/dist/tools/agent-tasks.js.map +1 -0
- package/dist/tools/apps.d.ts +8 -0
- package/dist/tools/apps.d.ts.map +1 -0
- package/dist/tools/apps.js +402 -0
- package/dist/tools/apps.js.map +1 -0
- package/dist/tools/billing.d.ts +46 -0
- package/dist/tools/billing.d.ts.map +1 -0
- package/dist/tools/billing.js +145 -0
- package/dist/tools/billing.js.map +1 -0
- package/dist/tools/campaigns.d.ts +39 -0
- package/dist/tools/campaigns.d.ts.map +1 -0
- package/dist/tools/campaigns.js +69 -0
- package/dist/tools/campaigns.js.map +1 -0
- package/dist/tools/checks.d.ts +43 -0
- package/dist/tools/checks.d.ts.map +1 -0
- package/dist/tools/checks.js +171 -0
- package/dist/tools/checks.js.map +1 -0
- package/dist/tools/classroom.d.ts +25 -0
- package/dist/tools/classroom.d.ts.map +1 -0
- package/dist/tools/classroom.js +74 -0
- package/dist/tools/classroom.js.map +1 -0
- package/dist/tools/code-scanning.d.ts +35 -0
- package/dist/tools/code-scanning.d.ts.map +1 -0
- package/dist/tools/code-scanning.js +297 -0
- package/dist/tools/code-scanning.js.map +1 -0
- package/dist/tools/code-security.d.ts +25 -0
- package/dist/tools/code-security.d.ts.map +1 -0
- package/dist/tools/code-security.js +245 -0
- package/dist/tools/code-security.js.map +1 -0
- package/dist/tools/codes-of-conduct.d.ts +8 -0
- package/dist/tools/codes-of-conduct.d.ts.map +1 -0
- package/dist/tools/codes-of-conduct.js +27 -0
- package/dist/tools/codes-of-conduct.js.map +1 -0
- package/dist/tools/codespaces.d.ts +8 -0
- package/dist/tools/codespaces.d.ts.map +1 -0
- package/dist/tools/codespaces.js +555 -0
- package/dist/tools/codespaces.js.map +1 -0
- package/dist/tools/copilot.d.ts +17 -0
- package/dist/tools/copilot.d.ts.map +1 -0
- package/dist/tools/copilot.js +284 -0
- package/dist/tools/copilot.js.map +1 -0
- package/dist/tools/credentials.d.ts +10 -0
- package/dist/tools/credentials.d.ts.map +1 -0
- package/dist/tools/credentials.js +19 -0
- package/dist/tools/credentials.js.map +1 -0
- package/dist/tools/dependabot.d.ts +49 -0
- package/dist/tools/dependabot.d.ts.map +1 -0
- package/dist/tools/dependabot.js +311 -0
- package/dist/tools/dependabot.js.map +1 -0
- package/dist/tools/dependency-graph.d.ts +11 -0
- package/dist/tools/dependency-graph.d.ts.map +1 -0
- package/dist/tools/dependency-graph.js +45 -0
- package/dist/tools/dependency-graph.js.map +1 -0
- package/dist/tools/emojis.d.ts +8 -0
- package/dist/tools/emojis.d.ts.map +1 -0
- package/dist/tools/emojis.js +17 -0
- package/dist/tools/emojis.js.map +1 -0
- package/dist/tools/enterprise-team-memberships.d.ts +31 -0
- package/dist/tools/enterprise-team-memberships.d.ts.map +1 -0
- package/dist/tools/enterprise-team-memberships.js +82 -0
- package/dist/tools/enterprise-team-memberships.js.map +1 -0
- package/dist/tools/enterprise-team-organizations.d.ts +31 -0
- package/dist/tools/enterprise-team-organizations.d.ts.map +1 -0
- package/dist/tools/enterprise-team-organizations.js +82 -0
- package/dist/tools/enterprise-team-organizations.js.map +1 -0
- package/dist/tools/enterprise-teams.d.ts +28 -0
- package/dist/tools/enterprise-teams.d.ts.map +1 -0
- package/dist/tools/enterprise-teams.js +66 -0
- package/dist/tools/enterprise-teams.js.map +1 -0
- package/dist/tools/gists.d.ts +26 -0
- package/dist/tools/gists.d.ts.map +1 -0
- package/dist/tools/gists.js +231 -0
- package/dist/tools/gists.js.map +1 -0
- package/dist/tools/git.d.ts +58 -0
- package/dist/tools/git.d.ts.map +1 -0
- package/dist/tools/git.js +167 -0
- package/dist/tools/git.js.map +1 -0
- package/dist/tools/gitignore.d.ts +8 -0
- package/dist/tools/gitignore.d.ts.map +1 -0
- package/dist/tools/gitignore.js +27 -0
- package/dist/tools/gitignore.js.map +1 -0
- package/dist/tools/hosted-compute.d.ts +36 -0
- package/dist/tools/hosted-compute.d.ts.map +1 -0
- package/dist/tools/hosted-compute.js +77 -0
- package/dist/tools/hosted-compute.js.map +1 -0
- package/dist/tools/index.d.ts +45 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +93 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/interactions.d.ts +8 -0
- package/dist/tools/interactions.d.ts.map +1 -0
- package/dist/tools/interactions.js +100 -0
- package/dist/tools/interactions.js.map +1 -0
- package/dist/tools/issues.d.ts +126 -0
- package/dist/tools/issues.d.ts.map +1 -0
- package/dist/tools/issues.js +746 -0
- package/dist/tools/issues.js.map +1 -0
- package/dist/tools/licenses.d.ts +28 -0
- package/dist/tools/licenses.d.ts.map +1 -0
- package/dist/tools/licenses.js +43 -0
- package/dist/tools/licenses.js.map +1 -0
- package/dist/tools/markdown.d.ts +10 -0
- package/dist/tools/markdown.d.ts.map +1 -0
- package/dist/tools/markdown.js +29 -0
- package/dist/tools/markdown.js.map +1 -0
- package/dist/tools/meta.d.ts +8 -0
- package/dist/tools/meta.d.ts.map +1 -0
- package/dist/tools/meta.js +51 -0
- package/dist/tools/meta.js.map +1 -0
- package/dist/tools/migrations.d.ts +33 -0
- package/dist/tools/migrations.d.ts.map +1 -0
- package/dist/tools/migrations.js +261 -0
- package/dist/tools/migrations.js.map +1 -0
- package/dist/tools/oidc.d.ts +17 -0
- package/dist/tools/oidc.d.ts.map +1 -0
- package/dist/tools/oidc.js +94 -0
- package/dist/tools/oidc.js.map +1 -0
- package/dist/tools/orgs.d.ts +26 -0
- package/dist/tools/orgs.d.ts.map +1 -0
- package/dist/tools/orgs.js +1304 -0
- package/dist/tools/orgs.js.map +1 -0
- package/dist/tools/packages.d.ts +8 -0
- package/dist/tools/packages.d.ts.map +1 -0
- package/dist/tools/packages.js +341 -0
- package/dist/tools/packages.js.map +1 -0
- package/dist/tools/private-registries.d.ts +10 -0
- package/dist/tools/private-registries.d.ts.map +1 -0
- package/dist/tools/private-registries.js +76 -0
- package/dist/tools/private-registries.js.map +1 -0
- package/dist/tools/projects.d.ts +50 -0
- package/dist/tools/projects.d.ts.map +1 -0
- package/dist/tools/projects.js +347 -0
- package/dist/tools/projects.js.map +1 -0
- package/dist/tools/pulls.d.ts +77 -0
- package/dist/tools/pulls.d.ts.map +1 -0
- package/dist/tools/pulls.js +374 -0
- package/dist/tools/pulls.js.map +1 -0
- package/dist/tools/rate-limit.d.ts +8 -0
- package/dist/tools/rate-limit.d.ts.map +1 -0
- package/dist/tools/rate-limit.js +17 -0
- package/dist/tools/rate-limit.js.map +1 -0
- package/dist/tools/reactions.d.ts +124 -0
- package/dist/tools/reactions.d.ts.map +1 -0
- package/dist/tools/reactions.js +214 -0
- package/dist/tools/reactions.js.map +1 -0
- package/dist/tools/repos.d.ts +56 -0
- package/dist/tools/repos.d.ts.map +1 -0
- package/dist/tools/repos.js +2514 -0
- package/dist/tools/repos.js.map +1 -0
- package/dist/tools/search.d.ts +12 -0
- package/dist/tools/search.d.ts.map +1 -0
- package/dist/tools/search.js +108 -0
- package/dist/tools/search.js.map +1 -0
- package/dist/tools/secret-scanning.d.ts +18 -0
- package/dist/tools/secret-scanning.d.ts.map +1 -0
- package/dist/tools/secret-scanning.js +148 -0
- package/dist/tools/secret-scanning.js.map +1 -0
- package/dist/tools/security-advisories.d.ts +112 -0
- package/dist/tools/security-advisories.d.ts.map +1 -0
- package/dist/tools/security-advisories.js +152 -0
- package/dist/tools/security-advisories.js.map +1 -0
- package/dist/tools/teams.d.ts +34 -0
- package/dist/tools/teams.d.ts.map +1 -0
- package/dist/tools/teams.js +392 -0
- package/dist/tools/teams.js.map +1 -0
- package/dist/tools/users.d.ts +8 -0
- package/dist/tools/users.d.ts.map +1 -0
- package/dist/tools/users.js +510 -0
- package/dist/tools/users.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,746 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.issuesTools = void 0;
|
|
4
|
+
// AUTO-GENERATED by scripts/generate.ts — DO NOT EDIT
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const client_js_1 = require("../client.js");
|
|
7
|
+
exports.issuesTools = [
|
|
8
|
+
{
|
|
9
|
+
name: "github_issues_list",
|
|
10
|
+
description: "List issues assigned to the authenticated user",
|
|
11
|
+
inputSchema: zod_1.z.object({
|
|
12
|
+
filter: zod_1.z.enum(["assigned", "created", "mentioned", "subscribed", "repos", "all"]).optional().describe("Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation."),
|
|
13
|
+
state: zod_1.z.enum(["open", "closed", "all"]).optional().describe("Indicates the state of the issues to return."),
|
|
14
|
+
labels: zod_1.z.string().optional().describe("A list of comma separated label names. Example: `bug,ui,@high`"),
|
|
15
|
+
sort: zod_1.z.enum(["created", "updated", "comments"]).optional().describe("What to sort results by."),
|
|
16
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
17
|
+
since: zod_1.z.string().optional().describe("Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
18
|
+
collab: zod_1.z.boolean().optional().describe("collab"),
|
|
19
|
+
orgs: zod_1.z.boolean().optional().describe("orgs"),
|
|
20
|
+
owned: zod_1.z.boolean().optional().describe("owned"),
|
|
21
|
+
pulls: zod_1.z.boolean().optional().describe("pulls"),
|
|
22
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
23
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
24
|
+
}),
|
|
25
|
+
handler: async (args) => {
|
|
26
|
+
return (0, client_js_1.githubRequest)("GET", `/issues`, undefined, { filter: args.filter, state: args.state, labels: args.labels, sort: args.sort, direction: args.direction, since: args.since, collab: args.collab, orgs: args.orgs, owned: args.owned, pulls: args.pulls, per_page: args.per_page, page: args.page });
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "github_issues_list_for_org",
|
|
31
|
+
description: "List organization issues assigned to the authenticated user",
|
|
32
|
+
inputSchema: zod_1.z.object({
|
|
33
|
+
org: zod_1.z.string().describe("org"),
|
|
34
|
+
filter: zod_1.z.enum(["assigned", "created", "mentioned", "subscribed", "repos", "all"]).optional().describe("Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation."),
|
|
35
|
+
state: zod_1.z.enum(["open", "closed", "all"]).optional().describe("Indicates the state of the issues to return."),
|
|
36
|
+
labels: zod_1.z.string().optional().describe("A list of comma separated label names. Example: `bug,ui,@high`"),
|
|
37
|
+
type: zod_1.z.string().optional().describe("Can be the name of an issue type."),
|
|
38
|
+
sort: zod_1.z.enum(["created", "updated", "comments"]).optional().describe("What to sort results by."),
|
|
39
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
40
|
+
since: zod_1.z.string().optional().describe("Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
41
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
42
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
43
|
+
}),
|
|
44
|
+
handler: async (args) => {
|
|
45
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/issues`, undefined, { filter: args.filter, state: args.state, labels: args.labels, type: args.type, sort: args.sort, direction: args.direction, since: args.since, per_page: args.per_page, page: args.page });
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "github_issues_list_assignees",
|
|
50
|
+
description: "List assignees",
|
|
51
|
+
inputSchema: zod_1.z.object({
|
|
52
|
+
owner: zod_1.z.string().describe("owner"),
|
|
53
|
+
repo: zod_1.z.string().describe("repo"),
|
|
54
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
55
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
56
|
+
}),
|
|
57
|
+
handler: async (args) => {
|
|
58
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/assignees`, undefined, { per_page: args.per_page, page: args.page });
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "github_issues_check_user_can_be_assigned",
|
|
63
|
+
description: "Check if a user can be assigned",
|
|
64
|
+
inputSchema: zod_1.z.object({
|
|
65
|
+
owner: zod_1.z.string().describe("owner"),
|
|
66
|
+
repo: zod_1.z.string().describe("repo"),
|
|
67
|
+
assignee: zod_1.z.string().describe("assignee")
|
|
68
|
+
}),
|
|
69
|
+
handler: async (args) => {
|
|
70
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/assignees/${args.assignee}`, undefined, undefined);
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "github_issues_list_for_repo",
|
|
75
|
+
description: "List repository issues",
|
|
76
|
+
inputSchema: zod_1.z.object({
|
|
77
|
+
owner: zod_1.z.string().describe("owner"),
|
|
78
|
+
repo: zod_1.z.string().describe("repo"),
|
|
79
|
+
milestone: zod_1.z.string().optional().describe("If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned."),
|
|
80
|
+
state: zod_1.z.enum(["open", "closed", "all"]).optional().describe("Indicates the state of the issues to return."),
|
|
81
|
+
assignee: zod_1.z.string().optional().describe("Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user."),
|
|
82
|
+
type: zod_1.z.string().optional().describe("Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned."),
|
|
83
|
+
creator: zod_1.z.string().optional().describe("The user that created the issue."),
|
|
84
|
+
mentioned: zod_1.z.string().optional().describe("A user that's mentioned in the issue."),
|
|
85
|
+
labels: zod_1.z.string().optional().describe("A list of comma separated label names. Example: `bug,ui,@high`"),
|
|
86
|
+
sort: zod_1.z.enum(["created", "updated", "comments"]).optional().describe("What to sort results by."),
|
|
87
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
88
|
+
since: zod_1.z.string().optional().describe("Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
89
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
90
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
91
|
+
}),
|
|
92
|
+
handler: async (args) => {
|
|
93
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues`, undefined, { milestone: args.milestone, state: args.state, assignee: args.assignee, type: args.type, creator: args.creator, mentioned: args.mentioned, labels: args.labels, sort: args.sort, direction: args.direction, since: args.since, per_page: args.per_page, page: args.page });
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "github_issues_create",
|
|
98
|
+
description: "Create an issue",
|
|
99
|
+
inputSchema: zod_1.z.object({
|
|
100
|
+
owner: zod_1.z.string().describe("owner"),
|
|
101
|
+
repo: zod_1.z.string().describe("repo"),
|
|
102
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
103
|
+
}),
|
|
104
|
+
handler: async (args) => {
|
|
105
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/issues`, args.body, undefined);
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "github_issues_list_comments_for_repo",
|
|
110
|
+
description: "List issue comments for a repository",
|
|
111
|
+
inputSchema: zod_1.z.object({
|
|
112
|
+
owner: zod_1.z.string().describe("owner"),
|
|
113
|
+
repo: zod_1.z.string().describe("repo"),
|
|
114
|
+
sort: zod_1.z.enum(["created", "updated"]).optional().describe("The property to sort the results by."),
|
|
115
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("Either `asc` or `desc`. Ignored without the `sort` parameter."),
|
|
116
|
+
since: zod_1.z.string().optional().describe("Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
117
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
118
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
119
|
+
}),
|
|
120
|
+
handler: async (args) => {
|
|
121
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/comments`, undefined, { sort: args.sort, direction: args.direction, since: args.since, per_page: args.per_page, page: args.page });
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "github_issues_get_comment",
|
|
126
|
+
description: "Get an issue comment",
|
|
127
|
+
inputSchema: zod_1.z.object({
|
|
128
|
+
owner: zod_1.z.string().describe("owner"),
|
|
129
|
+
repo: zod_1.z.string().describe("repo"),
|
|
130
|
+
comment_id: zod_1.z.string().describe("comment_id")
|
|
131
|
+
}),
|
|
132
|
+
handler: async (args) => {
|
|
133
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/comments/${args.comment_id}`, undefined, undefined);
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "github_issues_update_comment",
|
|
138
|
+
description: "Update an issue comment",
|
|
139
|
+
inputSchema: zod_1.z.object({
|
|
140
|
+
owner: zod_1.z.string().describe("owner"),
|
|
141
|
+
repo: zod_1.z.string().describe("repo"),
|
|
142
|
+
comment_id: zod_1.z.string().describe("comment_id"),
|
|
143
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
144
|
+
}),
|
|
145
|
+
handler: async (args) => {
|
|
146
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/issues/comments/${args.comment_id}`, args.body, undefined);
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: "github_issues_delete_comment",
|
|
151
|
+
description: "Delete an issue comment",
|
|
152
|
+
inputSchema: zod_1.z.object({
|
|
153
|
+
owner: zod_1.z.string().describe("owner"),
|
|
154
|
+
repo: zod_1.z.string().describe("repo"),
|
|
155
|
+
comment_id: zod_1.z.string().describe("comment_id")
|
|
156
|
+
}),
|
|
157
|
+
handler: async (args) => {
|
|
158
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/issues/comments/${args.comment_id}`, undefined, undefined);
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: "github_issues_pin_comment",
|
|
163
|
+
description: "Pin an issue comment",
|
|
164
|
+
inputSchema: zod_1.z.object({
|
|
165
|
+
owner: zod_1.z.string().describe("owner"),
|
|
166
|
+
repo: zod_1.z.string().describe("repo"),
|
|
167
|
+
comment_id: zod_1.z.string().describe("comment_id")
|
|
168
|
+
}),
|
|
169
|
+
handler: async (args) => {
|
|
170
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/issues/comments/${args.comment_id}/pin`, undefined, undefined);
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: "github_issues_unpin_comment",
|
|
175
|
+
description: "Unpin an issue comment",
|
|
176
|
+
inputSchema: zod_1.z.object({
|
|
177
|
+
owner: zod_1.z.string().describe("owner"),
|
|
178
|
+
repo: zod_1.z.string().describe("repo"),
|
|
179
|
+
comment_id: zod_1.z.string().describe("comment_id")
|
|
180
|
+
}),
|
|
181
|
+
handler: async (args) => {
|
|
182
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/issues/comments/${args.comment_id}/pin`, undefined, undefined);
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "github_issues_list_events_for_repo",
|
|
187
|
+
description: "List issue events for a repository",
|
|
188
|
+
inputSchema: zod_1.z.object({
|
|
189
|
+
owner: zod_1.z.string().describe("owner"),
|
|
190
|
+
repo: zod_1.z.string().describe("repo"),
|
|
191
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
192
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
193
|
+
}),
|
|
194
|
+
handler: async (args) => {
|
|
195
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/events`, undefined, { per_page: args.per_page, page: args.page });
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: "github_issues_get_event",
|
|
200
|
+
description: "Get an issue event",
|
|
201
|
+
inputSchema: zod_1.z.object({
|
|
202
|
+
owner: zod_1.z.string().describe("owner"),
|
|
203
|
+
repo: zod_1.z.string().describe("repo"),
|
|
204
|
+
event_id: zod_1.z.string().describe("event_id")
|
|
205
|
+
}),
|
|
206
|
+
handler: async (args) => {
|
|
207
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/events/${args.event_id}`, undefined, undefined);
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: "github_issues_get",
|
|
212
|
+
description: "Get an issue",
|
|
213
|
+
inputSchema: zod_1.z.object({
|
|
214
|
+
owner: zod_1.z.string().describe("owner"),
|
|
215
|
+
repo: zod_1.z.string().describe("repo"),
|
|
216
|
+
issue_number: zod_1.z.string().describe("issue_number")
|
|
217
|
+
}),
|
|
218
|
+
handler: async (args) => {
|
|
219
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}`, undefined, undefined);
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: "github_issues_update",
|
|
224
|
+
description: "Update an issue",
|
|
225
|
+
inputSchema: zod_1.z.object({
|
|
226
|
+
owner: zod_1.z.string().describe("owner"),
|
|
227
|
+
repo: zod_1.z.string().describe("repo"),
|
|
228
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
229
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
230
|
+
}),
|
|
231
|
+
handler: async (args) => {
|
|
232
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}`, args.body, undefined);
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: "github_issues_add_assignees",
|
|
237
|
+
description: "Add assignees to an issue",
|
|
238
|
+
inputSchema: zod_1.z.object({
|
|
239
|
+
owner: zod_1.z.string().describe("owner"),
|
|
240
|
+
repo: zod_1.z.string().describe("repo"),
|
|
241
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
242
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
243
|
+
}),
|
|
244
|
+
handler: async (args) => {
|
|
245
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/assignees`, args.body, undefined);
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: "github_issues_remove_assignees",
|
|
250
|
+
description: "Remove assignees from an issue",
|
|
251
|
+
inputSchema: zod_1.z.object({
|
|
252
|
+
owner: zod_1.z.string().describe("owner"),
|
|
253
|
+
repo: zod_1.z.string().describe("repo"),
|
|
254
|
+
issue_number: zod_1.z.string().describe("issue_number")
|
|
255
|
+
}),
|
|
256
|
+
handler: async (args) => {
|
|
257
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/assignees`, undefined, undefined);
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "github_issues_check_user_can_be_assigned_to_issue",
|
|
262
|
+
description: "Check if a user can be assigned to a issue",
|
|
263
|
+
inputSchema: zod_1.z.object({
|
|
264
|
+
owner: zod_1.z.string().describe("owner"),
|
|
265
|
+
repo: zod_1.z.string().describe("repo"),
|
|
266
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
267
|
+
assignee: zod_1.z.string().describe("assignee")
|
|
268
|
+
}),
|
|
269
|
+
handler: async (args) => {
|
|
270
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/assignees/${args.assignee}`, undefined, undefined);
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: "github_issues_list_comments",
|
|
275
|
+
description: "List issue comments",
|
|
276
|
+
inputSchema: zod_1.z.object({
|
|
277
|
+
owner: zod_1.z.string().describe("owner"),
|
|
278
|
+
repo: zod_1.z.string().describe("repo"),
|
|
279
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
280
|
+
since: zod_1.z.string().optional().describe("Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
281
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
282
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
283
|
+
}),
|
|
284
|
+
handler: async (args) => {
|
|
285
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/comments`, undefined, { since: args.since, per_page: args.per_page, page: args.page });
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: "github_issues_create_comment",
|
|
290
|
+
description: "Create an issue comment",
|
|
291
|
+
inputSchema: zod_1.z.object({
|
|
292
|
+
owner: zod_1.z.string().describe("owner"),
|
|
293
|
+
repo: zod_1.z.string().describe("repo"),
|
|
294
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
295
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
296
|
+
}),
|
|
297
|
+
handler: async (args) => {
|
|
298
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/comments`, args.body, undefined);
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: "github_issues_list_dependencies_blocked_by",
|
|
303
|
+
description: "List dependencies an issue is blocked by",
|
|
304
|
+
inputSchema: zod_1.z.object({
|
|
305
|
+
owner: zod_1.z.string().describe("owner"),
|
|
306
|
+
repo: zod_1.z.string().describe("repo"),
|
|
307
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
308
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
309
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
310
|
+
}),
|
|
311
|
+
handler: async (args) => {
|
|
312
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/dependencies/blocked_by`, undefined, { per_page: args.per_page, page: args.page });
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "github_issues_add_blocked_by_dependency",
|
|
317
|
+
description: "Add a dependency an issue is blocked by",
|
|
318
|
+
inputSchema: zod_1.z.object({
|
|
319
|
+
owner: zod_1.z.string().describe("owner"),
|
|
320
|
+
repo: zod_1.z.string().describe("repo"),
|
|
321
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
322
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
323
|
+
}),
|
|
324
|
+
handler: async (args) => {
|
|
325
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/dependencies/blocked_by`, args.body, undefined);
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
name: "github_issues_remove_dependency_blocked_by",
|
|
330
|
+
description: "Remove dependency an issue is blocked by",
|
|
331
|
+
inputSchema: zod_1.z.object({
|
|
332
|
+
owner: zod_1.z.string().describe("owner"),
|
|
333
|
+
repo: zod_1.z.string().describe("repo"),
|
|
334
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
335
|
+
issue_id: zod_1.z.string().describe("issue_id")
|
|
336
|
+
}),
|
|
337
|
+
handler: async (args) => {
|
|
338
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/dependencies/blocked_by/${args.issue_id}`, undefined, undefined);
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
name: "github_issues_list_dependencies_blocking",
|
|
343
|
+
description: "List dependencies an issue is blocking",
|
|
344
|
+
inputSchema: zod_1.z.object({
|
|
345
|
+
owner: zod_1.z.string().describe("owner"),
|
|
346
|
+
repo: zod_1.z.string().describe("repo"),
|
|
347
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
348
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
349
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
350
|
+
}),
|
|
351
|
+
handler: async (args) => {
|
|
352
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/dependencies/blocking`, undefined, { per_page: args.per_page, page: args.page });
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: "github_issues_list_events",
|
|
357
|
+
description: "List issue events",
|
|
358
|
+
inputSchema: zod_1.z.object({
|
|
359
|
+
owner: zod_1.z.string().describe("owner"),
|
|
360
|
+
repo: zod_1.z.string().describe("repo"),
|
|
361
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
362
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
363
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
364
|
+
}),
|
|
365
|
+
handler: async (args) => {
|
|
366
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/events`, undefined, { per_page: args.per_page, page: args.page });
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
name: "github_issues_list_issue_field_values_for_issue",
|
|
371
|
+
description: "List issue field values for an issue",
|
|
372
|
+
inputSchema: zod_1.z.object({
|
|
373
|
+
owner: zod_1.z.string().describe("owner"),
|
|
374
|
+
repo: zod_1.z.string().describe("repo"),
|
|
375
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
376
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
377
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
378
|
+
}),
|
|
379
|
+
handler: async (args) => {
|
|
380
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/issue-field-values`, undefined, { per_page: args.per_page, page: args.page });
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
name: "github_issues_list_labels_on_issue",
|
|
385
|
+
description: "List labels for an issue",
|
|
386
|
+
inputSchema: zod_1.z.object({
|
|
387
|
+
owner: zod_1.z.string().describe("owner"),
|
|
388
|
+
repo: zod_1.z.string().describe("repo"),
|
|
389
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
390
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
391
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
392
|
+
}),
|
|
393
|
+
handler: async (args) => {
|
|
394
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/labels`, undefined, { per_page: args.per_page, page: args.page });
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: "github_issues_add_labels",
|
|
399
|
+
description: "Add labels to an issue",
|
|
400
|
+
inputSchema: zod_1.z.object({
|
|
401
|
+
owner: zod_1.z.string().describe("owner"),
|
|
402
|
+
repo: zod_1.z.string().describe("repo"),
|
|
403
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
404
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
405
|
+
}),
|
|
406
|
+
handler: async (args) => {
|
|
407
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/labels`, args.body, undefined);
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
name: "github_issues_set_labels",
|
|
412
|
+
description: "Set labels for an issue",
|
|
413
|
+
inputSchema: zod_1.z.object({
|
|
414
|
+
owner: zod_1.z.string().describe("owner"),
|
|
415
|
+
repo: zod_1.z.string().describe("repo"),
|
|
416
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
417
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
418
|
+
}),
|
|
419
|
+
handler: async (args) => {
|
|
420
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/labels`, args.body, undefined);
|
|
421
|
+
},
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
name: "github_issues_remove_all_labels",
|
|
425
|
+
description: "Remove all labels from an issue",
|
|
426
|
+
inputSchema: zod_1.z.object({
|
|
427
|
+
owner: zod_1.z.string().describe("owner"),
|
|
428
|
+
repo: zod_1.z.string().describe("repo"),
|
|
429
|
+
issue_number: zod_1.z.string().describe("issue_number")
|
|
430
|
+
}),
|
|
431
|
+
handler: async (args) => {
|
|
432
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/labels`, undefined, undefined);
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
name: "github_issues_remove_label",
|
|
437
|
+
description: "Remove a label from an issue",
|
|
438
|
+
inputSchema: zod_1.z.object({
|
|
439
|
+
owner: zod_1.z.string().describe("owner"),
|
|
440
|
+
repo: zod_1.z.string().describe("repo"),
|
|
441
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
442
|
+
name: zod_1.z.string().describe("name")
|
|
443
|
+
}),
|
|
444
|
+
handler: async (args) => {
|
|
445
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/labels/${args.name}`, undefined, undefined);
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
name: "github_issues_lock",
|
|
450
|
+
description: "Lock an issue",
|
|
451
|
+
inputSchema: zod_1.z.object({
|
|
452
|
+
owner: zod_1.z.string().describe("owner"),
|
|
453
|
+
repo: zod_1.z.string().describe("repo"),
|
|
454
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
455
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
456
|
+
}),
|
|
457
|
+
handler: async (args) => {
|
|
458
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/lock`, args.body, undefined);
|
|
459
|
+
},
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
name: "github_issues_unlock",
|
|
463
|
+
description: "Unlock an issue",
|
|
464
|
+
inputSchema: zod_1.z.object({
|
|
465
|
+
owner: zod_1.z.string().describe("owner"),
|
|
466
|
+
repo: zod_1.z.string().describe("repo"),
|
|
467
|
+
issue_number: zod_1.z.string().describe("issue_number")
|
|
468
|
+
}),
|
|
469
|
+
handler: async (args) => {
|
|
470
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/lock`, undefined, undefined);
|
|
471
|
+
},
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
name: "github_issues_get_parent",
|
|
475
|
+
description: "Get parent issue",
|
|
476
|
+
inputSchema: zod_1.z.object({
|
|
477
|
+
owner: zod_1.z.string().describe("owner"),
|
|
478
|
+
repo: zod_1.z.string().describe("repo"),
|
|
479
|
+
issue_number: zod_1.z.string().describe("issue_number")
|
|
480
|
+
}),
|
|
481
|
+
handler: async (args) => {
|
|
482
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/parent`, undefined, undefined);
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
name: "github_issues_remove_sub_issue",
|
|
487
|
+
description: "Remove sub-issue",
|
|
488
|
+
inputSchema: zod_1.z.object({
|
|
489
|
+
owner: zod_1.z.string().describe("owner"),
|
|
490
|
+
repo: zod_1.z.string().describe("repo"),
|
|
491
|
+
issue_number: zod_1.z.string().describe("issue_number")
|
|
492
|
+
}),
|
|
493
|
+
handler: async (args) => {
|
|
494
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/sub_issue`, undefined, undefined);
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
name: "github_issues_list_sub_issues",
|
|
499
|
+
description: "List sub-issues",
|
|
500
|
+
inputSchema: zod_1.z.object({
|
|
501
|
+
owner: zod_1.z.string().describe("owner"),
|
|
502
|
+
repo: zod_1.z.string().describe("repo"),
|
|
503
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
504
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
505
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
506
|
+
}),
|
|
507
|
+
handler: async (args) => {
|
|
508
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/sub_issues`, undefined, { per_page: args.per_page, page: args.page });
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
name: "github_issues_add_sub_issue",
|
|
513
|
+
description: "Add sub-issue",
|
|
514
|
+
inputSchema: zod_1.z.object({
|
|
515
|
+
owner: zod_1.z.string().describe("owner"),
|
|
516
|
+
repo: zod_1.z.string().describe("repo"),
|
|
517
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
518
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
519
|
+
}),
|
|
520
|
+
handler: async (args) => {
|
|
521
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/sub_issues`, args.body, undefined);
|
|
522
|
+
},
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
name: "github_issues_reprioritize_sub_issue",
|
|
526
|
+
description: "Reprioritize sub-issue",
|
|
527
|
+
inputSchema: zod_1.z.object({
|
|
528
|
+
owner: zod_1.z.string().describe("owner"),
|
|
529
|
+
repo: zod_1.z.string().describe("repo"),
|
|
530
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
531
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
532
|
+
}),
|
|
533
|
+
handler: async (args) => {
|
|
534
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/sub_issues/priority`, args.body, undefined);
|
|
535
|
+
},
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
name: "github_issues_list_events_for_timeline",
|
|
539
|
+
description: "List timeline events for an issue",
|
|
540
|
+
inputSchema: zod_1.z.object({
|
|
541
|
+
owner: zod_1.z.string().describe("owner"),
|
|
542
|
+
repo: zod_1.z.string().describe("repo"),
|
|
543
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
544
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
545
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
546
|
+
}),
|
|
547
|
+
handler: async (args) => {
|
|
548
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/issues/${args.issue_number}/timeline`, undefined, { per_page: args.per_page, page: args.page });
|
|
549
|
+
},
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
name: "github_issues_list_labels_for_repo",
|
|
553
|
+
description: "List labels for a repository",
|
|
554
|
+
inputSchema: zod_1.z.object({
|
|
555
|
+
owner: zod_1.z.string().describe("owner"),
|
|
556
|
+
repo: zod_1.z.string().describe("repo"),
|
|
557
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
558
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
559
|
+
}),
|
|
560
|
+
handler: async (args) => {
|
|
561
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/labels`, undefined, { per_page: args.per_page, page: args.page });
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
name: "github_issues_create_label",
|
|
566
|
+
description: "Create a label",
|
|
567
|
+
inputSchema: zod_1.z.object({
|
|
568
|
+
owner: zod_1.z.string().describe("owner"),
|
|
569
|
+
repo: zod_1.z.string().describe("repo"),
|
|
570
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
571
|
+
}),
|
|
572
|
+
handler: async (args) => {
|
|
573
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/labels`, args.body, undefined);
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
name: "github_issues_get_label",
|
|
578
|
+
description: "Get a label",
|
|
579
|
+
inputSchema: zod_1.z.object({
|
|
580
|
+
owner: zod_1.z.string().describe("owner"),
|
|
581
|
+
repo: zod_1.z.string().describe("repo"),
|
|
582
|
+
name: zod_1.z.string().describe("name")
|
|
583
|
+
}),
|
|
584
|
+
handler: async (args) => {
|
|
585
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/labels/${args.name}`, undefined, undefined);
|
|
586
|
+
},
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
name: "github_issues_update_label",
|
|
590
|
+
description: "Update a label",
|
|
591
|
+
inputSchema: zod_1.z.object({
|
|
592
|
+
owner: zod_1.z.string().describe("owner"),
|
|
593
|
+
repo: zod_1.z.string().describe("repo"),
|
|
594
|
+
name: zod_1.z.string().describe("name"),
|
|
595
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
596
|
+
}),
|
|
597
|
+
handler: async (args) => {
|
|
598
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/labels/${args.name}`, args.body, undefined);
|
|
599
|
+
},
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
name: "github_issues_delete_label",
|
|
603
|
+
description: "Delete a label",
|
|
604
|
+
inputSchema: zod_1.z.object({
|
|
605
|
+
owner: zod_1.z.string().describe("owner"),
|
|
606
|
+
repo: zod_1.z.string().describe("repo"),
|
|
607
|
+
name: zod_1.z.string().describe("name")
|
|
608
|
+
}),
|
|
609
|
+
handler: async (args) => {
|
|
610
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/labels/${args.name}`, undefined, undefined);
|
|
611
|
+
},
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
name: "github_issues_list_milestones",
|
|
615
|
+
description: "List milestones",
|
|
616
|
+
inputSchema: zod_1.z.object({
|
|
617
|
+
owner: zod_1.z.string().describe("owner"),
|
|
618
|
+
repo: zod_1.z.string().describe("repo"),
|
|
619
|
+
state: zod_1.z.enum(["open", "closed", "all"]).optional().describe("The state of the milestone. Either `open`, `closed`, or `all`."),
|
|
620
|
+
sort: zod_1.z.enum(["due_on", "completeness"]).optional().describe("What to sort results by. Either `due_on` or `completeness`."),
|
|
621
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction of the sort. Either `asc` or `desc`."),
|
|
622
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
623
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
624
|
+
}),
|
|
625
|
+
handler: async (args) => {
|
|
626
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/milestones`, undefined, { state: args.state, sort: args.sort, direction: args.direction, per_page: args.per_page, page: args.page });
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
name: "github_issues_create_milestone",
|
|
631
|
+
description: "Create a milestone",
|
|
632
|
+
inputSchema: zod_1.z.object({
|
|
633
|
+
owner: zod_1.z.string().describe("owner"),
|
|
634
|
+
repo: zod_1.z.string().describe("repo"),
|
|
635
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
636
|
+
}),
|
|
637
|
+
handler: async (args) => {
|
|
638
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/milestones`, args.body, undefined);
|
|
639
|
+
},
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
name: "github_issues_get_milestone",
|
|
643
|
+
description: "Get a milestone",
|
|
644
|
+
inputSchema: zod_1.z.object({
|
|
645
|
+
owner: zod_1.z.string().describe("owner"),
|
|
646
|
+
repo: zod_1.z.string().describe("repo"),
|
|
647
|
+
milestone_number: zod_1.z.string().describe("milestone_number")
|
|
648
|
+
}),
|
|
649
|
+
handler: async (args) => {
|
|
650
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/milestones/${args.milestone_number}`, undefined, undefined);
|
|
651
|
+
},
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
name: "github_issues_update_milestone",
|
|
655
|
+
description: "Update a milestone",
|
|
656
|
+
inputSchema: zod_1.z.object({
|
|
657
|
+
owner: zod_1.z.string().describe("owner"),
|
|
658
|
+
repo: zod_1.z.string().describe("repo"),
|
|
659
|
+
milestone_number: zod_1.z.string().describe("milestone_number"),
|
|
660
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
661
|
+
}),
|
|
662
|
+
handler: async (args) => {
|
|
663
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/milestones/${args.milestone_number}`, args.body, undefined);
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: "github_issues_delete_milestone",
|
|
668
|
+
description: "Delete a milestone",
|
|
669
|
+
inputSchema: zod_1.z.object({
|
|
670
|
+
owner: zod_1.z.string().describe("owner"),
|
|
671
|
+
repo: zod_1.z.string().describe("repo"),
|
|
672
|
+
milestone_number: zod_1.z.string().describe("milestone_number")
|
|
673
|
+
}),
|
|
674
|
+
handler: async (args) => {
|
|
675
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/milestones/${args.milestone_number}`, undefined, undefined);
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
name: "github_issues_list_labels_for_milestone",
|
|
680
|
+
description: "List labels for issues in a milestone",
|
|
681
|
+
inputSchema: zod_1.z.object({
|
|
682
|
+
owner: zod_1.z.string().describe("owner"),
|
|
683
|
+
repo: zod_1.z.string().describe("repo"),
|
|
684
|
+
milestone_number: zod_1.z.string().describe("milestone_number"),
|
|
685
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
686
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
687
|
+
}),
|
|
688
|
+
handler: async (args) => {
|
|
689
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/milestones/${args.milestone_number}/labels`, undefined, { per_page: args.per_page, page: args.page });
|
|
690
|
+
},
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
name: "github_issues_add_issue_field_values",
|
|
694
|
+
description: "Add issue field values to an issue",
|
|
695
|
+
inputSchema: zod_1.z.object({
|
|
696
|
+
repository_id: zod_1.z.string().describe("repository_id"),
|
|
697
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
698
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
699
|
+
}),
|
|
700
|
+
handler: async (args) => {
|
|
701
|
+
return (0, client_js_1.githubRequest)("POST", `/repositories/${args.repository_id}/issues/${args.issue_number}/issue-field-values`, args.body, undefined);
|
|
702
|
+
},
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
name: "github_issues_set_issue_field_values",
|
|
706
|
+
description: "Set issue field values for an issue",
|
|
707
|
+
inputSchema: zod_1.z.object({
|
|
708
|
+
repository_id: zod_1.z.string().describe("repository_id"),
|
|
709
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
710
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
711
|
+
}),
|
|
712
|
+
handler: async (args) => {
|
|
713
|
+
return (0, client_js_1.githubRequest)("PUT", `/repositories/${args.repository_id}/issues/${args.issue_number}/issue-field-values`, args.body, undefined);
|
|
714
|
+
},
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
name: "github_issues_delete_issue_field_value",
|
|
718
|
+
description: "Delete an issue field value from an issue",
|
|
719
|
+
inputSchema: zod_1.z.object({
|
|
720
|
+
repository_id: zod_1.z.string().describe("repository_id"),
|
|
721
|
+
issue_number: zod_1.z.string().describe("issue_number"),
|
|
722
|
+
issue_field_id: zod_1.z.string().describe("issue_field_id")
|
|
723
|
+
}),
|
|
724
|
+
handler: async (args) => {
|
|
725
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repositories/${args.repository_id}/issues/${args.issue_number}/issue-field-values/${args.issue_field_id}`, undefined, undefined);
|
|
726
|
+
},
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
name: "github_issues_list_for_authenticated_user",
|
|
730
|
+
description: "List user account issues assigned to the authenticated user",
|
|
731
|
+
inputSchema: zod_1.z.object({
|
|
732
|
+
filter: zod_1.z.enum(["assigned", "created", "mentioned", "subscribed", "repos", "all"]).optional().describe("Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation."),
|
|
733
|
+
state: zod_1.z.enum(["open", "closed", "all"]).optional().describe("Indicates the state of the issues to return."),
|
|
734
|
+
labels: zod_1.z.string().optional().describe("A list of comma separated label names. Example: `bug,ui,@high`"),
|
|
735
|
+
sort: zod_1.z.enum(["created", "updated", "comments"]).optional().describe("What to sort results by."),
|
|
736
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
737
|
+
since: zod_1.z.string().optional().describe("Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
738
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
739
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
740
|
+
}),
|
|
741
|
+
handler: async (args) => {
|
|
742
|
+
return (0, client_js_1.githubRequest)("GET", `/user/issues`, undefined, { filter: args.filter, state: args.state, labels: args.labels, sort: args.sort, direction: args.direction, since: args.since, per_page: args.per_page, page: args.page });
|
|
743
|
+
},
|
|
744
|
+
},
|
|
745
|
+
];
|
|
746
|
+
//# sourceMappingURL=issues.js.map
|