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,2514 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reposTools = 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.reposTools = [
|
|
8
|
+
{
|
|
9
|
+
name: "github_repos_list_for_org",
|
|
10
|
+
description: "List organization repositories",
|
|
11
|
+
inputSchema: zod_1.z.object({
|
|
12
|
+
org: zod_1.z.string().describe("org"),
|
|
13
|
+
type: zod_1.z.enum(["all", "public", "private", "forks", "sources", "member"]).optional().describe("Specifies the types of repositories you want returned."),
|
|
14
|
+
sort: zod_1.z.enum(["created", "updated", "pushed", "full_name"]).optional().describe("The property to sort the results by."),
|
|
15
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`."),
|
|
16
|
+
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).\""),
|
|
17
|
+
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).\"")
|
|
18
|
+
}),
|
|
19
|
+
handler: async (args) => {
|
|
20
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/repos`, undefined, { type: args.type, sort: args.sort, direction: args.direction, per_page: args.per_page, page: args.page });
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "github_repos_create_in_org",
|
|
25
|
+
description: "Create an organization repository",
|
|
26
|
+
inputSchema: zod_1.z.object({
|
|
27
|
+
org: zod_1.z.string().describe("org"),
|
|
28
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
29
|
+
}),
|
|
30
|
+
handler: async (args) => {
|
|
31
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/repos`, args.body, undefined);
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "github_repos_get_org_rulesets",
|
|
36
|
+
description: "Get all organization repository rulesets",
|
|
37
|
+
inputSchema: zod_1.z.object({
|
|
38
|
+
org: zod_1.z.string().describe("org"),
|
|
39
|
+
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).\""),
|
|
40
|
+
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).\""),
|
|
41
|
+
targets: zod_1.z.string().optional().describe("A comma-separated list of rule targets to filter by. If provided, only rulesets that apply to the specified targets will be returned. For example, `branch,tag,push`.")
|
|
42
|
+
}),
|
|
43
|
+
handler: async (args) => {
|
|
44
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/rulesets`, undefined, { per_page: args.per_page, page: args.page, targets: args.targets });
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "github_repos_create_org_ruleset",
|
|
49
|
+
description: "Create an organization repository ruleset",
|
|
50
|
+
inputSchema: zod_1.z.object({
|
|
51
|
+
org: zod_1.z.string().describe("org"),
|
|
52
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
53
|
+
}),
|
|
54
|
+
handler: async (args) => {
|
|
55
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/rulesets`, args.body, undefined);
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "github_repos_get_org_rule_suites",
|
|
60
|
+
description: "List organization rule suites",
|
|
61
|
+
inputSchema: zod_1.z.object({
|
|
62
|
+
org: zod_1.z.string().describe("org"),
|
|
63
|
+
ref: zod_1.z.string().optional().describe("The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned."),
|
|
64
|
+
repository_name: zod_1.z.string().optional().describe("The name of the repository to filter on."),
|
|
65
|
+
time_period: zod_1.z.enum(["hour", "day", "week", "month"]).optional().describe("The time period to filter by. For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for rule suites that occurred in the past 7 days (168 hours)."),
|
|
66
|
+
actor_name: zod_1.z.string().optional().describe("The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned."),
|
|
67
|
+
rule_suite_result: zod_1.z.enum(["pass", "fail", "bypass", "all"]).optional().describe("The rule suite results to filter on. When specified, only suites with this result will be returned."),
|
|
68
|
+
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).\""),
|
|
69
|
+
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).\"")
|
|
70
|
+
}),
|
|
71
|
+
handler: async (args) => {
|
|
72
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/rulesets/rule-suites`, undefined, { ref: args.ref, repository_name: args.repository_name, time_period: args.time_period, actor_name: args.actor_name, rule_suite_result: args.rule_suite_result, per_page: args.per_page, page: args.page });
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "github_repos_get_org_rule_suite",
|
|
77
|
+
description: "Get an organization rule suite",
|
|
78
|
+
inputSchema: zod_1.z.object({
|
|
79
|
+
org: zod_1.z.string().describe("org"),
|
|
80
|
+
rule_suite_id: zod_1.z.string().describe("rule_suite_id")
|
|
81
|
+
}),
|
|
82
|
+
handler: async (args) => {
|
|
83
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/rulesets/rule-suites/${args.rule_suite_id}`, undefined, undefined);
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "github_repos_get_org_ruleset",
|
|
88
|
+
description: "Get an organization repository ruleset",
|
|
89
|
+
inputSchema: zod_1.z.object({
|
|
90
|
+
org: zod_1.z.string().describe("org"),
|
|
91
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id")
|
|
92
|
+
}),
|
|
93
|
+
handler: async (args) => {
|
|
94
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/rulesets/${args.ruleset_id}`, undefined, undefined);
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "github_repos_update_org_ruleset",
|
|
99
|
+
description: "Update an organization repository ruleset",
|
|
100
|
+
inputSchema: zod_1.z.object({
|
|
101
|
+
org: zod_1.z.string().describe("org"),
|
|
102
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id"),
|
|
103
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
104
|
+
}),
|
|
105
|
+
handler: async (args) => {
|
|
106
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/rulesets/${args.ruleset_id}`, args.body, undefined);
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "github_repos_delete_org_ruleset",
|
|
111
|
+
description: "Delete an organization repository ruleset",
|
|
112
|
+
inputSchema: zod_1.z.object({
|
|
113
|
+
org: zod_1.z.string().describe("org"),
|
|
114
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id")
|
|
115
|
+
}),
|
|
116
|
+
handler: async (args) => {
|
|
117
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/rulesets/${args.ruleset_id}`, undefined, undefined);
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "github_repos_get",
|
|
122
|
+
description: "Get a repository",
|
|
123
|
+
inputSchema: zod_1.z.object({
|
|
124
|
+
owner: zod_1.z.string().describe("owner"),
|
|
125
|
+
repo: zod_1.z.string().describe("repo")
|
|
126
|
+
}),
|
|
127
|
+
handler: async (args) => {
|
|
128
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}`, undefined, undefined);
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "github_repos_update",
|
|
133
|
+
description: "Update a repository",
|
|
134
|
+
inputSchema: zod_1.z.object({
|
|
135
|
+
owner: zod_1.z.string().describe("owner"),
|
|
136
|
+
repo: zod_1.z.string().describe("repo"),
|
|
137
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
138
|
+
}),
|
|
139
|
+
handler: async (args) => {
|
|
140
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}`, args.body, undefined);
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "github_repos_delete",
|
|
145
|
+
description: "Delete a repository",
|
|
146
|
+
inputSchema: zod_1.z.object({
|
|
147
|
+
owner: zod_1.z.string().describe("owner"),
|
|
148
|
+
repo: zod_1.z.string().describe("repo")
|
|
149
|
+
}),
|
|
150
|
+
handler: async (args) => {
|
|
151
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}`, undefined, undefined);
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: "github_repos_list_activities",
|
|
156
|
+
description: "List repository activities",
|
|
157
|
+
inputSchema: zod_1.z.object({
|
|
158
|
+
owner: zod_1.z.string().describe("owner"),
|
|
159
|
+
repo: zod_1.z.string().describe("repo"),
|
|
160
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
161
|
+
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).\""),
|
|
162
|
+
before: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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).\""),
|
|
163
|
+
after: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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).\""),
|
|
164
|
+
ref: zod_1.z.string().optional().describe("The Git reference for the activities you want to list. The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch."),
|
|
165
|
+
actor: zod_1.z.string().optional().describe("The GitHub username to use to filter by the actor who performed the activity."),
|
|
166
|
+
time_period: zod_1.z.enum(["day", "week", "month", "quarter", "year"]).optional().describe("The time period to filter by. For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours)."),
|
|
167
|
+
activity_type: zod_1.z.enum(["push", "force_push", "branch_creation", "branch_deletion", "pr_merge", "merge_queue_merge"]).optional().describe("The activity type to filter by. For example, you can choose to filter by \"force_push\", to see all force pushes to the repository.")
|
|
168
|
+
}),
|
|
169
|
+
handler: async (args) => {
|
|
170
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/activity`, undefined, { direction: args.direction, per_page: args.per_page, before: args.before, after: args.after, ref: args.ref, actor: args.actor, time_period: args.time_period, activity_type: args.activity_type });
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: "github_repos_create_attestation",
|
|
175
|
+
description: "Create an attestation",
|
|
176
|
+
inputSchema: zod_1.z.object({
|
|
177
|
+
owner: zod_1.z.string().describe("owner"),
|
|
178
|
+
repo: zod_1.z.string().describe("repo"),
|
|
179
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
180
|
+
}),
|
|
181
|
+
handler: async (args) => {
|
|
182
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/attestations`, args.body, undefined);
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "github_repos_list_attestations",
|
|
187
|
+
description: "List attestations",
|
|
188
|
+
inputSchema: zod_1.z.object({
|
|
189
|
+
owner: zod_1.z.string().describe("owner"),
|
|
190
|
+
repo: zod_1.z.string().describe("repo"),
|
|
191
|
+
subject_digest: zod_1.z.string().describe("subject_digest"),
|
|
192
|
+
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).\""),
|
|
193
|
+
before: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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).\""),
|
|
194
|
+
after: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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).\""),
|
|
195
|
+
predicate_type: zod_1.z.string().optional().describe("Optional filter for fetching attestations with a given predicate type. This option accepts `provenance`, `sbom`, `release`, or freeform text for custom predicate types.")
|
|
196
|
+
}),
|
|
197
|
+
handler: async (args) => {
|
|
198
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/attestations/${args.subject_digest}`, undefined, { per_page: args.per_page, before: args.before, after: args.after, predicate_type: args.predicate_type });
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: "github_repos_list_autolinks",
|
|
203
|
+
description: "Get all autolinks of a repository",
|
|
204
|
+
inputSchema: zod_1.z.object({
|
|
205
|
+
owner: zod_1.z.string().describe("owner"),
|
|
206
|
+
repo: zod_1.z.string().describe("repo")
|
|
207
|
+
}),
|
|
208
|
+
handler: async (args) => {
|
|
209
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/autolinks`, undefined, undefined);
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "github_repos_create_autolink",
|
|
214
|
+
description: "Create an autolink reference for a repository",
|
|
215
|
+
inputSchema: zod_1.z.object({
|
|
216
|
+
owner: zod_1.z.string().describe("owner"),
|
|
217
|
+
repo: zod_1.z.string().describe("repo"),
|
|
218
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
219
|
+
}),
|
|
220
|
+
handler: async (args) => {
|
|
221
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/autolinks`, args.body, undefined);
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "github_repos_get_autolink",
|
|
226
|
+
description: "Get an autolink reference of a repository",
|
|
227
|
+
inputSchema: zod_1.z.object({
|
|
228
|
+
owner: zod_1.z.string().describe("owner"),
|
|
229
|
+
repo: zod_1.z.string().describe("repo"),
|
|
230
|
+
autolink_id: zod_1.z.string().describe("autolink_id")
|
|
231
|
+
}),
|
|
232
|
+
handler: async (args) => {
|
|
233
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/autolinks/${args.autolink_id}`, undefined, undefined);
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: "github_repos_delete_autolink",
|
|
238
|
+
description: "Delete an autolink reference from a repository",
|
|
239
|
+
inputSchema: zod_1.z.object({
|
|
240
|
+
owner: zod_1.z.string().describe("owner"),
|
|
241
|
+
repo: zod_1.z.string().describe("repo"),
|
|
242
|
+
autolink_id: zod_1.z.string().describe("autolink_id")
|
|
243
|
+
}),
|
|
244
|
+
handler: async (args) => {
|
|
245
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/autolinks/${args.autolink_id}`, undefined, undefined);
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: "github_repos_check_automated_security_fixes",
|
|
250
|
+
description: "Check if Dependabot security updates are enabled for a repository",
|
|
251
|
+
inputSchema: zod_1.z.object({
|
|
252
|
+
owner: zod_1.z.string().describe("owner"),
|
|
253
|
+
repo: zod_1.z.string().describe("repo")
|
|
254
|
+
}),
|
|
255
|
+
handler: async (args) => {
|
|
256
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/automated-security-fixes`, undefined, undefined);
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: "github_repos_enable_automated_security_fixes",
|
|
261
|
+
description: "Enable Dependabot security updates",
|
|
262
|
+
inputSchema: zod_1.z.object({
|
|
263
|
+
owner: zod_1.z.string().describe("owner"),
|
|
264
|
+
repo: zod_1.z.string().describe("repo")
|
|
265
|
+
}),
|
|
266
|
+
handler: async (args) => {
|
|
267
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/automated-security-fixes`, undefined, undefined);
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: "github_repos_disable_automated_security_fixes",
|
|
272
|
+
description: "Disable Dependabot security updates",
|
|
273
|
+
inputSchema: zod_1.z.object({
|
|
274
|
+
owner: zod_1.z.string().describe("owner"),
|
|
275
|
+
repo: zod_1.z.string().describe("repo")
|
|
276
|
+
}),
|
|
277
|
+
handler: async (args) => {
|
|
278
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/automated-security-fixes`, undefined, undefined);
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: "github_repos_list_branches",
|
|
283
|
+
description: "List branches",
|
|
284
|
+
inputSchema: zod_1.z.object({
|
|
285
|
+
owner: zod_1.z.string().describe("owner"),
|
|
286
|
+
repo: zod_1.z.string().describe("repo"),
|
|
287
|
+
protected: zod_1.z.boolean().optional().describe("Setting to `true` returns only branches protected by branch protections or rulesets. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches."),
|
|
288
|
+
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).\""),
|
|
289
|
+
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).\"")
|
|
290
|
+
}),
|
|
291
|
+
handler: async (args) => {
|
|
292
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches`, undefined, { protected: args.protected, per_page: args.per_page, page: args.page });
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "github_repos_get_branch",
|
|
297
|
+
description: "Get a branch",
|
|
298
|
+
inputSchema: zod_1.z.object({
|
|
299
|
+
owner: zod_1.z.string().describe("owner"),
|
|
300
|
+
repo: zod_1.z.string().describe("repo"),
|
|
301
|
+
branch: zod_1.z.string().describe("branch")
|
|
302
|
+
}),
|
|
303
|
+
handler: async (args) => {
|
|
304
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}`, undefined, undefined);
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "github_repos_get_branch_protection",
|
|
309
|
+
description: "Get branch protection",
|
|
310
|
+
inputSchema: zod_1.z.object({
|
|
311
|
+
owner: zod_1.z.string().describe("owner"),
|
|
312
|
+
repo: zod_1.z.string().describe("repo"),
|
|
313
|
+
branch: zod_1.z.string().describe("branch")
|
|
314
|
+
}),
|
|
315
|
+
handler: async (args) => {
|
|
316
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection`, undefined, undefined);
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: "github_repos_update_branch_protection",
|
|
321
|
+
description: "Update branch protection",
|
|
322
|
+
inputSchema: zod_1.z.object({
|
|
323
|
+
owner: zod_1.z.string().describe("owner"),
|
|
324
|
+
repo: zod_1.z.string().describe("repo"),
|
|
325
|
+
branch: zod_1.z.string().describe("branch"),
|
|
326
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
327
|
+
}),
|
|
328
|
+
handler: async (args) => {
|
|
329
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection`, args.body, undefined);
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
name: "github_repos_delete_branch_protection",
|
|
334
|
+
description: "Delete branch protection",
|
|
335
|
+
inputSchema: zod_1.z.object({
|
|
336
|
+
owner: zod_1.z.string().describe("owner"),
|
|
337
|
+
repo: zod_1.z.string().describe("repo"),
|
|
338
|
+
branch: zod_1.z.string().describe("branch")
|
|
339
|
+
}),
|
|
340
|
+
handler: async (args) => {
|
|
341
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection`, undefined, undefined);
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
name: "github_repos_get_admin_branch_protection",
|
|
346
|
+
description: "Get admin branch protection",
|
|
347
|
+
inputSchema: zod_1.z.object({
|
|
348
|
+
owner: zod_1.z.string().describe("owner"),
|
|
349
|
+
repo: zod_1.z.string().describe("repo"),
|
|
350
|
+
branch: zod_1.z.string().describe("branch")
|
|
351
|
+
}),
|
|
352
|
+
handler: async (args) => {
|
|
353
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/enforce_admins`, undefined, undefined);
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
name: "github_repos_set_admin_branch_protection",
|
|
358
|
+
description: "Set admin branch protection",
|
|
359
|
+
inputSchema: zod_1.z.object({
|
|
360
|
+
owner: zod_1.z.string().describe("owner"),
|
|
361
|
+
repo: zod_1.z.string().describe("repo"),
|
|
362
|
+
branch: zod_1.z.string().describe("branch")
|
|
363
|
+
}),
|
|
364
|
+
handler: async (args) => {
|
|
365
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/enforce_admins`, undefined, undefined);
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "github_repos_delete_admin_branch_protection",
|
|
370
|
+
description: "Delete admin branch protection",
|
|
371
|
+
inputSchema: zod_1.z.object({
|
|
372
|
+
owner: zod_1.z.string().describe("owner"),
|
|
373
|
+
repo: zod_1.z.string().describe("repo"),
|
|
374
|
+
branch: zod_1.z.string().describe("branch")
|
|
375
|
+
}),
|
|
376
|
+
handler: async (args) => {
|
|
377
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/enforce_admins`, undefined, undefined);
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: "github_repos_get_pull_request_review_protection",
|
|
382
|
+
description: "Get pull request review protection",
|
|
383
|
+
inputSchema: zod_1.z.object({
|
|
384
|
+
owner: zod_1.z.string().describe("owner"),
|
|
385
|
+
repo: zod_1.z.string().describe("repo"),
|
|
386
|
+
branch: zod_1.z.string().describe("branch")
|
|
387
|
+
}),
|
|
388
|
+
handler: async (args) => {
|
|
389
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_pull_request_reviews`, undefined, undefined);
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: "github_repos_update_pull_request_review_protection",
|
|
394
|
+
description: "Update pull request review protection",
|
|
395
|
+
inputSchema: zod_1.z.object({
|
|
396
|
+
owner: zod_1.z.string().describe("owner"),
|
|
397
|
+
repo: zod_1.z.string().describe("repo"),
|
|
398
|
+
branch: zod_1.z.string().describe("branch"),
|
|
399
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
400
|
+
}),
|
|
401
|
+
handler: async (args) => {
|
|
402
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_pull_request_reviews`, args.body, undefined);
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
name: "github_repos_delete_pull_request_review_protection",
|
|
407
|
+
description: "Delete pull request review protection",
|
|
408
|
+
inputSchema: zod_1.z.object({
|
|
409
|
+
owner: zod_1.z.string().describe("owner"),
|
|
410
|
+
repo: zod_1.z.string().describe("repo"),
|
|
411
|
+
branch: zod_1.z.string().describe("branch")
|
|
412
|
+
}),
|
|
413
|
+
handler: async (args) => {
|
|
414
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_pull_request_reviews`, undefined, undefined);
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: "github_repos_get_commit_signature_protection",
|
|
419
|
+
description: "Get commit signature protection",
|
|
420
|
+
inputSchema: zod_1.z.object({
|
|
421
|
+
owner: zod_1.z.string().describe("owner"),
|
|
422
|
+
repo: zod_1.z.string().describe("repo"),
|
|
423
|
+
branch: zod_1.z.string().describe("branch")
|
|
424
|
+
}),
|
|
425
|
+
handler: async (args) => {
|
|
426
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_signatures`, undefined, undefined);
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
name: "github_repos_create_commit_signature_protection",
|
|
431
|
+
description: "Create commit signature protection",
|
|
432
|
+
inputSchema: zod_1.z.object({
|
|
433
|
+
owner: zod_1.z.string().describe("owner"),
|
|
434
|
+
repo: zod_1.z.string().describe("repo"),
|
|
435
|
+
branch: zod_1.z.string().describe("branch")
|
|
436
|
+
}),
|
|
437
|
+
handler: async (args) => {
|
|
438
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_signatures`, undefined, undefined);
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
name: "github_repos_delete_commit_signature_protection",
|
|
443
|
+
description: "Delete commit signature protection",
|
|
444
|
+
inputSchema: zod_1.z.object({
|
|
445
|
+
owner: zod_1.z.string().describe("owner"),
|
|
446
|
+
repo: zod_1.z.string().describe("repo"),
|
|
447
|
+
branch: zod_1.z.string().describe("branch")
|
|
448
|
+
}),
|
|
449
|
+
handler: async (args) => {
|
|
450
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_signatures`, undefined, undefined);
|
|
451
|
+
},
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
name: "github_repos_get_status_checks_protection",
|
|
455
|
+
description: "Get status checks protection",
|
|
456
|
+
inputSchema: zod_1.z.object({
|
|
457
|
+
owner: zod_1.z.string().describe("owner"),
|
|
458
|
+
repo: zod_1.z.string().describe("repo"),
|
|
459
|
+
branch: zod_1.z.string().describe("branch")
|
|
460
|
+
}),
|
|
461
|
+
handler: async (args) => {
|
|
462
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_status_checks`, undefined, undefined);
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
name: "github_repos_update_status_check_protection",
|
|
467
|
+
description: "Update status check protection",
|
|
468
|
+
inputSchema: zod_1.z.object({
|
|
469
|
+
owner: zod_1.z.string().describe("owner"),
|
|
470
|
+
repo: zod_1.z.string().describe("repo"),
|
|
471
|
+
branch: zod_1.z.string().describe("branch"),
|
|
472
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
473
|
+
}),
|
|
474
|
+
handler: async (args) => {
|
|
475
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_status_checks`, args.body, undefined);
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
name: "github_repos_remove_status_check_protection",
|
|
480
|
+
description: "Remove status check protection",
|
|
481
|
+
inputSchema: zod_1.z.object({
|
|
482
|
+
owner: zod_1.z.string().describe("owner"),
|
|
483
|
+
repo: zod_1.z.string().describe("repo"),
|
|
484
|
+
branch: zod_1.z.string().describe("branch")
|
|
485
|
+
}),
|
|
486
|
+
handler: async (args) => {
|
|
487
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_status_checks`, undefined, undefined);
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
name: "github_repos_get_all_status_check_contexts",
|
|
492
|
+
description: "Get all status check contexts",
|
|
493
|
+
inputSchema: zod_1.z.object({
|
|
494
|
+
owner: zod_1.z.string().describe("owner"),
|
|
495
|
+
repo: zod_1.z.string().describe("repo"),
|
|
496
|
+
branch: zod_1.z.string().describe("branch")
|
|
497
|
+
}),
|
|
498
|
+
handler: async (args) => {
|
|
499
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_status_checks/contexts`, undefined, undefined);
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
name: "github_repos_add_status_check_contexts",
|
|
504
|
+
description: "Add status check contexts",
|
|
505
|
+
inputSchema: zod_1.z.object({
|
|
506
|
+
owner: zod_1.z.string().describe("owner"),
|
|
507
|
+
repo: zod_1.z.string().describe("repo"),
|
|
508
|
+
branch: zod_1.z.string().describe("branch"),
|
|
509
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
510
|
+
}),
|
|
511
|
+
handler: async (args) => {
|
|
512
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_status_checks/contexts`, args.body, undefined);
|
|
513
|
+
},
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
name: "github_repos_set_status_check_contexts",
|
|
517
|
+
description: "Set status check contexts",
|
|
518
|
+
inputSchema: zod_1.z.object({
|
|
519
|
+
owner: zod_1.z.string().describe("owner"),
|
|
520
|
+
repo: zod_1.z.string().describe("repo"),
|
|
521
|
+
branch: zod_1.z.string().describe("branch"),
|
|
522
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
523
|
+
}),
|
|
524
|
+
handler: async (args) => {
|
|
525
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_status_checks/contexts`, args.body, undefined);
|
|
526
|
+
},
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
name: "github_repos_remove_status_check_contexts",
|
|
530
|
+
description: "Remove status check contexts",
|
|
531
|
+
inputSchema: zod_1.z.object({
|
|
532
|
+
owner: zod_1.z.string().describe("owner"),
|
|
533
|
+
repo: zod_1.z.string().describe("repo"),
|
|
534
|
+
branch: zod_1.z.string().describe("branch")
|
|
535
|
+
}),
|
|
536
|
+
handler: async (args) => {
|
|
537
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/required_status_checks/contexts`, undefined, undefined);
|
|
538
|
+
},
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
name: "github_repos_get_access_restrictions",
|
|
542
|
+
description: "Get access restrictions",
|
|
543
|
+
inputSchema: zod_1.z.object({
|
|
544
|
+
owner: zod_1.z.string().describe("owner"),
|
|
545
|
+
repo: zod_1.z.string().describe("repo"),
|
|
546
|
+
branch: zod_1.z.string().describe("branch")
|
|
547
|
+
}),
|
|
548
|
+
handler: async (args) => {
|
|
549
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions`, undefined, undefined);
|
|
550
|
+
},
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
name: "github_repos_delete_access_restrictions",
|
|
554
|
+
description: "Delete access restrictions",
|
|
555
|
+
inputSchema: zod_1.z.object({
|
|
556
|
+
owner: zod_1.z.string().describe("owner"),
|
|
557
|
+
repo: zod_1.z.string().describe("repo"),
|
|
558
|
+
branch: zod_1.z.string().describe("branch")
|
|
559
|
+
}),
|
|
560
|
+
handler: async (args) => {
|
|
561
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions`, undefined, undefined);
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
name: "github_repos_get_apps_with_access_to_protected_branch",
|
|
566
|
+
description: "Get apps with access to the protected branch",
|
|
567
|
+
inputSchema: zod_1.z.object({
|
|
568
|
+
owner: zod_1.z.string().describe("owner"),
|
|
569
|
+
repo: zod_1.z.string().describe("repo"),
|
|
570
|
+
branch: zod_1.z.string().describe("branch")
|
|
571
|
+
}),
|
|
572
|
+
handler: async (args) => {
|
|
573
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/apps`, undefined, undefined);
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
name: "github_repos_add_app_access_restrictions",
|
|
578
|
+
description: "Add app access restrictions",
|
|
579
|
+
inputSchema: zod_1.z.object({
|
|
580
|
+
owner: zod_1.z.string().describe("owner"),
|
|
581
|
+
repo: zod_1.z.string().describe("repo"),
|
|
582
|
+
branch: zod_1.z.string().describe("branch"),
|
|
583
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
584
|
+
}),
|
|
585
|
+
handler: async (args) => {
|
|
586
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/apps`, args.body, undefined);
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
name: "github_repos_set_app_access_restrictions",
|
|
591
|
+
description: "Set app access restrictions",
|
|
592
|
+
inputSchema: zod_1.z.object({
|
|
593
|
+
owner: zod_1.z.string().describe("owner"),
|
|
594
|
+
repo: zod_1.z.string().describe("repo"),
|
|
595
|
+
branch: zod_1.z.string().describe("branch"),
|
|
596
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
597
|
+
}),
|
|
598
|
+
handler: async (args) => {
|
|
599
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/apps`, args.body, undefined);
|
|
600
|
+
},
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
name: "github_repos_remove_app_access_restrictions",
|
|
604
|
+
description: "Remove app access restrictions",
|
|
605
|
+
inputSchema: zod_1.z.object({
|
|
606
|
+
owner: zod_1.z.string().describe("owner"),
|
|
607
|
+
repo: zod_1.z.string().describe("repo"),
|
|
608
|
+
branch: zod_1.z.string().describe("branch")
|
|
609
|
+
}),
|
|
610
|
+
handler: async (args) => {
|
|
611
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/apps`, undefined, undefined);
|
|
612
|
+
},
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
name: "github_repos_get_teams_with_access_to_protected_branch",
|
|
616
|
+
description: "Get teams with access to the protected branch",
|
|
617
|
+
inputSchema: zod_1.z.object({
|
|
618
|
+
owner: zod_1.z.string().describe("owner"),
|
|
619
|
+
repo: zod_1.z.string().describe("repo"),
|
|
620
|
+
branch: zod_1.z.string().describe("branch")
|
|
621
|
+
}),
|
|
622
|
+
handler: async (args) => {
|
|
623
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/teams`, undefined, undefined);
|
|
624
|
+
},
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
name: "github_repos_add_team_access_restrictions",
|
|
628
|
+
description: "Add team access restrictions",
|
|
629
|
+
inputSchema: zod_1.z.object({
|
|
630
|
+
owner: zod_1.z.string().describe("owner"),
|
|
631
|
+
repo: zod_1.z.string().describe("repo"),
|
|
632
|
+
branch: zod_1.z.string().describe("branch"),
|
|
633
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
634
|
+
}),
|
|
635
|
+
handler: async (args) => {
|
|
636
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/teams`, args.body, undefined);
|
|
637
|
+
},
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
name: "github_repos_set_team_access_restrictions",
|
|
641
|
+
description: "Set team access restrictions",
|
|
642
|
+
inputSchema: zod_1.z.object({
|
|
643
|
+
owner: zod_1.z.string().describe("owner"),
|
|
644
|
+
repo: zod_1.z.string().describe("repo"),
|
|
645
|
+
branch: zod_1.z.string().describe("branch"),
|
|
646
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
647
|
+
}),
|
|
648
|
+
handler: async (args) => {
|
|
649
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/teams`, args.body, undefined);
|
|
650
|
+
},
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: "github_repos_remove_team_access_restrictions",
|
|
654
|
+
description: "Remove team access restrictions",
|
|
655
|
+
inputSchema: zod_1.z.object({
|
|
656
|
+
owner: zod_1.z.string().describe("owner"),
|
|
657
|
+
repo: zod_1.z.string().describe("repo"),
|
|
658
|
+
branch: zod_1.z.string().describe("branch")
|
|
659
|
+
}),
|
|
660
|
+
handler: async (args) => {
|
|
661
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/teams`, undefined, undefined);
|
|
662
|
+
},
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
name: "github_repos_get_users_with_access_to_protected_branch",
|
|
666
|
+
description: "Get users with access to the protected branch",
|
|
667
|
+
inputSchema: zod_1.z.object({
|
|
668
|
+
owner: zod_1.z.string().describe("owner"),
|
|
669
|
+
repo: zod_1.z.string().describe("repo"),
|
|
670
|
+
branch: zod_1.z.string().describe("branch")
|
|
671
|
+
}),
|
|
672
|
+
handler: async (args) => {
|
|
673
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/users`, undefined, undefined);
|
|
674
|
+
},
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
name: "github_repos_add_user_access_restrictions",
|
|
678
|
+
description: "Add user access restrictions",
|
|
679
|
+
inputSchema: zod_1.z.object({
|
|
680
|
+
owner: zod_1.z.string().describe("owner"),
|
|
681
|
+
repo: zod_1.z.string().describe("repo"),
|
|
682
|
+
branch: zod_1.z.string().describe("branch"),
|
|
683
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
684
|
+
}),
|
|
685
|
+
handler: async (args) => {
|
|
686
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/users`, args.body, undefined);
|
|
687
|
+
},
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
name: "github_repos_set_user_access_restrictions",
|
|
691
|
+
description: "Set user access restrictions",
|
|
692
|
+
inputSchema: zod_1.z.object({
|
|
693
|
+
owner: zod_1.z.string().describe("owner"),
|
|
694
|
+
repo: zod_1.z.string().describe("repo"),
|
|
695
|
+
branch: zod_1.z.string().describe("branch"),
|
|
696
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
697
|
+
}),
|
|
698
|
+
handler: async (args) => {
|
|
699
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/users`, args.body, undefined);
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
name: "github_repos_remove_user_access_restrictions",
|
|
704
|
+
description: "Remove user access restrictions",
|
|
705
|
+
inputSchema: zod_1.z.object({
|
|
706
|
+
owner: zod_1.z.string().describe("owner"),
|
|
707
|
+
repo: zod_1.z.string().describe("repo"),
|
|
708
|
+
branch: zod_1.z.string().describe("branch")
|
|
709
|
+
}),
|
|
710
|
+
handler: async (args) => {
|
|
711
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/protection/restrictions/users`, undefined, undefined);
|
|
712
|
+
},
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
name: "github_repos_rename_branch",
|
|
716
|
+
description: "Rename a branch",
|
|
717
|
+
inputSchema: zod_1.z.object({
|
|
718
|
+
owner: zod_1.z.string().describe("owner"),
|
|
719
|
+
repo: zod_1.z.string().describe("repo"),
|
|
720
|
+
branch: zod_1.z.string().describe("branch"),
|
|
721
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
722
|
+
}),
|
|
723
|
+
handler: async (args) => {
|
|
724
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/branches/${args.branch}/rename`, args.body, undefined);
|
|
725
|
+
},
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
name: "github_repos_codeowners_errors",
|
|
729
|
+
description: "List CODEOWNERS errors",
|
|
730
|
+
inputSchema: zod_1.z.object({
|
|
731
|
+
owner: zod_1.z.string().describe("owner"),
|
|
732
|
+
repo: zod_1.z.string().describe("repo"),
|
|
733
|
+
ref: zod_1.z.string().optional().describe("A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository's default branch (e.g. `main`)")
|
|
734
|
+
}),
|
|
735
|
+
handler: async (args) => {
|
|
736
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/codeowners/errors`, undefined, { ref: args.ref });
|
|
737
|
+
},
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
name: "github_repos_list_collaborators",
|
|
741
|
+
description: "List repository collaborators",
|
|
742
|
+
inputSchema: zod_1.z.object({
|
|
743
|
+
owner: zod_1.z.string().describe("owner"),
|
|
744
|
+
repo: zod_1.z.string().describe("repo"),
|
|
745
|
+
affiliation: zod_1.z.enum(["outside", "direct", "all"]).optional().describe("Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see."),
|
|
746
|
+
permission: zod_1.z.enum(["pull", "triage", "push", "maintain", "admin"]).optional().describe("Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned."),
|
|
747
|
+
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).\""),
|
|
748
|
+
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).\"")
|
|
749
|
+
}),
|
|
750
|
+
handler: async (args) => {
|
|
751
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/collaborators`, undefined, { affiliation: args.affiliation, permission: args.permission, per_page: args.per_page, page: args.page });
|
|
752
|
+
},
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
name: "github_repos_check_collaborator",
|
|
756
|
+
description: "Check if a user is a repository collaborator",
|
|
757
|
+
inputSchema: zod_1.z.object({
|
|
758
|
+
owner: zod_1.z.string().describe("owner"),
|
|
759
|
+
repo: zod_1.z.string().describe("repo"),
|
|
760
|
+
username: zod_1.z.string().describe("username")
|
|
761
|
+
}),
|
|
762
|
+
handler: async (args) => {
|
|
763
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/collaborators/${args.username}`, undefined, undefined);
|
|
764
|
+
},
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
name: "github_repos_add_collaborator",
|
|
768
|
+
description: "Add a repository collaborator",
|
|
769
|
+
inputSchema: zod_1.z.object({
|
|
770
|
+
owner: zod_1.z.string().describe("owner"),
|
|
771
|
+
repo: zod_1.z.string().describe("repo"),
|
|
772
|
+
username: zod_1.z.string().describe("username"),
|
|
773
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
774
|
+
}),
|
|
775
|
+
handler: async (args) => {
|
|
776
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/collaborators/${args.username}`, args.body, undefined);
|
|
777
|
+
},
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
name: "github_repos_remove_collaborator",
|
|
781
|
+
description: "Remove a repository collaborator",
|
|
782
|
+
inputSchema: zod_1.z.object({
|
|
783
|
+
owner: zod_1.z.string().describe("owner"),
|
|
784
|
+
repo: zod_1.z.string().describe("repo"),
|
|
785
|
+
username: zod_1.z.string().describe("username")
|
|
786
|
+
}),
|
|
787
|
+
handler: async (args) => {
|
|
788
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/collaborators/${args.username}`, undefined, undefined);
|
|
789
|
+
},
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
name: "github_repos_get_collaborator_permission_level",
|
|
793
|
+
description: "Get repository permissions for a user",
|
|
794
|
+
inputSchema: zod_1.z.object({
|
|
795
|
+
owner: zod_1.z.string().describe("owner"),
|
|
796
|
+
repo: zod_1.z.string().describe("repo"),
|
|
797
|
+
username: zod_1.z.string().describe("username")
|
|
798
|
+
}),
|
|
799
|
+
handler: async (args) => {
|
|
800
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/collaborators/${args.username}/permission`, undefined, undefined);
|
|
801
|
+
},
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
name: "github_repos_list_commit_comments_for_repo",
|
|
805
|
+
description: "List commit comments for a repository",
|
|
806
|
+
inputSchema: zod_1.z.object({
|
|
807
|
+
owner: zod_1.z.string().describe("owner"),
|
|
808
|
+
repo: zod_1.z.string().describe("repo"),
|
|
809
|
+
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).\""),
|
|
810
|
+
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).\"")
|
|
811
|
+
}),
|
|
812
|
+
handler: async (args) => {
|
|
813
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/comments`, undefined, { per_page: args.per_page, page: args.page });
|
|
814
|
+
},
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
name: "github_repos_get_commit_comment",
|
|
818
|
+
description: "Get a commit comment",
|
|
819
|
+
inputSchema: zod_1.z.object({
|
|
820
|
+
owner: zod_1.z.string().describe("owner"),
|
|
821
|
+
repo: zod_1.z.string().describe("repo"),
|
|
822
|
+
comment_id: zod_1.z.string().describe("comment_id")
|
|
823
|
+
}),
|
|
824
|
+
handler: async (args) => {
|
|
825
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/comments/${args.comment_id}`, undefined, undefined);
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
name: "github_repos_update_commit_comment",
|
|
830
|
+
description: "Update a commit comment",
|
|
831
|
+
inputSchema: zod_1.z.object({
|
|
832
|
+
owner: zod_1.z.string().describe("owner"),
|
|
833
|
+
repo: zod_1.z.string().describe("repo"),
|
|
834
|
+
comment_id: zod_1.z.string().describe("comment_id"),
|
|
835
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
836
|
+
}),
|
|
837
|
+
handler: async (args) => {
|
|
838
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/comments/${args.comment_id}`, args.body, undefined);
|
|
839
|
+
},
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
name: "github_repos_delete_commit_comment",
|
|
843
|
+
description: "Delete a commit comment",
|
|
844
|
+
inputSchema: zod_1.z.object({
|
|
845
|
+
owner: zod_1.z.string().describe("owner"),
|
|
846
|
+
repo: zod_1.z.string().describe("repo"),
|
|
847
|
+
comment_id: zod_1.z.string().describe("comment_id")
|
|
848
|
+
}),
|
|
849
|
+
handler: async (args) => {
|
|
850
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/comments/${args.comment_id}`, undefined, undefined);
|
|
851
|
+
},
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
name: "github_repos_list_commits",
|
|
855
|
+
description: "List commits",
|
|
856
|
+
inputSchema: zod_1.z.object({
|
|
857
|
+
owner: zod_1.z.string().describe("owner"),
|
|
858
|
+
repo: zod_1.z.string().describe("repo"),
|
|
859
|
+
sha: zod_1.z.string().optional().describe("SHA or branch to start listing commits from. Default: the repository’s default branch (usually `main`)."),
|
|
860
|
+
path: zod_1.z.string().optional().describe("Only commits containing this file path will be returned."),
|
|
861
|
+
author: zod_1.z.string().optional().describe("GitHub username or email address to use to filter by commit author."),
|
|
862
|
+
committer: zod_1.z.string().optional().describe("GitHub username or email address to use to filter by commit committer."),
|
|
863
|
+
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`. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned."),
|
|
864
|
+
until: zod_1.z.string().optional().describe("Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned."),
|
|
865
|
+
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).\""),
|
|
866
|
+
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).\"")
|
|
867
|
+
}),
|
|
868
|
+
handler: async (args) => {
|
|
869
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/commits`, undefined, { sha: args.sha, path: args.path, author: args.author, committer: args.committer, since: args.since, until: args.until, per_page: args.per_page, page: args.page });
|
|
870
|
+
},
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
name: "github_repos_list_branches_for_head_commit",
|
|
874
|
+
description: "List branches for HEAD commit",
|
|
875
|
+
inputSchema: zod_1.z.object({
|
|
876
|
+
owner: zod_1.z.string().describe("owner"),
|
|
877
|
+
repo: zod_1.z.string().describe("repo"),
|
|
878
|
+
commit_sha: zod_1.z.string().describe("commit_sha")
|
|
879
|
+
}),
|
|
880
|
+
handler: async (args) => {
|
|
881
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/commits/${args.commit_sha}/branches-where-head`, undefined, undefined);
|
|
882
|
+
},
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
name: "github_repos_list_comments_for_commit",
|
|
886
|
+
description: "List commit comments",
|
|
887
|
+
inputSchema: zod_1.z.object({
|
|
888
|
+
owner: zod_1.z.string().describe("owner"),
|
|
889
|
+
repo: zod_1.z.string().describe("repo"),
|
|
890
|
+
commit_sha: zod_1.z.string().describe("commit_sha"),
|
|
891
|
+
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).\""),
|
|
892
|
+
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).\"")
|
|
893
|
+
}),
|
|
894
|
+
handler: async (args) => {
|
|
895
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/commits/${args.commit_sha}/comments`, undefined, { per_page: args.per_page, page: args.page });
|
|
896
|
+
},
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
name: "github_repos_create_commit_comment",
|
|
900
|
+
description: "Create a commit comment",
|
|
901
|
+
inputSchema: zod_1.z.object({
|
|
902
|
+
owner: zod_1.z.string().describe("owner"),
|
|
903
|
+
repo: zod_1.z.string().describe("repo"),
|
|
904
|
+
commit_sha: zod_1.z.string().describe("commit_sha"),
|
|
905
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
906
|
+
}),
|
|
907
|
+
handler: async (args) => {
|
|
908
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/commits/${args.commit_sha}/comments`, args.body, undefined);
|
|
909
|
+
},
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
name: "github_repos_list_pull_requests_associated_with_commit",
|
|
913
|
+
description: "List pull requests associated with a commit",
|
|
914
|
+
inputSchema: zod_1.z.object({
|
|
915
|
+
owner: zod_1.z.string().describe("owner"),
|
|
916
|
+
repo: zod_1.z.string().describe("repo"),
|
|
917
|
+
commit_sha: zod_1.z.string().describe("commit_sha"),
|
|
918
|
+
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).\""),
|
|
919
|
+
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).\"")
|
|
920
|
+
}),
|
|
921
|
+
handler: async (args) => {
|
|
922
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/commits/${args.commit_sha}/pulls`, undefined, { per_page: args.per_page, page: args.page });
|
|
923
|
+
},
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
name: "github_repos_get_commit",
|
|
927
|
+
description: "Get a commit",
|
|
928
|
+
inputSchema: zod_1.z.object({
|
|
929
|
+
owner: zod_1.z.string().describe("owner"),
|
|
930
|
+
repo: zod_1.z.string().describe("repo"),
|
|
931
|
+
ref: zod_1.z.string().describe("ref"),
|
|
932
|
+
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).\""),
|
|
933
|
+
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).\"")
|
|
934
|
+
}),
|
|
935
|
+
handler: async (args) => {
|
|
936
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/commits/${args.ref}`, undefined, { page: args.page, per_page: args.per_page });
|
|
937
|
+
},
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
name: "github_repos_get_combined_status_for_ref",
|
|
941
|
+
description: "Get the combined status for a specific reference",
|
|
942
|
+
inputSchema: zod_1.z.object({
|
|
943
|
+
owner: zod_1.z.string().describe("owner"),
|
|
944
|
+
repo: zod_1.z.string().describe("repo"),
|
|
945
|
+
ref: zod_1.z.string().describe("ref"),
|
|
946
|
+
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).\""),
|
|
947
|
+
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).\"")
|
|
948
|
+
}),
|
|
949
|
+
handler: async (args) => {
|
|
950
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/commits/${args.ref}/status`, undefined, { per_page: args.per_page, page: args.page });
|
|
951
|
+
},
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
name: "github_repos_list_commit_statuses_for_ref",
|
|
955
|
+
description: "List commit statuses for a reference",
|
|
956
|
+
inputSchema: zod_1.z.object({
|
|
957
|
+
owner: zod_1.z.string().describe("owner"),
|
|
958
|
+
repo: zod_1.z.string().describe("repo"),
|
|
959
|
+
ref: zod_1.z.string().describe("ref"),
|
|
960
|
+
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).\""),
|
|
961
|
+
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).\"")
|
|
962
|
+
}),
|
|
963
|
+
handler: async (args) => {
|
|
964
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/commits/${args.ref}/statuses`, undefined, { per_page: args.per_page, page: args.page });
|
|
965
|
+
},
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
name: "github_repos_get_community_profile_metrics",
|
|
969
|
+
description: "Get community profile metrics",
|
|
970
|
+
inputSchema: zod_1.z.object({
|
|
971
|
+
owner: zod_1.z.string().describe("owner"),
|
|
972
|
+
repo: zod_1.z.string().describe("repo")
|
|
973
|
+
}),
|
|
974
|
+
handler: async (args) => {
|
|
975
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/community/profile`, undefined, undefined);
|
|
976
|
+
},
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
name: "github_repos_compare_commits",
|
|
980
|
+
description: "Compare two commits",
|
|
981
|
+
inputSchema: zod_1.z.object({
|
|
982
|
+
owner: zod_1.z.string().describe("owner"),
|
|
983
|
+
repo: zod_1.z.string().describe("repo"),
|
|
984
|
+
basehead: zod_1.z.string().describe("basehead"),
|
|
985
|
+
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).\""),
|
|
986
|
+
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).\"")
|
|
987
|
+
}),
|
|
988
|
+
handler: async (args) => {
|
|
989
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/compare/${args.basehead}`, undefined, { page: args.page, per_page: args.per_page });
|
|
990
|
+
},
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
name: "github_repos_get_content",
|
|
994
|
+
description: "Get repository content",
|
|
995
|
+
inputSchema: zod_1.z.object({
|
|
996
|
+
owner: zod_1.z.string().describe("owner"),
|
|
997
|
+
repo: zod_1.z.string().describe("repo"),
|
|
998
|
+
path: zod_1.z.string().describe("path"),
|
|
999
|
+
ref: zod_1.z.string().optional().describe("The name of the commit/branch/tag. Default: the repository’s default branch.")
|
|
1000
|
+
}),
|
|
1001
|
+
handler: async (args) => {
|
|
1002
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/contents/${args.path}`, undefined, { ref: args.ref });
|
|
1003
|
+
},
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
name: "github_repos_create_or_update_file_contents",
|
|
1007
|
+
description: "Create or update file contents",
|
|
1008
|
+
inputSchema: zod_1.z.object({
|
|
1009
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1010
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1011
|
+
path: zod_1.z.string().describe("path"),
|
|
1012
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1013
|
+
}),
|
|
1014
|
+
handler: async (args) => {
|
|
1015
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/contents/${args.path}`, args.body, undefined);
|
|
1016
|
+
},
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
name: "github_repos_delete_file",
|
|
1020
|
+
description: "Delete a file",
|
|
1021
|
+
inputSchema: zod_1.z.object({
|
|
1022
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1023
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1024
|
+
path: zod_1.z.string().describe("path")
|
|
1025
|
+
}),
|
|
1026
|
+
handler: async (args) => {
|
|
1027
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/contents/${args.path}`, undefined, undefined);
|
|
1028
|
+
},
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
name: "github_repos_list_contributors",
|
|
1032
|
+
description: "List repository contributors",
|
|
1033
|
+
inputSchema: zod_1.z.object({
|
|
1034
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1035
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1036
|
+
anon: zod_1.z.string().optional().describe("Set to `1` or `true` to include anonymous contributors in results."),
|
|
1037
|
+
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).\""),
|
|
1038
|
+
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).\"")
|
|
1039
|
+
}),
|
|
1040
|
+
handler: async (args) => {
|
|
1041
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/contributors`, undefined, { anon: args.anon, per_page: args.per_page, page: args.page });
|
|
1042
|
+
},
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
name: "github_repos_list_deployments",
|
|
1046
|
+
description: "List deployments",
|
|
1047
|
+
inputSchema: zod_1.z.object({
|
|
1048
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1049
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1050
|
+
sha: zod_1.z.string().optional().describe("The SHA recorded at creation time."),
|
|
1051
|
+
ref: zod_1.z.string().optional().describe("The name of the ref. This can be a branch, tag, or SHA."),
|
|
1052
|
+
task: zod_1.z.string().optional().describe("The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`)."),
|
|
1053
|
+
environment: zod_1.z.string().optional().describe("The name of the environment that was deployed to (e.g., `staging` or `production`)."),
|
|
1054
|
+
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).\""),
|
|
1055
|
+
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).\"")
|
|
1056
|
+
}),
|
|
1057
|
+
handler: async (args) => {
|
|
1058
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/deployments`, undefined, { sha: args.sha, ref: args.ref, task: args.task, environment: args.environment, per_page: args.per_page, page: args.page });
|
|
1059
|
+
},
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
name: "github_repos_create_deployment",
|
|
1063
|
+
description: "Create a deployment",
|
|
1064
|
+
inputSchema: zod_1.z.object({
|
|
1065
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1066
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1067
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1068
|
+
}),
|
|
1069
|
+
handler: async (args) => {
|
|
1070
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/deployments`, args.body, undefined);
|
|
1071
|
+
},
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
name: "github_repos_get_deployment",
|
|
1075
|
+
description: "Get a deployment",
|
|
1076
|
+
inputSchema: zod_1.z.object({
|
|
1077
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1078
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1079
|
+
deployment_id: zod_1.z.string().describe("deployment_id")
|
|
1080
|
+
}),
|
|
1081
|
+
handler: async (args) => {
|
|
1082
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/deployments/${args.deployment_id}`, undefined, undefined);
|
|
1083
|
+
},
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
name: "github_repos_delete_deployment",
|
|
1087
|
+
description: "Delete a deployment",
|
|
1088
|
+
inputSchema: zod_1.z.object({
|
|
1089
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1090
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1091
|
+
deployment_id: zod_1.z.string().describe("deployment_id")
|
|
1092
|
+
}),
|
|
1093
|
+
handler: async (args) => {
|
|
1094
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/deployments/${args.deployment_id}`, undefined, undefined);
|
|
1095
|
+
},
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
name: "github_repos_list_deployment_statuses",
|
|
1099
|
+
description: "List deployment statuses",
|
|
1100
|
+
inputSchema: zod_1.z.object({
|
|
1101
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1102
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1103
|
+
deployment_id: zod_1.z.string().describe("deployment_id"),
|
|
1104
|
+
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).\""),
|
|
1105
|
+
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).\"")
|
|
1106
|
+
}),
|
|
1107
|
+
handler: async (args) => {
|
|
1108
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/deployments/${args.deployment_id}/statuses`, undefined, { per_page: args.per_page, page: args.page });
|
|
1109
|
+
},
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
name: "github_repos_create_deployment_status",
|
|
1113
|
+
description: "Create a deployment status",
|
|
1114
|
+
inputSchema: zod_1.z.object({
|
|
1115
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1116
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1117
|
+
deployment_id: zod_1.z.string().describe("deployment_id"),
|
|
1118
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1119
|
+
}),
|
|
1120
|
+
handler: async (args) => {
|
|
1121
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/deployments/${args.deployment_id}/statuses`, args.body, undefined);
|
|
1122
|
+
},
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
name: "github_repos_get_deployment_status",
|
|
1126
|
+
description: "Get a deployment status",
|
|
1127
|
+
inputSchema: zod_1.z.object({
|
|
1128
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1129
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1130
|
+
deployment_id: zod_1.z.string().describe("deployment_id"),
|
|
1131
|
+
status_id: zod_1.z.string().describe("status_id")
|
|
1132
|
+
}),
|
|
1133
|
+
handler: async (args) => {
|
|
1134
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/deployments/${args.deployment_id}/statuses/${args.status_id}`, undefined, undefined);
|
|
1135
|
+
},
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
name: "github_repos_create_dispatch_event",
|
|
1139
|
+
description: "Create a repository dispatch event",
|
|
1140
|
+
inputSchema: zod_1.z.object({
|
|
1141
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1142
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1143
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1144
|
+
}),
|
|
1145
|
+
handler: async (args) => {
|
|
1146
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/dispatches`, args.body, undefined);
|
|
1147
|
+
},
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
name: "github_repos_get_all_environments",
|
|
1151
|
+
description: "List environments",
|
|
1152
|
+
inputSchema: zod_1.z.object({
|
|
1153
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1154
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1155
|
+
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).\""),
|
|
1156
|
+
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).\"")
|
|
1157
|
+
}),
|
|
1158
|
+
handler: async (args) => {
|
|
1159
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments`, undefined, { per_page: args.per_page, page: args.page });
|
|
1160
|
+
},
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
name: "github_repos_get_environment",
|
|
1164
|
+
description: "Get an environment",
|
|
1165
|
+
inputSchema: zod_1.z.object({
|
|
1166
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1167
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1168
|
+
environment_name: zod_1.z.string().describe("environment_name")
|
|
1169
|
+
}),
|
|
1170
|
+
handler: async (args) => {
|
|
1171
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}`, undefined, undefined);
|
|
1172
|
+
},
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
name: "github_repos_create_or_update_environment",
|
|
1176
|
+
description: "Create or update an environment",
|
|
1177
|
+
inputSchema: zod_1.z.object({
|
|
1178
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1179
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1180
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1181
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1182
|
+
}),
|
|
1183
|
+
handler: async (args) => {
|
|
1184
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}`, args.body, undefined);
|
|
1185
|
+
},
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
name: "github_repos_delete_an_environment",
|
|
1189
|
+
description: "Delete an environment",
|
|
1190
|
+
inputSchema: zod_1.z.object({
|
|
1191
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1192
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1193
|
+
environment_name: zod_1.z.string().describe("environment_name")
|
|
1194
|
+
}),
|
|
1195
|
+
handler: async (args) => {
|
|
1196
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}`, undefined, undefined);
|
|
1197
|
+
},
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
name: "github_repos_list_deployment_branch_policies",
|
|
1201
|
+
description: "List deployment branch policies",
|
|
1202
|
+
inputSchema: zod_1.z.object({
|
|
1203
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1204
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1205
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1206
|
+
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).\""),
|
|
1207
|
+
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).\"")
|
|
1208
|
+
}),
|
|
1209
|
+
handler: async (args) => {
|
|
1210
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment-branch-policies`, undefined, { per_page: args.per_page, page: args.page });
|
|
1211
|
+
},
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
name: "github_repos_create_deployment_branch_policy",
|
|
1215
|
+
description: "Create a deployment branch policy",
|
|
1216
|
+
inputSchema: zod_1.z.object({
|
|
1217
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1218
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1219
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1220
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1221
|
+
}),
|
|
1222
|
+
handler: async (args) => {
|
|
1223
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment-branch-policies`, args.body, undefined);
|
|
1224
|
+
},
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
name: "github_repos_get_deployment_branch_policy",
|
|
1228
|
+
description: "Get a deployment branch policy",
|
|
1229
|
+
inputSchema: zod_1.z.object({
|
|
1230
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1231
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1232
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1233
|
+
branch_policy_id: zod_1.z.string().describe("branch_policy_id")
|
|
1234
|
+
}),
|
|
1235
|
+
handler: async (args) => {
|
|
1236
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment-branch-policies/${args.branch_policy_id}`, undefined, undefined);
|
|
1237
|
+
},
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
name: "github_repos_update_deployment_branch_policy",
|
|
1241
|
+
description: "Update a deployment branch policy",
|
|
1242
|
+
inputSchema: zod_1.z.object({
|
|
1243
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1244
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1245
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1246
|
+
branch_policy_id: zod_1.z.string().describe("branch_policy_id"),
|
|
1247
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1248
|
+
}),
|
|
1249
|
+
handler: async (args) => {
|
|
1250
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment-branch-policies/${args.branch_policy_id}`, args.body, undefined);
|
|
1251
|
+
},
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
name: "github_repos_delete_deployment_branch_policy",
|
|
1255
|
+
description: "Delete a deployment branch policy",
|
|
1256
|
+
inputSchema: zod_1.z.object({
|
|
1257
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1258
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1259
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1260
|
+
branch_policy_id: zod_1.z.string().describe("branch_policy_id")
|
|
1261
|
+
}),
|
|
1262
|
+
handler: async (args) => {
|
|
1263
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment-branch-policies/${args.branch_policy_id}`, undefined, undefined);
|
|
1264
|
+
},
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
name: "github_repos_get_all_deployment_protection_rules",
|
|
1268
|
+
description: "Get all deployment protection rules for an environment",
|
|
1269
|
+
inputSchema: zod_1.z.object({
|
|
1270
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1271
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1272
|
+
environment_name: zod_1.z.string().describe("environment_name")
|
|
1273
|
+
}),
|
|
1274
|
+
handler: async (args) => {
|
|
1275
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment_protection_rules`, undefined, undefined);
|
|
1276
|
+
},
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
name: "github_repos_create_deployment_protection_rule",
|
|
1280
|
+
description: "Create a custom deployment protection rule on an environment",
|
|
1281
|
+
inputSchema: zod_1.z.object({
|
|
1282
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1283
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1284
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1285
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1286
|
+
}),
|
|
1287
|
+
handler: async (args) => {
|
|
1288
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment_protection_rules`, args.body, undefined);
|
|
1289
|
+
},
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
name: "github_repos_list_custom_deployment_rule_integrations",
|
|
1293
|
+
description: "List custom deployment rule integrations available for an environment",
|
|
1294
|
+
inputSchema: zod_1.z.object({
|
|
1295
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1296
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1297
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1298
|
+
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).\""),
|
|
1299
|
+
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).\"")
|
|
1300
|
+
}),
|
|
1301
|
+
handler: async (args) => {
|
|
1302
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment_protection_rules/apps`, undefined, { page: args.page, per_page: args.per_page });
|
|
1303
|
+
},
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
name: "github_repos_get_custom_deployment_protection_rule",
|
|
1307
|
+
description: "Get a custom deployment protection rule",
|
|
1308
|
+
inputSchema: zod_1.z.object({
|
|
1309
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1310
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1311
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1312
|
+
protection_rule_id: zod_1.z.string().describe("protection_rule_id")
|
|
1313
|
+
}),
|
|
1314
|
+
handler: async (args) => {
|
|
1315
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment_protection_rules/${args.protection_rule_id}`, undefined, undefined);
|
|
1316
|
+
},
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
name: "github_repos_disable_deployment_protection_rule",
|
|
1320
|
+
description: "Disable a custom protection rule for an environment",
|
|
1321
|
+
inputSchema: zod_1.z.object({
|
|
1322
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1323
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1324
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
1325
|
+
protection_rule_id: zod_1.z.string().describe("protection_rule_id")
|
|
1326
|
+
}),
|
|
1327
|
+
handler: async (args) => {
|
|
1328
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/deployment_protection_rules/${args.protection_rule_id}`, undefined, undefined);
|
|
1329
|
+
},
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
name: "github_repos_list_forks",
|
|
1333
|
+
description: "List forks",
|
|
1334
|
+
inputSchema: zod_1.z.object({
|
|
1335
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1336
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1337
|
+
sort: zod_1.z.enum(["newest", "oldest", "stargazers", "watchers"]).optional().describe("The sort order. `stargazers` will sort by star count."),
|
|
1338
|
+
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).\""),
|
|
1339
|
+
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).\"")
|
|
1340
|
+
}),
|
|
1341
|
+
handler: async (args) => {
|
|
1342
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/forks`, undefined, { sort: args.sort, per_page: args.per_page, page: args.page });
|
|
1343
|
+
},
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
name: "github_repos_create_fork",
|
|
1347
|
+
description: "Create a fork",
|
|
1348
|
+
inputSchema: zod_1.z.object({
|
|
1349
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1350
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1351
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1352
|
+
}),
|
|
1353
|
+
handler: async (args) => {
|
|
1354
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/forks`, args.body, undefined);
|
|
1355
|
+
},
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
name: "github_repos_list_webhooks",
|
|
1359
|
+
description: "List repository webhooks",
|
|
1360
|
+
inputSchema: zod_1.z.object({
|
|
1361
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1362
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1363
|
+
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).\""),
|
|
1364
|
+
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).\"")
|
|
1365
|
+
}),
|
|
1366
|
+
handler: async (args) => {
|
|
1367
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/hooks`, undefined, { per_page: args.per_page, page: args.page });
|
|
1368
|
+
},
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
name: "github_repos_create_webhook",
|
|
1372
|
+
description: "Create a repository webhook",
|
|
1373
|
+
inputSchema: zod_1.z.object({
|
|
1374
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1375
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1376
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1377
|
+
}),
|
|
1378
|
+
handler: async (args) => {
|
|
1379
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/hooks`, args.body, undefined);
|
|
1380
|
+
},
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
name: "github_repos_get_webhook",
|
|
1384
|
+
description: "Get a repository webhook",
|
|
1385
|
+
inputSchema: zod_1.z.object({
|
|
1386
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1387
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1388
|
+
hook_id: zod_1.z.string().describe("hook_id")
|
|
1389
|
+
}),
|
|
1390
|
+
handler: async (args) => {
|
|
1391
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}`, undefined, undefined);
|
|
1392
|
+
},
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
name: "github_repos_update_webhook",
|
|
1396
|
+
description: "Update a repository webhook",
|
|
1397
|
+
inputSchema: zod_1.z.object({
|
|
1398
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1399
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1400
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
1401
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1402
|
+
}),
|
|
1403
|
+
handler: async (args) => {
|
|
1404
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}`, args.body, undefined);
|
|
1405
|
+
},
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
name: "github_repos_delete_webhook",
|
|
1409
|
+
description: "Delete a repository webhook",
|
|
1410
|
+
inputSchema: zod_1.z.object({
|
|
1411
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1412
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1413
|
+
hook_id: zod_1.z.string().describe("hook_id")
|
|
1414
|
+
}),
|
|
1415
|
+
handler: async (args) => {
|
|
1416
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}`, undefined, undefined);
|
|
1417
|
+
},
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
name: "github_repos_get_webhook_config_for_repo",
|
|
1421
|
+
description: "Get a webhook configuration for a repository",
|
|
1422
|
+
inputSchema: zod_1.z.object({
|
|
1423
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1424
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1425
|
+
hook_id: zod_1.z.string().describe("hook_id")
|
|
1426
|
+
}),
|
|
1427
|
+
handler: async (args) => {
|
|
1428
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}/config`, undefined, undefined);
|
|
1429
|
+
},
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
name: "github_repos_update_webhook_config_for_repo",
|
|
1433
|
+
description: "Update a webhook configuration for a repository",
|
|
1434
|
+
inputSchema: zod_1.z.object({
|
|
1435
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1436
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1437
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
1438
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1439
|
+
}),
|
|
1440
|
+
handler: async (args) => {
|
|
1441
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}/config`, args.body, undefined);
|
|
1442
|
+
},
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
name: "github_repos_list_webhook_deliveries",
|
|
1446
|
+
description: "List deliveries for a repository webhook",
|
|
1447
|
+
inputSchema: zod_1.z.object({
|
|
1448
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1449
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1450
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
1451
|
+
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).\""),
|
|
1452
|
+
cursor: zod_1.z.string().optional().describe("Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors."),
|
|
1453
|
+
status: zod_1.z.enum(["success", "failure"]).optional().describe("Returns webhook deliveries filtered by delivery outcome classification based on `status_code` range. A `status` of `success` returns deliveries with a `status_code` in the 200-399 range (inclusive). A `status` of `failure` returns deliveries with a `status_code` in the 400-599 range (inclusive).")
|
|
1454
|
+
}),
|
|
1455
|
+
handler: async (args) => {
|
|
1456
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}/deliveries`, undefined, { per_page: args.per_page, cursor: args.cursor, status: args.status });
|
|
1457
|
+
},
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
name: "github_repos_get_webhook_delivery",
|
|
1461
|
+
description: "Get a delivery for a repository webhook",
|
|
1462
|
+
inputSchema: zod_1.z.object({
|
|
1463
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1464
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1465
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
1466
|
+
delivery_id: zod_1.z.string().describe("delivery_id")
|
|
1467
|
+
}),
|
|
1468
|
+
handler: async (args) => {
|
|
1469
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}/deliveries/${args.delivery_id}`, undefined, undefined);
|
|
1470
|
+
},
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
name: "github_repos_redeliver_webhook_delivery",
|
|
1474
|
+
description: "Redeliver a delivery for a repository webhook",
|
|
1475
|
+
inputSchema: zod_1.z.object({
|
|
1476
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1477
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1478
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
1479
|
+
delivery_id: zod_1.z.string().describe("delivery_id")
|
|
1480
|
+
}),
|
|
1481
|
+
handler: async (args) => {
|
|
1482
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}/deliveries/${args.delivery_id}/attempts`, undefined, undefined);
|
|
1483
|
+
},
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
name: "github_repos_ping_webhook",
|
|
1487
|
+
description: "Ping a repository webhook",
|
|
1488
|
+
inputSchema: zod_1.z.object({
|
|
1489
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1490
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1491
|
+
hook_id: zod_1.z.string().describe("hook_id")
|
|
1492
|
+
}),
|
|
1493
|
+
handler: async (args) => {
|
|
1494
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}/pings`, undefined, undefined);
|
|
1495
|
+
},
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
name: "github_repos_test_push_webhook",
|
|
1499
|
+
description: "Test the push repository webhook",
|
|
1500
|
+
inputSchema: zod_1.z.object({
|
|
1501
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1502
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1503
|
+
hook_id: zod_1.z.string().describe("hook_id")
|
|
1504
|
+
}),
|
|
1505
|
+
handler: async (args) => {
|
|
1506
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/hooks/${args.hook_id}/tests`, undefined, undefined);
|
|
1507
|
+
},
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
name: "github_repos_check_immutable_releases",
|
|
1511
|
+
description: "Check if immutable releases are enabled for a repository",
|
|
1512
|
+
inputSchema: zod_1.z.object({
|
|
1513
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1514
|
+
repo: zod_1.z.string().describe("repo")
|
|
1515
|
+
}),
|
|
1516
|
+
handler: async (args) => {
|
|
1517
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/immutable-releases`, undefined, undefined);
|
|
1518
|
+
},
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
name: "github_repos_enable_immutable_releases",
|
|
1522
|
+
description: "Enable immutable releases",
|
|
1523
|
+
inputSchema: zod_1.z.object({
|
|
1524
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1525
|
+
repo: zod_1.z.string().describe("repo")
|
|
1526
|
+
}),
|
|
1527
|
+
handler: async (args) => {
|
|
1528
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/immutable-releases`, undefined, undefined);
|
|
1529
|
+
},
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
name: "github_repos_disable_immutable_releases",
|
|
1533
|
+
description: "Disable immutable releases",
|
|
1534
|
+
inputSchema: zod_1.z.object({
|
|
1535
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1536
|
+
repo: zod_1.z.string().describe("repo")
|
|
1537
|
+
}),
|
|
1538
|
+
handler: async (args) => {
|
|
1539
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/immutable-releases`, undefined, undefined);
|
|
1540
|
+
},
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
name: "github_repos_list_invitations",
|
|
1544
|
+
description: "List repository invitations",
|
|
1545
|
+
inputSchema: zod_1.z.object({
|
|
1546
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1547
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1548
|
+
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).\""),
|
|
1549
|
+
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).\"")
|
|
1550
|
+
}),
|
|
1551
|
+
handler: async (args) => {
|
|
1552
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/invitations`, undefined, { per_page: args.per_page, page: args.page });
|
|
1553
|
+
},
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
name: "github_repos_update_invitation",
|
|
1557
|
+
description: "Update a repository invitation",
|
|
1558
|
+
inputSchema: zod_1.z.object({
|
|
1559
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1560
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1561
|
+
invitation_id: zod_1.z.string().describe("invitation_id"),
|
|
1562
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1563
|
+
}),
|
|
1564
|
+
handler: async (args) => {
|
|
1565
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/invitations/${args.invitation_id}`, args.body, undefined);
|
|
1566
|
+
},
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
name: "github_repos_delete_invitation",
|
|
1570
|
+
description: "Delete a repository invitation",
|
|
1571
|
+
inputSchema: zod_1.z.object({
|
|
1572
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1573
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1574
|
+
invitation_id: zod_1.z.string().describe("invitation_id")
|
|
1575
|
+
}),
|
|
1576
|
+
handler: async (args) => {
|
|
1577
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/invitations/${args.invitation_id}`, undefined, undefined);
|
|
1578
|
+
},
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
name: "github_repos_list_deploy_keys",
|
|
1582
|
+
description: "List deploy keys",
|
|
1583
|
+
inputSchema: zod_1.z.object({
|
|
1584
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1585
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1586
|
+
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).\""),
|
|
1587
|
+
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).\"")
|
|
1588
|
+
}),
|
|
1589
|
+
handler: async (args) => {
|
|
1590
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/keys`, undefined, { per_page: args.per_page, page: args.page });
|
|
1591
|
+
},
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
name: "github_repos_create_deploy_key",
|
|
1595
|
+
description: "Create a deploy key",
|
|
1596
|
+
inputSchema: zod_1.z.object({
|
|
1597
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1598
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1599
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1600
|
+
}),
|
|
1601
|
+
handler: async (args) => {
|
|
1602
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/keys`, args.body, undefined);
|
|
1603
|
+
},
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
name: "github_repos_get_deploy_key",
|
|
1607
|
+
description: "Get a deploy key",
|
|
1608
|
+
inputSchema: zod_1.z.object({
|
|
1609
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1610
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1611
|
+
key_id: zod_1.z.string().describe("key_id")
|
|
1612
|
+
}),
|
|
1613
|
+
handler: async (args) => {
|
|
1614
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/keys/${args.key_id}`, undefined, undefined);
|
|
1615
|
+
},
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
name: "github_repos_delete_deploy_key",
|
|
1619
|
+
description: "Delete a deploy key",
|
|
1620
|
+
inputSchema: zod_1.z.object({
|
|
1621
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1622
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1623
|
+
key_id: zod_1.z.string().describe("key_id")
|
|
1624
|
+
}),
|
|
1625
|
+
handler: async (args) => {
|
|
1626
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/keys/${args.key_id}`, undefined, undefined);
|
|
1627
|
+
},
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
name: "github_repos_list_languages",
|
|
1631
|
+
description: "List repository languages",
|
|
1632
|
+
inputSchema: zod_1.z.object({
|
|
1633
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1634
|
+
repo: zod_1.z.string().describe("repo")
|
|
1635
|
+
}),
|
|
1636
|
+
handler: async (args) => {
|
|
1637
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/languages`, undefined, undefined);
|
|
1638
|
+
},
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
name: "github_repos_merge_upstream",
|
|
1642
|
+
description: "Sync a fork branch with the upstream repository",
|
|
1643
|
+
inputSchema: zod_1.z.object({
|
|
1644
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1645
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1646
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1647
|
+
}),
|
|
1648
|
+
handler: async (args) => {
|
|
1649
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/merge-upstream`, args.body, undefined);
|
|
1650
|
+
},
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
name: "github_repos_merge",
|
|
1654
|
+
description: "Merge a branch",
|
|
1655
|
+
inputSchema: zod_1.z.object({
|
|
1656
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1657
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1658
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1659
|
+
}),
|
|
1660
|
+
handler: async (args) => {
|
|
1661
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/merges`, args.body, undefined);
|
|
1662
|
+
},
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
name: "github_repos_get_pages",
|
|
1666
|
+
description: "Get a GitHub Pages site",
|
|
1667
|
+
inputSchema: zod_1.z.object({
|
|
1668
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1669
|
+
repo: zod_1.z.string().describe("repo")
|
|
1670
|
+
}),
|
|
1671
|
+
handler: async (args) => {
|
|
1672
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/pages`, undefined, undefined);
|
|
1673
|
+
},
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
name: "github_repos_create_pages_site",
|
|
1677
|
+
description: "Create a GitHub Pages site",
|
|
1678
|
+
inputSchema: zod_1.z.object({
|
|
1679
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1680
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1681
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1682
|
+
}),
|
|
1683
|
+
handler: async (args) => {
|
|
1684
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/pages`, args.body, undefined);
|
|
1685
|
+
},
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
name: "github_repos_update_information_about_pages_site",
|
|
1689
|
+
description: "Update information about a GitHub Pages site",
|
|
1690
|
+
inputSchema: zod_1.z.object({
|
|
1691
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1692
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1693
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1694
|
+
}),
|
|
1695
|
+
handler: async (args) => {
|
|
1696
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/pages`, args.body, undefined);
|
|
1697
|
+
},
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
name: "github_repos_delete_pages_site",
|
|
1701
|
+
description: "Delete a GitHub Pages site",
|
|
1702
|
+
inputSchema: zod_1.z.object({
|
|
1703
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1704
|
+
repo: zod_1.z.string().describe("repo")
|
|
1705
|
+
}),
|
|
1706
|
+
handler: async (args) => {
|
|
1707
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/pages`, undefined, undefined);
|
|
1708
|
+
},
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
name: "github_repos_list_pages_builds",
|
|
1712
|
+
description: "List GitHub Pages builds",
|
|
1713
|
+
inputSchema: zod_1.z.object({
|
|
1714
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1715
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1716
|
+
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).\""),
|
|
1717
|
+
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).\"")
|
|
1718
|
+
}),
|
|
1719
|
+
handler: async (args) => {
|
|
1720
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/pages/builds`, undefined, { per_page: args.per_page, page: args.page });
|
|
1721
|
+
},
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
name: "github_repos_request_pages_build",
|
|
1725
|
+
description: "Request a GitHub Pages build",
|
|
1726
|
+
inputSchema: zod_1.z.object({
|
|
1727
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1728
|
+
repo: zod_1.z.string().describe("repo")
|
|
1729
|
+
}),
|
|
1730
|
+
handler: async (args) => {
|
|
1731
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/pages/builds`, undefined, undefined);
|
|
1732
|
+
},
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
name: "github_repos_get_latest_pages_build",
|
|
1736
|
+
description: "Get latest Pages build",
|
|
1737
|
+
inputSchema: zod_1.z.object({
|
|
1738
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1739
|
+
repo: zod_1.z.string().describe("repo")
|
|
1740
|
+
}),
|
|
1741
|
+
handler: async (args) => {
|
|
1742
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/pages/builds/latest`, undefined, undefined);
|
|
1743
|
+
},
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
name: "github_repos_get_pages_build",
|
|
1747
|
+
description: "Get GitHub Pages build",
|
|
1748
|
+
inputSchema: zod_1.z.object({
|
|
1749
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1750
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1751
|
+
build_id: zod_1.z.string().describe("build_id")
|
|
1752
|
+
}),
|
|
1753
|
+
handler: async (args) => {
|
|
1754
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/pages/builds/${args.build_id}`, undefined, undefined);
|
|
1755
|
+
},
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
name: "github_repos_create_pages_deployment",
|
|
1759
|
+
description: "Create a GitHub Pages deployment",
|
|
1760
|
+
inputSchema: zod_1.z.object({
|
|
1761
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1762
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1763
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1764
|
+
}),
|
|
1765
|
+
handler: async (args) => {
|
|
1766
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/pages/deployments`, args.body, undefined);
|
|
1767
|
+
},
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
name: "github_repos_get_pages_deployment",
|
|
1771
|
+
description: "Get the status of a GitHub Pages deployment",
|
|
1772
|
+
inputSchema: zod_1.z.object({
|
|
1773
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1774
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1775
|
+
pages_deployment_id: zod_1.z.string().describe("pages_deployment_id")
|
|
1776
|
+
}),
|
|
1777
|
+
handler: async (args) => {
|
|
1778
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/pages/deployments/${args.pages_deployment_id}`, undefined, undefined);
|
|
1779
|
+
},
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
name: "github_repos_cancel_pages_deployment",
|
|
1783
|
+
description: "Cancel a GitHub Pages deployment",
|
|
1784
|
+
inputSchema: zod_1.z.object({
|
|
1785
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1786
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1787
|
+
pages_deployment_id: zod_1.z.string().describe("pages_deployment_id")
|
|
1788
|
+
}),
|
|
1789
|
+
handler: async (args) => {
|
|
1790
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/pages/deployments/${args.pages_deployment_id}/cancel`, undefined, undefined);
|
|
1791
|
+
},
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
name: "github_repos_get_pages_health_check",
|
|
1795
|
+
description: "Get a DNS health check for GitHub Pages",
|
|
1796
|
+
inputSchema: zod_1.z.object({
|
|
1797
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1798
|
+
repo: zod_1.z.string().describe("repo")
|
|
1799
|
+
}),
|
|
1800
|
+
handler: async (args) => {
|
|
1801
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/pages/health`, undefined, undefined);
|
|
1802
|
+
},
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
name: "github_repos_check_private_vulnerability_reporting",
|
|
1806
|
+
description: "Check if private vulnerability reporting is enabled for a repository",
|
|
1807
|
+
inputSchema: zod_1.z.object({
|
|
1808
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1809
|
+
repo: zod_1.z.string().describe("repo")
|
|
1810
|
+
}),
|
|
1811
|
+
handler: async (args) => {
|
|
1812
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/private-vulnerability-reporting`, undefined, undefined);
|
|
1813
|
+
},
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
name: "github_repos_enable_private_vulnerability_reporting",
|
|
1817
|
+
description: "Enable private vulnerability reporting for a repository",
|
|
1818
|
+
inputSchema: zod_1.z.object({
|
|
1819
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1820
|
+
repo: zod_1.z.string().describe("repo")
|
|
1821
|
+
}),
|
|
1822
|
+
handler: async (args) => {
|
|
1823
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/private-vulnerability-reporting`, undefined, undefined);
|
|
1824
|
+
},
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
name: "github_repos_disable_private_vulnerability_reporting",
|
|
1828
|
+
description: "Disable private vulnerability reporting for a repository",
|
|
1829
|
+
inputSchema: zod_1.z.object({
|
|
1830
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1831
|
+
repo: zod_1.z.string().describe("repo")
|
|
1832
|
+
}),
|
|
1833
|
+
handler: async (args) => {
|
|
1834
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/private-vulnerability-reporting`, undefined, undefined);
|
|
1835
|
+
},
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
name: "github_repos_custom_properties_for_repos_get_repository_values",
|
|
1839
|
+
description: "Get all custom property values for a repository",
|
|
1840
|
+
inputSchema: zod_1.z.object({
|
|
1841
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1842
|
+
repo: zod_1.z.string().describe("repo")
|
|
1843
|
+
}),
|
|
1844
|
+
handler: async (args) => {
|
|
1845
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/properties/values`, undefined, undefined);
|
|
1846
|
+
},
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
name: "github_repos_custom_properties_for_repos_create_or_update_repository_values",
|
|
1850
|
+
description: "Create or update custom property values for a repository",
|
|
1851
|
+
inputSchema: zod_1.z.object({
|
|
1852
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1853
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1854
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1855
|
+
}),
|
|
1856
|
+
handler: async (args) => {
|
|
1857
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/properties/values`, args.body, undefined);
|
|
1858
|
+
},
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
name: "github_repos_get_readme",
|
|
1862
|
+
description: "Get a repository README",
|
|
1863
|
+
inputSchema: zod_1.z.object({
|
|
1864
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1865
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1866
|
+
ref: zod_1.z.string().optional().describe("The name of the commit/branch/tag. Default: the repository’s default branch.")
|
|
1867
|
+
}),
|
|
1868
|
+
handler: async (args) => {
|
|
1869
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/readme`, undefined, { ref: args.ref });
|
|
1870
|
+
},
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
name: "github_repos_get_readme_in_directory",
|
|
1874
|
+
description: "Get a repository README for a directory",
|
|
1875
|
+
inputSchema: zod_1.z.object({
|
|
1876
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1877
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1878
|
+
dir: zod_1.z.string().describe("dir"),
|
|
1879
|
+
ref: zod_1.z.string().optional().describe("The name of the commit/branch/tag. Default: the repository’s default branch.")
|
|
1880
|
+
}),
|
|
1881
|
+
handler: async (args) => {
|
|
1882
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/readme/${args.dir}`, undefined, { ref: args.ref });
|
|
1883
|
+
},
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
name: "github_repos_list_releases",
|
|
1887
|
+
description: "List releases",
|
|
1888
|
+
inputSchema: zod_1.z.object({
|
|
1889
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1890
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1891
|
+
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).\""),
|
|
1892
|
+
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).\"")
|
|
1893
|
+
}),
|
|
1894
|
+
handler: async (args) => {
|
|
1895
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/releases`, undefined, { per_page: args.per_page, page: args.page });
|
|
1896
|
+
},
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
name: "github_repos_create_release",
|
|
1900
|
+
description: "Create a release",
|
|
1901
|
+
inputSchema: zod_1.z.object({
|
|
1902
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1903
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1904
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1905
|
+
}),
|
|
1906
|
+
handler: async (args) => {
|
|
1907
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/releases`, args.body, undefined);
|
|
1908
|
+
},
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
name: "github_repos_get_release_asset",
|
|
1912
|
+
description: "Get a release asset",
|
|
1913
|
+
inputSchema: zod_1.z.object({
|
|
1914
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1915
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1916
|
+
asset_id: zod_1.z.string().describe("asset_id")
|
|
1917
|
+
}),
|
|
1918
|
+
handler: async (args) => {
|
|
1919
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/releases/assets/${args.asset_id}`, undefined, undefined);
|
|
1920
|
+
},
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
name: "github_repos_update_release_asset",
|
|
1924
|
+
description: "Update a release asset",
|
|
1925
|
+
inputSchema: zod_1.z.object({
|
|
1926
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1927
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1928
|
+
asset_id: zod_1.z.string().describe("asset_id"),
|
|
1929
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1930
|
+
}),
|
|
1931
|
+
handler: async (args) => {
|
|
1932
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/releases/assets/${args.asset_id}`, args.body, undefined);
|
|
1933
|
+
},
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
name: "github_repos_delete_release_asset",
|
|
1937
|
+
description: "Delete a release asset",
|
|
1938
|
+
inputSchema: zod_1.z.object({
|
|
1939
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1940
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1941
|
+
asset_id: zod_1.z.string().describe("asset_id")
|
|
1942
|
+
}),
|
|
1943
|
+
handler: async (args) => {
|
|
1944
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/releases/assets/${args.asset_id}`, undefined, undefined);
|
|
1945
|
+
},
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
name: "github_repos_generate_release_notes",
|
|
1949
|
+
description: "Generate release notes content for a release",
|
|
1950
|
+
inputSchema: zod_1.z.object({
|
|
1951
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1952
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1953
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1954
|
+
}),
|
|
1955
|
+
handler: async (args) => {
|
|
1956
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/releases/generate-notes`, args.body, undefined);
|
|
1957
|
+
},
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
name: "github_repos_get_latest_release",
|
|
1961
|
+
description: "Get the latest release",
|
|
1962
|
+
inputSchema: zod_1.z.object({
|
|
1963
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1964
|
+
repo: zod_1.z.string().describe("repo")
|
|
1965
|
+
}),
|
|
1966
|
+
handler: async (args) => {
|
|
1967
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/releases/latest`, undefined, undefined);
|
|
1968
|
+
},
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
name: "github_repos_get_release_by_tag",
|
|
1972
|
+
description: "Get a release by tag name",
|
|
1973
|
+
inputSchema: zod_1.z.object({
|
|
1974
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1975
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1976
|
+
tag: zod_1.z.string().describe("tag")
|
|
1977
|
+
}),
|
|
1978
|
+
handler: async (args) => {
|
|
1979
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/releases/tags/${args.tag}`, undefined, undefined);
|
|
1980
|
+
},
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
name: "github_repos_get_release",
|
|
1984
|
+
description: "Get a release",
|
|
1985
|
+
inputSchema: zod_1.z.object({
|
|
1986
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1987
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1988
|
+
release_id: zod_1.z.string().describe("release_id")
|
|
1989
|
+
}),
|
|
1990
|
+
handler: async (args) => {
|
|
1991
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/releases/${args.release_id}`, undefined, undefined);
|
|
1992
|
+
},
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
name: "github_repos_update_release",
|
|
1996
|
+
description: "Update a release",
|
|
1997
|
+
inputSchema: zod_1.z.object({
|
|
1998
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1999
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2000
|
+
release_id: zod_1.z.string().describe("release_id"),
|
|
2001
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2002
|
+
}),
|
|
2003
|
+
handler: async (args) => {
|
|
2004
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/releases/${args.release_id}`, args.body, undefined);
|
|
2005
|
+
},
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
name: "github_repos_delete_release",
|
|
2009
|
+
description: "Delete a release",
|
|
2010
|
+
inputSchema: zod_1.z.object({
|
|
2011
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2012
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2013
|
+
release_id: zod_1.z.string().describe("release_id")
|
|
2014
|
+
}),
|
|
2015
|
+
handler: async (args) => {
|
|
2016
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/releases/${args.release_id}`, undefined, undefined);
|
|
2017
|
+
},
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
name: "github_repos_list_release_assets",
|
|
2021
|
+
description: "List release assets",
|
|
2022
|
+
inputSchema: zod_1.z.object({
|
|
2023
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2024
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2025
|
+
release_id: zod_1.z.string().describe("release_id"),
|
|
2026
|
+
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).\""),
|
|
2027
|
+
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).\"")
|
|
2028
|
+
}),
|
|
2029
|
+
handler: async (args) => {
|
|
2030
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/releases/${args.release_id}/assets`, undefined, { per_page: args.per_page, page: args.page });
|
|
2031
|
+
},
|
|
2032
|
+
},
|
|
2033
|
+
{
|
|
2034
|
+
name: "github_repos_upload_release_asset",
|
|
2035
|
+
description: "Upload a release asset",
|
|
2036
|
+
inputSchema: zod_1.z.object({
|
|
2037
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2038
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2039
|
+
release_id: zod_1.z.string().describe("release_id"),
|
|
2040
|
+
name: zod_1.z.string().describe("name"),
|
|
2041
|
+
label: zod_1.z.string().optional().describe("label"),
|
|
2042
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2043
|
+
}),
|
|
2044
|
+
handler: async (args) => {
|
|
2045
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/releases/${args.release_id}/assets`, args.body, { name: args.name, label: args.label });
|
|
2046
|
+
},
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
name: "github_repos_get_branch_rules",
|
|
2050
|
+
description: "Get rules for a branch",
|
|
2051
|
+
inputSchema: zod_1.z.object({
|
|
2052
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2053
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2054
|
+
branch: zod_1.z.string().describe("branch"),
|
|
2055
|
+
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).\""),
|
|
2056
|
+
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).\"")
|
|
2057
|
+
}),
|
|
2058
|
+
handler: async (args) => {
|
|
2059
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/rules/branches/${args.branch}`, undefined, { per_page: args.per_page, page: args.page });
|
|
2060
|
+
},
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
name: "github_repos_get_repo_rulesets",
|
|
2064
|
+
description: "Get all repository rulesets",
|
|
2065
|
+
inputSchema: zod_1.z.object({
|
|
2066
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2067
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2068
|
+
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).\""),
|
|
2069
|
+
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).\""),
|
|
2070
|
+
includes_parents: zod_1.z.boolean().optional().describe("Include rulesets configured at higher levels that apply to this repository"),
|
|
2071
|
+
targets: zod_1.z.string().optional().describe("A comma-separated list of rule targets to filter by. If provided, only rulesets that apply to the specified targets will be returned. For example, `branch,tag,push`.")
|
|
2072
|
+
}),
|
|
2073
|
+
handler: async (args) => {
|
|
2074
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/rulesets`, undefined, { per_page: args.per_page, page: args.page, includes_parents: args.includes_parents, targets: args.targets });
|
|
2075
|
+
},
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
name: "github_repos_create_repo_ruleset",
|
|
2079
|
+
description: "Create a repository ruleset",
|
|
2080
|
+
inputSchema: zod_1.z.object({
|
|
2081
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2082
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2083
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2084
|
+
}),
|
|
2085
|
+
handler: async (args) => {
|
|
2086
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/rulesets`, args.body, undefined);
|
|
2087
|
+
},
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
name: "github_repos_get_repo_rule_suites",
|
|
2091
|
+
description: "List repository rule suites",
|
|
2092
|
+
inputSchema: zod_1.z.object({
|
|
2093
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2094
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2095
|
+
ref: zod_1.z.string().optional().describe("The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned."),
|
|
2096
|
+
time_period: zod_1.z.enum(["hour", "day", "week", "month"]).optional().describe("The time period to filter by. For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for rule suites that occurred in the past 7 days (168 hours)."),
|
|
2097
|
+
actor_name: zod_1.z.string().optional().describe("The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned."),
|
|
2098
|
+
rule_suite_result: zod_1.z.enum(["pass", "fail", "bypass", "all"]).optional().describe("The rule suite results to filter on. When specified, only suites with this result will be returned."),
|
|
2099
|
+
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).\""),
|
|
2100
|
+
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).\"")
|
|
2101
|
+
}),
|
|
2102
|
+
handler: async (args) => {
|
|
2103
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/rulesets/rule-suites`, undefined, { ref: args.ref, time_period: args.time_period, actor_name: args.actor_name, rule_suite_result: args.rule_suite_result, per_page: args.per_page, page: args.page });
|
|
2104
|
+
},
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
name: "github_repos_get_repo_rule_suite",
|
|
2108
|
+
description: "Get a repository rule suite",
|
|
2109
|
+
inputSchema: zod_1.z.object({
|
|
2110
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2111
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2112
|
+
rule_suite_id: zod_1.z.string().describe("rule_suite_id")
|
|
2113
|
+
}),
|
|
2114
|
+
handler: async (args) => {
|
|
2115
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/rulesets/rule-suites/${args.rule_suite_id}`, undefined, undefined);
|
|
2116
|
+
},
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
name: "github_repos_get_repo_ruleset",
|
|
2120
|
+
description: "Get a repository ruleset",
|
|
2121
|
+
inputSchema: zod_1.z.object({
|
|
2122
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2123
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2124
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id"),
|
|
2125
|
+
includes_parents: zod_1.z.boolean().optional().describe("Include rulesets configured at higher levels that apply to this repository")
|
|
2126
|
+
}),
|
|
2127
|
+
handler: async (args) => {
|
|
2128
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/rulesets/${args.ruleset_id}`, undefined, { includes_parents: args.includes_parents });
|
|
2129
|
+
},
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
name: "github_repos_update_repo_ruleset",
|
|
2133
|
+
description: "Update a repository ruleset",
|
|
2134
|
+
inputSchema: zod_1.z.object({
|
|
2135
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2136
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2137
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id"),
|
|
2138
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2139
|
+
}),
|
|
2140
|
+
handler: async (args) => {
|
|
2141
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/rulesets/${args.ruleset_id}`, args.body, undefined);
|
|
2142
|
+
},
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
name: "github_repos_delete_repo_ruleset",
|
|
2146
|
+
description: "Delete a repository ruleset",
|
|
2147
|
+
inputSchema: zod_1.z.object({
|
|
2148
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2149
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2150
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id")
|
|
2151
|
+
}),
|
|
2152
|
+
handler: async (args) => {
|
|
2153
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/rulesets/${args.ruleset_id}`, undefined, undefined);
|
|
2154
|
+
},
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
name: "github_repos_get_repo_ruleset_history",
|
|
2158
|
+
description: "Get repository ruleset history",
|
|
2159
|
+
inputSchema: zod_1.z.object({
|
|
2160
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2161
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2162
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id"),
|
|
2163
|
+
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).\""),
|
|
2164
|
+
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).\"")
|
|
2165
|
+
}),
|
|
2166
|
+
handler: async (args) => {
|
|
2167
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/rulesets/${args.ruleset_id}/history`, undefined, { per_page: args.per_page, page: args.page });
|
|
2168
|
+
},
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
name: "github_repos_get_repo_ruleset_version",
|
|
2172
|
+
description: "Get repository ruleset version",
|
|
2173
|
+
inputSchema: zod_1.z.object({
|
|
2174
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2175
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2176
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id"),
|
|
2177
|
+
version_id: zod_1.z.string().describe("version_id")
|
|
2178
|
+
}),
|
|
2179
|
+
handler: async (args) => {
|
|
2180
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/rulesets/${args.ruleset_id}/history/${args.version_id}`, undefined, undefined);
|
|
2181
|
+
},
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
name: "github_repos_get_code_frequency_stats",
|
|
2185
|
+
description: "Get the weekly commit activity",
|
|
2186
|
+
inputSchema: zod_1.z.object({
|
|
2187
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2188
|
+
repo: zod_1.z.string().describe("repo")
|
|
2189
|
+
}),
|
|
2190
|
+
handler: async (args) => {
|
|
2191
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/stats/code_frequency`, undefined, undefined);
|
|
2192
|
+
},
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
name: "github_repos_get_commit_activity_stats",
|
|
2196
|
+
description: "Get the last year of commit activity",
|
|
2197
|
+
inputSchema: zod_1.z.object({
|
|
2198
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2199
|
+
repo: zod_1.z.string().describe("repo")
|
|
2200
|
+
}),
|
|
2201
|
+
handler: async (args) => {
|
|
2202
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/stats/commit_activity`, undefined, undefined);
|
|
2203
|
+
},
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
name: "github_repos_get_contributors_stats",
|
|
2207
|
+
description: "Get all contributor commit activity",
|
|
2208
|
+
inputSchema: zod_1.z.object({
|
|
2209
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2210
|
+
repo: zod_1.z.string().describe("repo")
|
|
2211
|
+
}),
|
|
2212
|
+
handler: async (args) => {
|
|
2213
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/stats/contributors`, undefined, undefined);
|
|
2214
|
+
},
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
name: "github_repos_get_participation_stats",
|
|
2218
|
+
description: "Get the weekly commit count",
|
|
2219
|
+
inputSchema: zod_1.z.object({
|
|
2220
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2221
|
+
repo: zod_1.z.string().describe("repo")
|
|
2222
|
+
}),
|
|
2223
|
+
handler: async (args) => {
|
|
2224
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/stats/participation`, undefined, undefined);
|
|
2225
|
+
},
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
name: "github_repos_get_punch_card_stats",
|
|
2229
|
+
description: "Get the hourly commit count for each day",
|
|
2230
|
+
inputSchema: zod_1.z.object({
|
|
2231
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2232
|
+
repo: zod_1.z.string().describe("repo")
|
|
2233
|
+
}),
|
|
2234
|
+
handler: async (args) => {
|
|
2235
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/stats/punch_card`, undefined, undefined);
|
|
2236
|
+
},
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
name: "github_repos_create_commit_status",
|
|
2240
|
+
description: "Create a commit status",
|
|
2241
|
+
inputSchema: zod_1.z.object({
|
|
2242
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2243
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2244
|
+
sha: zod_1.z.string().describe("sha"),
|
|
2245
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2246
|
+
}),
|
|
2247
|
+
handler: async (args) => {
|
|
2248
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/statuses/${args.sha}`, args.body, undefined);
|
|
2249
|
+
},
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
name: "github_repos_list_tags",
|
|
2253
|
+
description: "List repository tags",
|
|
2254
|
+
inputSchema: zod_1.z.object({
|
|
2255
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2256
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2257
|
+
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).\""),
|
|
2258
|
+
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).\"")
|
|
2259
|
+
}),
|
|
2260
|
+
handler: async (args) => {
|
|
2261
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/tags`, undefined, { per_page: args.per_page, page: args.page });
|
|
2262
|
+
},
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
name: "github_repos_download_tarball_archive",
|
|
2266
|
+
description: "Download a repository archive (tar)",
|
|
2267
|
+
inputSchema: zod_1.z.object({
|
|
2268
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2269
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2270
|
+
ref: zod_1.z.string().describe("ref")
|
|
2271
|
+
}),
|
|
2272
|
+
handler: async (args) => {
|
|
2273
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/tarball/${args.ref}`, undefined, undefined);
|
|
2274
|
+
},
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
name: "github_repos_list_teams",
|
|
2278
|
+
description: "List repository teams",
|
|
2279
|
+
inputSchema: zod_1.z.object({
|
|
2280
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2281
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2282
|
+
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).\""),
|
|
2283
|
+
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).\"")
|
|
2284
|
+
}),
|
|
2285
|
+
handler: async (args) => {
|
|
2286
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/teams`, undefined, { per_page: args.per_page, page: args.page });
|
|
2287
|
+
},
|
|
2288
|
+
},
|
|
2289
|
+
{
|
|
2290
|
+
name: "github_repos_get_all_topics",
|
|
2291
|
+
description: "Get all repository topics",
|
|
2292
|
+
inputSchema: zod_1.z.object({
|
|
2293
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2294
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2295
|
+
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).\""),
|
|
2296
|
+
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).\"")
|
|
2297
|
+
}),
|
|
2298
|
+
handler: async (args) => {
|
|
2299
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/topics`, undefined, { page: args.page, per_page: args.per_page });
|
|
2300
|
+
},
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
name: "github_repos_replace_all_topics",
|
|
2304
|
+
description: "Replace all repository topics",
|
|
2305
|
+
inputSchema: zod_1.z.object({
|
|
2306
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2307
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2308
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2309
|
+
}),
|
|
2310
|
+
handler: async (args) => {
|
|
2311
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/topics`, args.body, undefined);
|
|
2312
|
+
},
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
name: "github_repos_get_clones",
|
|
2316
|
+
description: "Get repository clones",
|
|
2317
|
+
inputSchema: zod_1.z.object({
|
|
2318
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2319
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2320
|
+
per: zod_1.z.enum(["day", "week"]).optional().describe("The time frame to display results for.")
|
|
2321
|
+
}),
|
|
2322
|
+
handler: async (args) => {
|
|
2323
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/traffic/clones`, undefined, { per: args.per });
|
|
2324
|
+
},
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
name: "github_repos_get_top_paths",
|
|
2328
|
+
description: "Get top referral paths",
|
|
2329
|
+
inputSchema: zod_1.z.object({
|
|
2330
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2331
|
+
repo: zod_1.z.string().describe("repo")
|
|
2332
|
+
}),
|
|
2333
|
+
handler: async (args) => {
|
|
2334
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/traffic/popular/paths`, undefined, undefined);
|
|
2335
|
+
},
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
name: "github_repos_get_top_referrers",
|
|
2339
|
+
description: "Get top referral sources",
|
|
2340
|
+
inputSchema: zod_1.z.object({
|
|
2341
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2342
|
+
repo: zod_1.z.string().describe("repo")
|
|
2343
|
+
}),
|
|
2344
|
+
handler: async (args) => {
|
|
2345
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/traffic/popular/referrers`, undefined, undefined);
|
|
2346
|
+
},
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
name: "github_repos_get_views",
|
|
2350
|
+
description: "Get page views",
|
|
2351
|
+
inputSchema: zod_1.z.object({
|
|
2352
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2353
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2354
|
+
per: zod_1.z.enum(["day", "week"]).optional().describe("The time frame to display results for.")
|
|
2355
|
+
}),
|
|
2356
|
+
handler: async (args) => {
|
|
2357
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/traffic/views`, undefined, { per: args.per });
|
|
2358
|
+
},
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
name: "github_repos_transfer",
|
|
2362
|
+
description: "Transfer a repository",
|
|
2363
|
+
inputSchema: zod_1.z.object({
|
|
2364
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2365
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2366
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2367
|
+
}),
|
|
2368
|
+
handler: async (args) => {
|
|
2369
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/transfer`, args.body, undefined);
|
|
2370
|
+
},
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
name: "github_repos_check_vulnerability_alerts",
|
|
2374
|
+
description: "Check if vulnerability alerts are enabled for a repository",
|
|
2375
|
+
inputSchema: zod_1.z.object({
|
|
2376
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2377
|
+
repo: zod_1.z.string().describe("repo")
|
|
2378
|
+
}),
|
|
2379
|
+
handler: async (args) => {
|
|
2380
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/vulnerability-alerts`, undefined, undefined);
|
|
2381
|
+
},
|
|
2382
|
+
},
|
|
2383
|
+
{
|
|
2384
|
+
name: "github_repos_enable_vulnerability_alerts",
|
|
2385
|
+
description: "Enable vulnerability alerts",
|
|
2386
|
+
inputSchema: zod_1.z.object({
|
|
2387
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2388
|
+
repo: zod_1.z.string().describe("repo")
|
|
2389
|
+
}),
|
|
2390
|
+
handler: async (args) => {
|
|
2391
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/vulnerability-alerts`, undefined, undefined);
|
|
2392
|
+
},
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
name: "github_repos_disable_vulnerability_alerts",
|
|
2396
|
+
description: "Disable vulnerability alerts",
|
|
2397
|
+
inputSchema: zod_1.z.object({
|
|
2398
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2399
|
+
repo: zod_1.z.string().describe("repo")
|
|
2400
|
+
}),
|
|
2401
|
+
handler: async (args) => {
|
|
2402
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/vulnerability-alerts`, undefined, undefined);
|
|
2403
|
+
},
|
|
2404
|
+
},
|
|
2405
|
+
{
|
|
2406
|
+
name: "github_repos_download_zipball_archive",
|
|
2407
|
+
description: "Download a repository archive (zip)",
|
|
2408
|
+
inputSchema: zod_1.z.object({
|
|
2409
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2410
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2411
|
+
ref: zod_1.z.string().describe("ref")
|
|
2412
|
+
}),
|
|
2413
|
+
handler: async (args) => {
|
|
2414
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/zipball/${args.ref}`, undefined, undefined);
|
|
2415
|
+
},
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
name: "github_repos_create_using_template",
|
|
2419
|
+
description: "Create a repository using a template",
|
|
2420
|
+
inputSchema: zod_1.z.object({
|
|
2421
|
+
template_owner: zod_1.z.string().describe("template_owner"),
|
|
2422
|
+
template_repo: zod_1.z.string().describe("template_repo"),
|
|
2423
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2424
|
+
}),
|
|
2425
|
+
handler: async (args) => {
|
|
2426
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.template_owner}/${args.template_repo}/generate`, args.body, undefined);
|
|
2427
|
+
},
|
|
2428
|
+
},
|
|
2429
|
+
{
|
|
2430
|
+
name: "github_repos_list_public",
|
|
2431
|
+
description: "List public repositories",
|
|
2432
|
+
inputSchema: zod_1.z.object({
|
|
2433
|
+
since: zod_1.z.number().optional().describe("A repository ID. Only return repositories with an ID greater than this ID.")
|
|
2434
|
+
}),
|
|
2435
|
+
handler: async (args) => {
|
|
2436
|
+
return (0, client_js_1.githubRequest)("GET", `/repositories`, undefined, { since: args.since });
|
|
2437
|
+
},
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
name: "github_repos_list_for_authenticated_user",
|
|
2441
|
+
description: "List repositories for the authenticated user",
|
|
2442
|
+
inputSchema: zod_1.z.object({
|
|
2443
|
+
visibility: zod_1.z.enum(["all", "public", "private"]).optional().describe("Limit results to repositories with the specified visibility."),
|
|
2444
|
+
affiliation: zod_1.z.string().optional().describe("Comma-separated list of values. Can include: * `owner`: Repositories that are owned by the authenticated user. * `collaborator`: Repositories that the user has been added to as a collaborator. * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on."),
|
|
2445
|
+
type: zod_1.z.enum(["all", "owner", "public", "private", "member"]).optional().describe("Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**."),
|
|
2446
|
+
sort: zod_1.z.enum(["created", "updated", "pushed", "full_name"]).optional().describe("The property to sort the results by."),
|
|
2447
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`."),
|
|
2448
|
+
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).\""),
|
|
2449
|
+
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).\""),
|
|
2450
|
+
since: zod_1.z.string().optional().describe("Only show repositories 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`."),
|
|
2451
|
+
before: zod_1.z.string().optional().describe("Only show repositories updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.")
|
|
2452
|
+
}),
|
|
2453
|
+
handler: async (args) => {
|
|
2454
|
+
return (0, client_js_1.githubRequest)("GET", `/user/repos`, undefined, { visibility: args.visibility, affiliation: args.affiliation, type: args.type, sort: args.sort, direction: args.direction, per_page: args.per_page, page: args.page, since: args.since, before: args.before });
|
|
2455
|
+
},
|
|
2456
|
+
},
|
|
2457
|
+
{
|
|
2458
|
+
name: "github_repos_create_for_authenticated_user",
|
|
2459
|
+
description: "Create a repository for the authenticated user",
|
|
2460
|
+
inputSchema: zod_1.z.object({
|
|
2461
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2462
|
+
}),
|
|
2463
|
+
handler: async (args) => {
|
|
2464
|
+
return (0, client_js_1.githubRequest)("POST", `/user/repos`, args.body, undefined);
|
|
2465
|
+
},
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
name: "github_repos_list_invitations_for_authenticated_user",
|
|
2469
|
+
description: "List repository invitations for the authenticated user",
|
|
2470
|
+
inputSchema: zod_1.z.object({
|
|
2471
|
+
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).\""),
|
|
2472
|
+
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).\"")
|
|
2473
|
+
}),
|
|
2474
|
+
handler: async (args) => {
|
|
2475
|
+
return (0, client_js_1.githubRequest)("GET", `/user/repository_invitations`, undefined, { per_page: args.per_page, page: args.page });
|
|
2476
|
+
},
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
name: "github_repos_accept_invitation_for_authenticated_user",
|
|
2480
|
+
description: "Accept a repository invitation",
|
|
2481
|
+
inputSchema: zod_1.z.object({
|
|
2482
|
+
invitation_id: zod_1.z.string().describe("invitation_id")
|
|
2483
|
+
}),
|
|
2484
|
+
handler: async (args) => {
|
|
2485
|
+
return (0, client_js_1.githubRequest)("PATCH", `/user/repository_invitations/${args.invitation_id}`, undefined, undefined);
|
|
2486
|
+
},
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
name: "github_repos_decline_invitation_for_authenticated_user",
|
|
2490
|
+
description: "Decline a repository invitation",
|
|
2491
|
+
inputSchema: zod_1.z.object({
|
|
2492
|
+
invitation_id: zod_1.z.string().describe("invitation_id")
|
|
2493
|
+
}),
|
|
2494
|
+
handler: async (args) => {
|
|
2495
|
+
return (0, client_js_1.githubRequest)("DELETE", `/user/repository_invitations/${args.invitation_id}`, undefined, undefined);
|
|
2496
|
+
},
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
name: "github_repos_list_for_user",
|
|
2500
|
+
description: "List repositories for a user",
|
|
2501
|
+
inputSchema: zod_1.z.object({
|
|
2502
|
+
username: zod_1.z.string().describe("username"),
|
|
2503
|
+
type: zod_1.z.enum(["all", "owner", "member"]).optional().describe("Limit results to repositories of the specified type."),
|
|
2504
|
+
sort: zod_1.z.enum(["created", "updated", "pushed", "full_name"]).optional().describe("The property to sort the results by."),
|
|
2505
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`."),
|
|
2506
|
+
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).\""),
|
|
2507
|
+
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).\"")
|
|
2508
|
+
}),
|
|
2509
|
+
handler: async (args) => {
|
|
2510
|
+
return (0, client_js_1.githubRequest)("GET", `/users/${args.username}/repos`, undefined, { type: args.type, sort: args.sort, direction: args.direction, per_page: args.per_page, page: args.page });
|
|
2511
|
+
},
|
|
2512
|
+
},
|
|
2513
|
+
];
|
|
2514
|
+
//# sourceMappingURL=repos.js.map
|