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,2202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.actionsTools = 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.actionsTools = [
|
|
8
|
+
{
|
|
9
|
+
name: "github_actions_get_actions_cache_retention_limit_for_enterprise",
|
|
10
|
+
description: "Get GitHub Actions cache retention limit for an enterprise",
|
|
11
|
+
inputSchema: zod_1.z.object({
|
|
12
|
+
enterprise: zod_1.z.string().describe("enterprise")
|
|
13
|
+
}),
|
|
14
|
+
handler: async (args) => {
|
|
15
|
+
return (0, client_js_1.githubRequest)("GET", `/enterprises/${args.enterprise}/actions/cache/retention-limit`, undefined, undefined);
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "github_actions_set_actions_cache_retention_limit_for_enterprise",
|
|
20
|
+
description: "Set GitHub Actions cache retention limit for an enterprise",
|
|
21
|
+
inputSchema: zod_1.z.object({
|
|
22
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
23
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
24
|
+
}),
|
|
25
|
+
handler: async (args) => {
|
|
26
|
+
return (0, client_js_1.githubRequest)("PUT", `/enterprises/${args.enterprise}/actions/cache/retention-limit`, args.body, undefined);
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "github_actions_get_actions_cache_storage_limit_for_enterprise",
|
|
31
|
+
description: "Get GitHub Actions cache storage limit for an enterprise",
|
|
32
|
+
inputSchema: zod_1.z.object({
|
|
33
|
+
enterprise: zod_1.z.string().describe("enterprise")
|
|
34
|
+
}),
|
|
35
|
+
handler: async (args) => {
|
|
36
|
+
return (0, client_js_1.githubRequest)("GET", `/enterprises/${args.enterprise}/actions/cache/storage-limit`, undefined, undefined);
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "github_actions_set_actions_cache_storage_limit_for_enterprise",
|
|
41
|
+
description: "Set GitHub Actions cache storage limit for an enterprise",
|
|
42
|
+
inputSchema: zod_1.z.object({
|
|
43
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
44
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
45
|
+
}),
|
|
46
|
+
handler: async (args) => {
|
|
47
|
+
return (0, client_js_1.githubRequest)("PUT", `/enterprises/${args.enterprise}/actions/cache/storage-limit`, args.body, undefined);
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "github_actions_get_actions_cache_retention_limit_for_organization",
|
|
52
|
+
description: "Get GitHub Actions cache retention limit for an organization",
|
|
53
|
+
inputSchema: zod_1.z.object({
|
|
54
|
+
org: zod_1.z.string().describe("org")
|
|
55
|
+
}),
|
|
56
|
+
handler: async (args) => {
|
|
57
|
+
return (0, client_js_1.githubRequest)("GET", `/organizations/${args.org}/actions/cache/retention-limit`, undefined, undefined);
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "github_actions_set_actions_cache_retention_limit_for_organization",
|
|
62
|
+
description: "Set GitHub Actions cache retention limit for an organization",
|
|
63
|
+
inputSchema: zod_1.z.object({
|
|
64
|
+
org: zod_1.z.string().describe("org"),
|
|
65
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
66
|
+
}),
|
|
67
|
+
handler: async (args) => {
|
|
68
|
+
return (0, client_js_1.githubRequest)("PUT", `/organizations/${args.org}/actions/cache/retention-limit`, args.body, undefined);
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "github_actions_get_actions_cache_storage_limit_for_organization",
|
|
73
|
+
description: "Get GitHub Actions cache storage limit for an organization",
|
|
74
|
+
inputSchema: zod_1.z.object({
|
|
75
|
+
org: zod_1.z.string().describe("org")
|
|
76
|
+
}),
|
|
77
|
+
handler: async (args) => {
|
|
78
|
+
return (0, client_js_1.githubRequest)("GET", `/organizations/${args.org}/actions/cache/storage-limit`, undefined, undefined);
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "github_actions_set_actions_cache_storage_limit_for_organization",
|
|
83
|
+
description: "Set GitHub Actions cache storage limit for an organization",
|
|
84
|
+
inputSchema: zod_1.z.object({
|
|
85
|
+
org: zod_1.z.string().describe("org"),
|
|
86
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
87
|
+
}),
|
|
88
|
+
handler: async (args) => {
|
|
89
|
+
return (0, client_js_1.githubRequest)("PUT", `/organizations/${args.org}/actions/cache/storage-limit`, args.body, undefined);
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "github_actions_get_actions_cache_usage_for_org",
|
|
94
|
+
description: "Get GitHub Actions cache usage for an organization",
|
|
95
|
+
inputSchema: zod_1.z.object({
|
|
96
|
+
org: zod_1.z.string().describe("org")
|
|
97
|
+
}),
|
|
98
|
+
handler: async (args) => {
|
|
99
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/cache/usage`, undefined, undefined);
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "github_actions_get_actions_cache_usage_by_repo_for_org",
|
|
104
|
+
description: "List repositories with GitHub Actions cache usage for an organization",
|
|
105
|
+
inputSchema: zod_1.z.object({
|
|
106
|
+
org: zod_1.z.string().describe("org"),
|
|
107
|
+
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).\""),
|
|
108
|
+
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).\"")
|
|
109
|
+
}),
|
|
110
|
+
handler: async (args) => {
|
|
111
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/cache/usage-by-repository`, undefined, { per_page: args.per_page, page: args.page });
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "github_actions_list_hosted_runners_for_org",
|
|
116
|
+
description: "List GitHub-hosted runners for an organization",
|
|
117
|
+
inputSchema: zod_1.z.object({
|
|
118
|
+
org: zod_1.z.string().describe("org"),
|
|
119
|
+
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).\""),
|
|
120
|
+
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).\"")
|
|
121
|
+
}),
|
|
122
|
+
handler: async (args) => {
|
|
123
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners`, undefined, { per_page: args.per_page, page: args.page });
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: "github_actions_create_hosted_runner_for_org",
|
|
128
|
+
description: "Create a GitHub-hosted runner for an organization",
|
|
129
|
+
inputSchema: zod_1.z.object({
|
|
130
|
+
org: zod_1.z.string().describe("org"),
|
|
131
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
132
|
+
}),
|
|
133
|
+
handler: async (args) => {
|
|
134
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/actions/hosted-runners`, args.body, undefined);
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: "github_actions_list_custom_images_for_org",
|
|
139
|
+
description: "List custom images for an organization",
|
|
140
|
+
inputSchema: zod_1.z.object({
|
|
141
|
+
org: zod_1.z.string().describe("org")
|
|
142
|
+
}),
|
|
143
|
+
handler: async (args) => {
|
|
144
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/images/custom`, undefined, undefined);
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "github_actions_get_custom_image_for_org",
|
|
149
|
+
description: "Get a custom image definition for GitHub Actions Hosted Runners",
|
|
150
|
+
inputSchema: zod_1.z.object({
|
|
151
|
+
org: zod_1.z.string().describe("org"),
|
|
152
|
+
image_definition_id: zod_1.z.string().describe("image_definition_id")
|
|
153
|
+
}),
|
|
154
|
+
handler: async (args) => {
|
|
155
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/images/custom/${args.image_definition_id}`, undefined, undefined);
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "github_actions_delete_custom_image_from_org",
|
|
160
|
+
description: "Delete a custom image from the organization",
|
|
161
|
+
inputSchema: zod_1.z.object({
|
|
162
|
+
org: zod_1.z.string().describe("org"),
|
|
163
|
+
image_definition_id: zod_1.z.string().describe("image_definition_id")
|
|
164
|
+
}),
|
|
165
|
+
handler: async (args) => {
|
|
166
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/hosted-runners/images/custom/${args.image_definition_id}`, undefined, undefined);
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "github_actions_list_custom_image_versions_for_org",
|
|
171
|
+
description: "List image versions of a custom image for an organization",
|
|
172
|
+
inputSchema: zod_1.z.object({
|
|
173
|
+
org: zod_1.z.string().describe("org"),
|
|
174
|
+
image_definition_id: zod_1.z.string().describe("image_definition_id")
|
|
175
|
+
}),
|
|
176
|
+
handler: async (args) => {
|
|
177
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/images/custom/${args.image_definition_id}/versions`, undefined, undefined);
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "github_actions_get_custom_image_version_for_org",
|
|
182
|
+
description: "Get an image version of a custom image for GitHub Actions Hosted Runners",
|
|
183
|
+
inputSchema: zod_1.z.object({
|
|
184
|
+
org: zod_1.z.string().describe("org"),
|
|
185
|
+
image_definition_id: zod_1.z.string().describe("image_definition_id"),
|
|
186
|
+
version: zod_1.z.string().describe("version")
|
|
187
|
+
}),
|
|
188
|
+
handler: async (args) => {
|
|
189
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/images/custom/${args.image_definition_id}/versions/${args.version}`, undefined, undefined);
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: "github_actions_delete_custom_image_version_from_org",
|
|
194
|
+
description: "Delete an image version of custom image from the organization",
|
|
195
|
+
inputSchema: zod_1.z.object({
|
|
196
|
+
org: zod_1.z.string().describe("org"),
|
|
197
|
+
image_definition_id: zod_1.z.string().describe("image_definition_id"),
|
|
198
|
+
version: zod_1.z.string().describe("version")
|
|
199
|
+
}),
|
|
200
|
+
handler: async (args) => {
|
|
201
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/hosted-runners/images/custom/${args.image_definition_id}/versions/${args.version}`, undefined, undefined);
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "github_actions_get_hosted_runners_github_owned_images_for_org",
|
|
206
|
+
description: "Get GitHub-owned images for GitHub-hosted runners in an organization",
|
|
207
|
+
inputSchema: zod_1.z.object({
|
|
208
|
+
org: zod_1.z.string().describe("org")
|
|
209
|
+
}),
|
|
210
|
+
handler: async (args) => {
|
|
211
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/images/github-owned`, undefined, undefined);
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: "github_actions_get_hosted_runners_partner_images_for_org",
|
|
216
|
+
description: "Get partner images for GitHub-hosted runners in an organization",
|
|
217
|
+
inputSchema: zod_1.z.object({
|
|
218
|
+
org: zod_1.z.string().describe("org")
|
|
219
|
+
}),
|
|
220
|
+
handler: async (args) => {
|
|
221
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/images/partner`, undefined, undefined);
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "github_actions_get_hosted_runners_limits_for_org",
|
|
226
|
+
description: "Get limits on GitHub-hosted runners for an organization",
|
|
227
|
+
inputSchema: zod_1.z.object({
|
|
228
|
+
org: zod_1.z.string().describe("org")
|
|
229
|
+
}),
|
|
230
|
+
handler: async (args) => {
|
|
231
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/limits`, undefined, undefined);
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: "github_actions_get_hosted_runners_machine_specs_for_org",
|
|
236
|
+
description: "Get GitHub-hosted runners machine specs for an organization",
|
|
237
|
+
inputSchema: zod_1.z.object({
|
|
238
|
+
org: zod_1.z.string().describe("org")
|
|
239
|
+
}),
|
|
240
|
+
handler: async (args) => {
|
|
241
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/machine-sizes`, undefined, undefined);
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: "github_actions_get_hosted_runners_platforms_for_org",
|
|
246
|
+
description: "Get platforms for GitHub-hosted runners in an organization",
|
|
247
|
+
inputSchema: zod_1.z.object({
|
|
248
|
+
org: zod_1.z.string().describe("org")
|
|
249
|
+
}),
|
|
250
|
+
handler: async (args) => {
|
|
251
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/platforms`, undefined, undefined);
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
name: "github_actions_get_hosted_runner_for_org",
|
|
256
|
+
description: "Get a GitHub-hosted runner for an organization",
|
|
257
|
+
inputSchema: zod_1.z.object({
|
|
258
|
+
org: zod_1.z.string().describe("org"),
|
|
259
|
+
hosted_runner_id: zod_1.z.string().describe("hosted_runner_id")
|
|
260
|
+
}),
|
|
261
|
+
handler: async (args) => {
|
|
262
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/hosted-runners/${args.hosted_runner_id}`, undefined, undefined);
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: "github_actions_update_hosted_runner_for_org",
|
|
267
|
+
description: "Update a GitHub-hosted runner for an organization",
|
|
268
|
+
inputSchema: zod_1.z.object({
|
|
269
|
+
org: zod_1.z.string().describe("org"),
|
|
270
|
+
hosted_runner_id: zod_1.z.string().describe("hosted_runner_id"),
|
|
271
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
272
|
+
}),
|
|
273
|
+
handler: async (args) => {
|
|
274
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}/actions/hosted-runners/${args.hosted_runner_id}`, args.body, undefined);
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: "github_actions_delete_hosted_runner_for_org",
|
|
279
|
+
description: "Delete a GitHub-hosted runner for an organization",
|
|
280
|
+
inputSchema: zod_1.z.object({
|
|
281
|
+
org: zod_1.z.string().describe("org"),
|
|
282
|
+
hosted_runner_id: zod_1.z.string().describe("hosted_runner_id")
|
|
283
|
+
}),
|
|
284
|
+
handler: async (args) => {
|
|
285
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/hosted-runners/${args.hosted_runner_id}`, undefined, undefined);
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: "github_actions_get_github_actions_permissions_organization",
|
|
290
|
+
description: "Get GitHub Actions permissions for an organization",
|
|
291
|
+
inputSchema: zod_1.z.object({
|
|
292
|
+
org: zod_1.z.string().describe("org")
|
|
293
|
+
}),
|
|
294
|
+
handler: async (args) => {
|
|
295
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/permissions`, undefined, undefined);
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: "github_actions_set_github_actions_permissions_organization",
|
|
300
|
+
description: "Set GitHub Actions permissions for an organization",
|
|
301
|
+
inputSchema: zod_1.z.object({
|
|
302
|
+
org: zod_1.z.string().describe("org"),
|
|
303
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
304
|
+
}),
|
|
305
|
+
handler: async (args) => {
|
|
306
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions`, args.body, undefined);
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
name: "github_actions_get_artifact_and_log_retention_settings_organization",
|
|
311
|
+
description: "Get artifact and log retention settings for an organization",
|
|
312
|
+
inputSchema: zod_1.z.object({
|
|
313
|
+
org: zod_1.z.string().describe("org")
|
|
314
|
+
}),
|
|
315
|
+
handler: async (args) => {
|
|
316
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/permissions/artifact-and-log-retention`, undefined, undefined);
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: "github_actions_set_artifact_and_log_retention_settings_organization",
|
|
321
|
+
description: "Set artifact and log retention settings for an organization",
|
|
322
|
+
inputSchema: zod_1.z.object({
|
|
323
|
+
org: zod_1.z.string().describe("org"),
|
|
324
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
325
|
+
}),
|
|
326
|
+
handler: async (args) => {
|
|
327
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/artifact-and-log-retention`, args.body, undefined);
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: "github_actions_get_fork_pr_contributor_approval_permissions_organization",
|
|
332
|
+
description: "Get fork PR contributor approval permissions for an organization",
|
|
333
|
+
inputSchema: zod_1.z.object({
|
|
334
|
+
org: zod_1.z.string().describe("org")
|
|
335
|
+
}),
|
|
336
|
+
handler: async (args) => {
|
|
337
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/permissions/fork-pr-contributor-approval`, undefined, undefined);
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: "github_actions_set_fork_pr_contributor_approval_permissions_organization",
|
|
342
|
+
description: "Set fork PR contributor approval permissions for an organization",
|
|
343
|
+
inputSchema: zod_1.z.object({
|
|
344
|
+
org: zod_1.z.string().describe("org"),
|
|
345
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
346
|
+
}),
|
|
347
|
+
handler: async (args) => {
|
|
348
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/fork-pr-contributor-approval`, args.body, undefined);
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
name: "github_actions_get_private_repo_fork_pr_workflows_settings_organization",
|
|
353
|
+
description: "Get private repo fork PR workflow settings for an organization",
|
|
354
|
+
inputSchema: zod_1.z.object({
|
|
355
|
+
org: zod_1.z.string().describe("org")
|
|
356
|
+
}),
|
|
357
|
+
handler: async (args) => {
|
|
358
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/permissions/fork-pr-workflows-private-repos`, undefined, undefined);
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
name: "github_actions_set_private_repo_fork_pr_workflows_settings_organization",
|
|
363
|
+
description: "Set private repo fork PR workflow settings for an organization",
|
|
364
|
+
inputSchema: zod_1.z.object({
|
|
365
|
+
org: zod_1.z.string().describe("org"),
|
|
366
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
367
|
+
}),
|
|
368
|
+
handler: async (args) => {
|
|
369
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/fork-pr-workflows-private-repos`, args.body, undefined);
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: "github_actions_list_selected_repositories_enabled_github_actions_organization",
|
|
374
|
+
description: "List selected repositories enabled for GitHub Actions in an organization",
|
|
375
|
+
inputSchema: zod_1.z.object({
|
|
376
|
+
org: zod_1.z.string().describe("org"),
|
|
377
|
+
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).\""),
|
|
378
|
+
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).\"")
|
|
379
|
+
}),
|
|
380
|
+
handler: async (args) => {
|
|
381
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/permissions/repositories`, undefined, { per_page: args.per_page, page: args.page });
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
name: "github_actions_set_selected_repositories_enabled_github_actions_organization",
|
|
386
|
+
description: "Set selected repositories enabled for GitHub Actions in an organization",
|
|
387
|
+
inputSchema: zod_1.z.object({
|
|
388
|
+
org: zod_1.z.string().describe("org"),
|
|
389
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
390
|
+
}),
|
|
391
|
+
handler: async (args) => {
|
|
392
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/repositories`, args.body, undefined);
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
name: "github_actions_enable_selected_repository_github_actions_organization",
|
|
397
|
+
description: "Enable a selected repository for GitHub Actions in an organization",
|
|
398
|
+
inputSchema: zod_1.z.object({
|
|
399
|
+
org: zod_1.z.string().describe("org"),
|
|
400
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
401
|
+
}),
|
|
402
|
+
handler: async (args) => {
|
|
403
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/repositories/${args.repository_id}`, undefined, undefined);
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: "github_actions_disable_selected_repository_github_actions_organization",
|
|
408
|
+
description: "Disable a selected repository for GitHub Actions in an organization",
|
|
409
|
+
inputSchema: zod_1.z.object({
|
|
410
|
+
org: zod_1.z.string().describe("org"),
|
|
411
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
412
|
+
}),
|
|
413
|
+
handler: async (args) => {
|
|
414
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/permissions/repositories/${args.repository_id}`, undefined, undefined);
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: "github_actions_get_allowed_actions_organization",
|
|
419
|
+
description: "Get allowed actions and reusable workflows for an organization",
|
|
420
|
+
inputSchema: zod_1.z.object({
|
|
421
|
+
org: zod_1.z.string().describe("org")
|
|
422
|
+
}),
|
|
423
|
+
handler: async (args) => {
|
|
424
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/permissions/selected-actions`, undefined, undefined);
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: "github_actions_set_allowed_actions_organization",
|
|
429
|
+
description: "Set allowed actions and reusable workflows for an organization",
|
|
430
|
+
inputSchema: zod_1.z.object({
|
|
431
|
+
org: zod_1.z.string().describe("org"),
|
|
432
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
433
|
+
}),
|
|
434
|
+
handler: async (args) => {
|
|
435
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/selected-actions`, args.body, undefined);
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
name: "github_actions_get_self_hosted_runners_permissions_organization",
|
|
440
|
+
description: "Get self-hosted runners settings for an organization",
|
|
441
|
+
inputSchema: zod_1.z.object({
|
|
442
|
+
org: zod_1.z.string().describe("org")
|
|
443
|
+
}),
|
|
444
|
+
handler: async (args) => {
|
|
445
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/permissions/self-hosted-runners`, undefined, undefined);
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
name: "github_actions_set_self_hosted_runners_permissions_organization",
|
|
450
|
+
description: "Set self-hosted runners settings for an organization",
|
|
451
|
+
inputSchema: zod_1.z.object({
|
|
452
|
+
org: zod_1.z.string().describe("org"),
|
|
453
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
454
|
+
}),
|
|
455
|
+
handler: async (args) => {
|
|
456
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/self-hosted-runners`, args.body, undefined);
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
name: "github_actions_list_selected_repositories_self_hosted_runners_organization",
|
|
461
|
+
description: "List repositories allowed to use self-hosted runners in an organization",
|
|
462
|
+
inputSchema: zod_1.z.object({
|
|
463
|
+
org: zod_1.z.string().describe("org"),
|
|
464
|
+
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).\""),
|
|
465
|
+
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).\"")
|
|
466
|
+
}),
|
|
467
|
+
handler: async (args) => {
|
|
468
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/permissions/self-hosted-runners/repositories`, undefined, { per_page: args.per_page, page: args.page });
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
name: "github_actions_set_selected_repositories_self_hosted_runners_organization",
|
|
473
|
+
description: "Set repositories allowed to use self-hosted runners in an organization",
|
|
474
|
+
inputSchema: zod_1.z.object({
|
|
475
|
+
org: zod_1.z.string().describe("org"),
|
|
476
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
477
|
+
}),
|
|
478
|
+
handler: async (args) => {
|
|
479
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/self-hosted-runners/repositories`, args.body, undefined);
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: "github_actions_enable_selected_repository_self_hosted_runners_organization",
|
|
484
|
+
description: "Add a repository to the list of repositories allowed to use self-hosted runners in an organization",
|
|
485
|
+
inputSchema: zod_1.z.object({
|
|
486
|
+
org: zod_1.z.string().describe("org"),
|
|
487
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
488
|
+
}),
|
|
489
|
+
handler: async (args) => {
|
|
490
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/self-hosted-runners/repositories/${args.repository_id}`, undefined, undefined);
|
|
491
|
+
},
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
name: "github_actions_disable_selected_repository_self_hosted_runners_organization",
|
|
495
|
+
description: "Remove a repository from the list of repositories allowed to use self-hosted runners in an organization",
|
|
496
|
+
inputSchema: zod_1.z.object({
|
|
497
|
+
org: zod_1.z.string().describe("org"),
|
|
498
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
499
|
+
}),
|
|
500
|
+
handler: async (args) => {
|
|
501
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/permissions/self-hosted-runners/repositories/${args.repository_id}`, undefined, undefined);
|
|
502
|
+
},
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
name: "github_actions_get_github_actions_default_workflow_permissions_organization",
|
|
506
|
+
description: "Get default workflow permissions for an organization",
|
|
507
|
+
inputSchema: zod_1.z.object({
|
|
508
|
+
org: zod_1.z.string().describe("org")
|
|
509
|
+
}),
|
|
510
|
+
handler: async (args) => {
|
|
511
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/permissions/workflow`, undefined, undefined);
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
name: "github_actions_set_github_actions_default_workflow_permissions_organization",
|
|
516
|
+
description: "Set default workflow permissions for an organization",
|
|
517
|
+
inputSchema: zod_1.z.object({
|
|
518
|
+
org: zod_1.z.string().describe("org"),
|
|
519
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
520
|
+
}),
|
|
521
|
+
handler: async (args) => {
|
|
522
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/permissions/workflow`, args.body, undefined);
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: "github_actions_list_self_hosted_runner_groups_for_org",
|
|
527
|
+
description: "List self-hosted runner groups for an organization",
|
|
528
|
+
inputSchema: zod_1.z.object({
|
|
529
|
+
org: zod_1.z.string().describe("org"),
|
|
530
|
+
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).\""),
|
|
531
|
+
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).\""),
|
|
532
|
+
visible_to_repository: zod_1.z.string().optional().describe("Only return runner groups that are allowed to be used by this repository.")
|
|
533
|
+
}),
|
|
534
|
+
handler: async (args) => {
|
|
535
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/runner-groups`, undefined, { per_page: args.per_page, page: args.page, visible_to_repository: args.visible_to_repository });
|
|
536
|
+
},
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
name: "github_actions_create_self_hosted_runner_group_for_org",
|
|
540
|
+
description: "Create a self-hosted runner group for an organization",
|
|
541
|
+
inputSchema: zod_1.z.object({
|
|
542
|
+
org: zod_1.z.string().describe("org"),
|
|
543
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
544
|
+
}),
|
|
545
|
+
handler: async (args) => {
|
|
546
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/actions/runner-groups`, args.body, undefined);
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
name: "github_actions_get_self_hosted_runner_group_for_org",
|
|
551
|
+
description: "Get a self-hosted runner group for an organization",
|
|
552
|
+
inputSchema: zod_1.z.object({
|
|
553
|
+
org: zod_1.z.string().describe("org"),
|
|
554
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id")
|
|
555
|
+
}),
|
|
556
|
+
handler: async (args) => {
|
|
557
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}`, undefined, undefined);
|
|
558
|
+
},
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
name: "github_actions_update_self_hosted_runner_group_for_org",
|
|
562
|
+
description: "Update a self-hosted runner group for an organization",
|
|
563
|
+
inputSchema: zod_1.z.object({
|
|
564
|
+
org: zod_1.z.string().describe("org"),
|
|
565
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
566
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
567
|
+
}),
|
|
568
|
+
handler: async (args) => {
|
|
569
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}`, args.body, undefined);
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
name: "github_actions_delete_self_hosted_runner_group_from_org",
|
|
574
|
+
description: "Delete a self-hosted runner group from an organization",
|
|
575
|
+
inputSchema: zod_1.z.object({
|
|
576
|
+
org: zod_1.z.string().describe("org"),
|
|
577
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id")
|
|
578
|
+
}),
|
|
579
|
+
handler: async (args) => {
|
|
580
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}`, undefined, undefined);
|
|
581
|
+
},
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
name: "github_actions_list_github_hosted_runners_in_group_for_org",
|
|
585
|
+
description: "List GitHub-hosted runners in a group for an organization",
|
|
586
|
+
inputSchema: zod_1.z.object({
|
|
587
|
+
org: zod_1.z.string().describe("org"),
|
|
588
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
589
|
+
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).\""),
|
|
590
|
+
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).\"")
|
|
591
|
+
}),
|
|
592
|
+
handler: async (args) => {
|
|
593
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}/hosted-runners`, undefined, { per_page: args.per_page, page: args.page });
|
|
594
|
+
},
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
name: "github_actions_list_repo_access_to_self_hosted_runner_group_in_org",
|
|
598
|
+
description: "List repository access to a self-hosted runner group in an organization",
|
|
599
|
+
inputSchema: zod_1.z.object({
|
|
600
|
+
org: zod_1.z.string().describe("org"),
|
|
601
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
602
|
+
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).\""),
|
|
603
|
+
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).\"")
|
|
604
|
+
}),
|
|
605
|
+
handler: async (args) => {
|
|
606
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}/repositories`, undefined, { page: args.page, per_page: args.per_page });
|
|
607
|
+
},
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
name: "github_actions_set_repo_access_to_self_hosted_runner_group_in_org",
|
|
611
|
+
description: "Set repository access for a self-hosted runner group in an organization",
|
|
612
|
+
inputSchema: zod_1.z.object({
|
|
613
|
+
org: zod_1.z.string().describe("org"),
|
|
614
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
615
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
616
|
+
}),
|
|
617
|
+
handler: async (args) => {
|
|
618
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}/repositories`, args.body, undefined);
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
name: "github_actions_add_repo_access_to_self_hosted_runner_group_in_org",
|
|
623
|
+
description: "Add repository access to a self-hosted runner group in an organization",
|
|
624
|
+
inputSchema: zod_1.z.object({
|
|
625
|
+
org: zod_1.z.string().describe("org"),
|
|
626
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
627
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
628
|
+
}),
|
|
629
|
+
handler: async (args) => {
|
|
630
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}/repositories/${args.repository_id}`, undefined, undefined);
|
|
631
|
+
},
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
name: "github_actions_remove_repo_access_to_self_hosted_runner_group_in_org",
|
|
635
|
+
description: "Remove repository access to a self-hosted runner group in an organization",
|
|
636
|
+
inputSchema: zod_1.z.object({
|
|
637
|
+
org: zod_1.z.string().describe("org"),
|
|
638
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
639
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
640
|
+
}),
|
|
641
|
+
handler: async (args) => {
|
|
642
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}/repositories/${args.repository_id}`, undefined, undefined);
|
|
643
|
+
},
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
name: "github_actions_list_self_hosted_runners_in_group_for_org",
|
|
647
|
+
description: "List self-hosted runners in a group for an organization",
|
|
648
|
+
inputSchema: zod_1.z.object({
|
|
649
|
+
org: zod_1.z.string().describe("org"),
|
|
650
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
651
|
+
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).\""),
|
|
652
|
+
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).\"")
|
|
653
|
+
}),
|
|
654
|
+
handler: async (args) => {
|
|
655
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}/runners`, undefined, { per_page: args.per_page, page: args.page });
|
|
656
|
+
},
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
name: "github_actions_set_self_hosted_runners_in_group_for_org",
|
|
660
|
+
description: "Set self-hosted runners in a group for an organization",
|
|
661
|
+
inputSchema: zod_1.z.object({
|
|
662
|
+
org: zod_1.z.string().describe("org"),
|
|
663
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
664
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
665
|
+
}),
|
|
666
|
+
handler: async (args) => {
|
|
667
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}/runners`, args.body, undefined);
|
|
668
|
+
},
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
name: "github_actions_add_self_hosted_runner_to_group_for_org",
|
|
672
|
+
description: "Add a self-hosted runner to a group for an organization",
|
|
673
|
+
inputSchema: zod_1.z.object({
|
|
674
|
+
org: zod_1.z.string().describe("org"),
|
|
675
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
676
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
677
|
+
}),
|
|
678
|
+
handler: async (args) => {
|
|
679
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}/runners/${args.runner_id}`, undefined, undefined);
|
|
680
|
+
},
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
name: "github_actions_remove_self_hosted_runner_from_group_for_org",
|
|
684
|
+
description: "Remove a self-hosted runner from a group for an organization",
|
|
685
|
+
inputSchema: zod_1.z.object({
|
|
686
|
+
org: zod_1.z.string().describe("org"),
|
|
687
|
+
runner_group_id: zod_1.z.string().describe("runner_group_id"),
|
|
688
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
689
|
+
}),
|
|
690
|
+
handler: async (args) => {
|
|
691
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/runner-groups/${args.runner_group_id}/runners/${args.runner_id}`, undefined, undefined);
|
|
692
|
+
},
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
name: "github_actions_list_self_hosted_runners_for_org",
|
|
696
|
+
description: "List self-hosted runners for an organization",
|
|
697
|
+
inputSchema: zod_1.z.object({
|
|
698
|
+
org: zod_1.z.string().describe("org"),
|
|
699
|
+
name: zod_1.z.string().optional().describe("The name of a self-hosted runner."),
|
|
700
|
+
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).\""),
|
|
701
|
+
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).\"")
|
|
702
|
+
}),
|
|
703
|
+
handler: async (args) => {
|
|
704
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/runners`, undefined, { name: args.name, per_page: args.per_page, page: args.page });
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
name: "github_actions_list_runner_applications_for_org",
|
|
709
|
+
description: "List runner applications for an organization",
|
|
710
|
+
inputSchema: zod_1.z.object({
|
|
711
|
+
org: zod_1.z.string().describe("org")
|
|
712
|
+
}),
|
|
713
|
+
handler: async (args) => {
|
|
714
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/runners/downloads`, undefined, undefined);
|
|
715
|
+
},
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
name: "github_actions_generate_runner_jitconfig_for_org",
|
|
719
|
+
description: "Create configuration for a just-in-time runner for an organization",
|
|
720
|
+
inputSchema: zod_1.z.object({
|
|
721
|
+
org: zod_1.z.string().describe("org"),
|
|
722
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
723
|
+
}),
|
|
724
|
+
handler: async (args) => {
|
|
725
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/actions/runners/generate-jitconfig`, args.body, undefined);
|
|
726
|
+
},
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
name: "github_actions_create_registration_token_for_org",
|
|
730
|
+
description: "Create a registration token for an organization",
|
|
731
|
+
inputSchema: zod_1.z.object({
|
|
732
|
+
org: zod_1.z.string().describe("org")
|
|
733
|
+
}),
|
|
734
|
+
handler: async (args) => {
|
|
735
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/actions/runners/registration-token`, undefined, undefined);
|
|
736
|
+
},
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
name: "github_actions_create_remove_token_for_org",
|
|
740
|
+
description: "Create a remove token for an organization",
|
|
741
|
+
inputSchema: zod_1.z.object({
|
|
742
|
+
org: zod_1.z.string().describe("org")
|
|
743
|
+
}),
|
|
744
|
+
handler: async (args) => {
|
|
745
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/actions/runners/remove-token`, undefined, undefined);
|
|
746
|
+
},
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
name: "github_actions_get_self_hosted_runner_for_org",
|
|
750
|
+
description: "Get a self-hosted runner for an organization",
|
|
751
|
+
inputSchema: zod_1.z.object({
|
|
752
|
+
org: zod_1.z.string().describe("org"),
|
|
753
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
754
|
+
}),
|
|
755
|
+
handler: async (args) => {
|
|
756
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/runners/${args.runner_id}`, undefined, undefined);
|
|
757
|
+
},
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
name: "github_actions_delete_self_hosted_runner_from_org",
|
|
761
|
+
description: "Delete a self-hosted runner from an organization",
|
|
762
|
+
inputSchema: zod_1.z.object({
|
|
763
|
+
org: zod_1.z.string().describe("org"),
|
|
764
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
765
|
+
}),
|
|
766
|
+
handler: async (args) => {
|
|
767
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/runners/${args.runner_id}`, undefined, undefined);
|
|
768
|
+
},
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
name: "github_actions_list_labels_for_self_hosted_runner_for_org",
|
|
772
|
+
description: "List labels for a self-hosted runner for an organization",
|
|
773
|
+
inputSchema: zod_1.z.object({
|
|
774
|
+
org: zod_1.z.string().describe("org"),
|
|
775
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
776
|
+
}),
|
|
777
|
+
handler: async (args) => {
|
|
778
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/runners/${args.runner_id}/labels`, undefined, undefined);
|
|
779
|
+
},
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
name: "github_actions_add_custom_labels_to_self_hosted_runner_for_org",
|
|
783
|
+
description: "Add custom labels to a self-hosted runner for an organization",
|
|
784
|
+
inputSchema: zod_1.z.object({
|
|
785
|
+
org: zod_1.z.string().describe("org"),
|
|
786
|
+
runner_id: zod_1.z.string().describe("runner_id"),
|
|
787
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
788
|
+
}),
|
|
789
|
+
handler: async (args) => {
|
|
790
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/actions/runners/${args.runner_id}/labels`, args.body, undefined);
|
|
791
|
+
},
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
name: "github_actions_set_custom_labels_for_self_hosted_runner_for_org",
|
|
795
|
+
description: "Set custom labels for a self-hosted runner for an organization",
|
|
796
|
+
inputSchema: zod_1.z.object({
|
|
797
|
+
org: zod_1.z.string().describe("org"),
|
|
798
|
+
runner_id: zod_1.z.string().describe("runner_id"),
|
|
799
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
800
|
+
}),
|
|
801
|
+
handler: async (args) => {
|
|
802
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/runners/${args.runner_id}/labels`, args.body, undefined);
|
|
803
|
+
},
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
name: "github_actions_remove_all_custom_labels_from_self_hosted_runner_for_org",
|
|
807
|
+
description: "Remove all custom labels from a self-hosted runner for an organization",
|
|
808
|
+
inputSchema: zod_1.z.object({
|
|
809
|
+
org: zod_1.z.string().describe("org"),
|
|
810
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
811
|
+
}),
|
|
812
|
+
handler: async (args) => {
|
|
813
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/runners/${args.runner_id}/labels`, undefined, undefined);
|
|
814
|
+
},
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
name: "github_actions_remove_custom_label_from_self_hosted_runner_for_org",
|
|
818
|
+
description: "Remove a custom label from a self-hosted runner for an organization",
|
|
819
|
+
inputSchema: zod_1.z.object({
|
|
820
|
+
org: zod_1.z.string().describe("org"),
|
|
821
|
+
runner_id: zod_1.z.string().describe("runner_id"),
|
|
822
|
+
name: zod_1.z.string().describe("name")
|
|
823
|
+
}),
|
|
824
|
+
handler: async (args) => {
|
|
825
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/runners/${args.runner_id}/labels/${args.name}`, undefined, undefined);
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
name: "github_actions_list_org_secrets",
|
|
830
|
+
description: "List organization secrets",
|
|
831
|
+
inputSchema: zod_1.z.object({
|
|
832
|
+
org: zod_1.z.string().describe("org"),
|
|
833
|
+
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).\""),
|
|
834
|
+
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).\"")
|
|
835
|
+
}),
|
|
836
|
+
handler: async (args) => {
|
|
837
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/secrets`, undefined, { per_page: args.per_page, page: args.page });
|
|
838
|
+
},
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
name: "github_actions_get_org_public_key",
|
|
842
|
+
description: "Get an organization public key",
|
|
843
|
+
inputSchema: zod_1.z.object({
|
|
844
|
+
org: zod_1.z.string().describe("org")
|
|
845
|
+
}),
|
|
846
|
+
handler: async (args) => {
|
|
847
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/secrets/public-key`, undefined, undefined);
|
|
848
|
+
},
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
name: "github_actions_get_org_secret",
|
|
852
|
+
description: "Get an organization secret",
|
|
853
|
+
inputSchema: zod_1.z.object({
|
|
854
|
+
org: zod_1.z.string().describe("org"),
|
|
855
|
+
secret_name: zod_1.z.string().describe("secret_name")
|
|
856
|
+
}),
|
|
857
|
+
handler: async (args) => {
|
|
858
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/secrets/${args.secret_name}`, undefined, undefined);
|
|
859
|
+
},
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
name: "github_actions_create_or_update_org_secret",
|
|
863
|
+
description: "Create or update an organization secret",
|
|
864
|
+
inputSchema: zod_1.z.object({
|
|
865
|
+
org: zod_1.z.string().describe("org"),
|
|
866
|
+
secret_name: zod_1.z.string().describe("secret_name"),
|
|
867
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
868
|
+
}),
|
|
869
|
+
handler: async (args) => {
|
|
870
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/secrets/${args.secret_name}`, args.body, undefined);
|
|
871
|
+
},
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
name: "github_actions_delete_org_secret",
|
|
875
|
+
description: "Delete an organization secret",
|
|
876
|
+
inputSchema: zod_1.z.object({
|
|
877
|
+
org: zod_1.z.string().describe("org"),
|
|
878
|
+
secret_name: zod_1.z.string().describe("secret_name")
|
|
879
|
+
}),
|
|
880
|
+
handler: async (args) => {
|
|
881
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/secrets/${args.secret_name}`, undefined, undefined);
|
|
882
|
+
},
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
name: "github_actions_list_selected_repos_for_org_secret",
|
|
886
|
+
description: "List selected repositories for an organization secret",
|
|
887
|
+
inputSchema: zod_1.z.object({
|
|
888
|
+
org: zod_1.z.string().describe("org"),
|
|
889
|
+
secret_name: zod_1.z.string().describe("secret_name"),
|
|
890
|
+
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).\""),
|
|
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
|
+
}),
|
|
893
|
+
handler: async (args) => {
|
|
894
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/secrets/${args.secret_name}/repositories`, undefined, { page: args.page, per_page: args.per_page });
|
|
895
|
+
},
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
name: "github_actions_set_selected_repos_for_org_secret",
|
|
899
|
+
description: "Set selected repositories for an organization secret",
|
|
900
|
+
inputSchema: zod_1.z.object({
|
|
901
|
+
org: zod_1.z.string().describe("org"),
|
|
902
|
+
secret_name: zod_1.z.string().describe("secret_name"),
|
|
903
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
904
|
+
}),
|
|
905
|
+
handler: async (args) => {
|
|
906
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/secrets/${args.secret_name}/repositories`, args.body, undefined);
|
|
907
|
+
},
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
name: "github_actions_add_selected_repo_to_org_secret",
|
|
911
|
+
description: "Add selected repository to an organization secret",
|
|
912
|
+
inputSchema: zod_1.z.object({
|
|
913
|
+
org: zod_1.z.string().describe("org"),
|
|
914
|
+
secret_name: zod_1.z.string().describe("secret_name"),
|
|
915
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
916
|
+
}),
|
|
917
|
+
handler: async (args) => {
|
|
918
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/secrets/${args.secret_name}/repositories/${args.repository_id}`, undefined, undefined);
|
|
919
|
+
},
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
name: "github_actions_remove_selected_repo_from_org_secret",
|
|
923
|
+
description: "Remove selected repository from an organization secret",
|
|
924
|
+
inputSchema: zod_1.z.object({
|
|
925
|
+
org: zod_1.z.string().describe("org"),
|
|
926
|
+
secret_name: zod_1.z.string().describe("secret_name"),
|
|
927
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
928
|
+
}),
|
|
929
|
+
handler: async (args) => {
|
|
930
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/secrets/${args.secret_name}/repositories/${args.repository_id}`, undefined, undefined);
|
|
931
|
+
},
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
name: "github_actions_list_org_variables",
|
|
935
|
+
description: "List organization variables",
|
|
936
|
+
inputSchema: zod_1.z.object({
|
|
937
|
+
org: zod_1.z.string().describe("org"),
|
|
938
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 30). 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).\""),
|
|
939
|
+
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).\"")
|
|
940
|
+
}),
|
|
941
|
+
handler: async (args) => {
|
|
942
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/variables`, undefined, { per_page: args.per_page, page: args.page });
|
|
943
|
+
},
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
name: "github_actions_create_org_variable",
|
|
947
|
+
description: "Create an organization variable",
|
|
948
|
+
inputSchema: zod_1.z.object({
|
|
949
|
+
org: zod_1.z.string().describe("org"),
|
|
950
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
951
|
+
}),
|
|
952
|
+
handler: async (args) => {
|
|
953
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/actions/variables`, args.body, undefined);
|
|
954
|
+
},
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
name: "github_actions_get_org_variable",
|
|
958
|
+
description: "Get an organization variable",
|
|
959
|
+
inputSchema: zod_1.z.object({
|
|
960
|
+
org: zod_1.z.string().describe("org"),
|
|
961
|
+
name: zod_1.z.string().describe("name")
|
|
962
|
+
}),
|
|
963
|
+
handler: async (args) => {
|
|
964
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/variables/${args.name}`, undefined, undefined);
|
|
965
|
+
},
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
name: "github_actions_update_org_variable",
|
|
969
|
+
description: "Update an organization variable",
|
|
970
|
+
inputSchema: zod_1.z.object({
|
|
971
|
+
org: zod_1.z.string().describe("org"),
|
|
972
|
+
name: zod_1.z.string().describe("name"),
|
|
973
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
974
|
+
}),
|
|
975
|
+
handler: async (args) => {
|
|
976
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}/actions/variables/${args.name}`, args.body, undefined);
|
|
977
|
+
},
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
name: "github_actions_delete_org_variable",
|
|
981
|
+
description: "Delete an organization variable",
|
|
982
|
+
inputSchema: zod_1.z.object({
|
|
983
|
+
org: zod_1.z.string().describe("org"),
|
|
984
|
+
name: zod_1.z.string().describe("name")
|
|
985
|
+
}),
|
|
986
|
+
handler: async (args) => {
|
|
987
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/variables/${args.name}`, undefined, undefined);
|
|
988
|
+
},
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
name: "github_actions_list_selected_repos_for_org_variable",
|
|
992
|
+
description: "List selected repositories for an organization variable",
|
|
993
|
+
inputSchema: zod_1.z.object({
|
|
994
|
+
org: zod_1.z.string().describe("org"),
|
|
995
|
+
name: zod_1.z.string().describe("name"),
|
|
996
|
+
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).\""),
|
|
997
|
+
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).\"")
|
|
998
|
+
}),
|
|
999
|
+
handler: async (args) => {
|
|
1000
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/actions/variables/${args.name}/repositories`, undefined, { page: args.page, per_page: args.per_page });
|
|
1001
|
+
},
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
name: "github_actions_set_selected_repos_for_org_variable",
|
|
1005
|
+
description: "Set selected repositories for an organization variable",
|
|
1006
|
+
inputSchema: zod_1.z.object({
|
|
1007
|
+
org: zod_1.z.string().describe("org"),
|
|
1008
|
+
name: zod_1.z.string().describe("name"),
|
|
1009
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1010
|
+
}),
|
|
1011
|
+
handler: async (args) => {
|
|
1012
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/variables/${args.name}/repositories`, args.body, undefined);
|
|
1013
|
+
},
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
name: "github_actions_add_selected_repo_to_org_variable",
|
|
1017
|
+
description: "Add selected repository to an organization variable",
|
|
1018
|
+
inputSchema: zod_1.z.object({
|
|
1019
|
+
org: zod_1.z.string().describe("org"),
|
|
1020
|
+
name: zod_1.z.string().describe("name"),
|
|
1021
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
1022
|
+
}),
|
|
1023
|
+
handler: async (args) => {
|
|
1024
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/actions/variables/${args.name}/repositories/${args.repository_id}`, undefined, undefined);
|
|
1025
|
+
},
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
name: "github_actions_remove_selected_repo_from_org_variable",
|
|
1029
|
+
description: "Remove selected repository from an organization variable",
|
|
1030
|
+
inputSchema: zod_1.z.object({
|
|
1031
|
+
org: zod_1.z.string().describe("org"),
|
|
1032
|
+
name: zod_1.z.string().describe("name"),
|
|
1033
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
1034
|
+
}),
|
|
1035
|
+
handler: async (args) => {
|
|
1036
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/actions/variables/${args.name}/repositories/${args.repository_id}`, undefined, undefined);
|
|
1037
|
+
},
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
name: "github_actions_list_artifacts_for_repo",
|
|
1041
|
+
description: "List artifacts for a repository",
|
|
1042
|
+
inputSchema: zod_1.z.object({
|
|
1043
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1044
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1045
|
+
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).\""),
|
|
1046
|
+
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).\""),
|
|
1047
|
+
name: zod_1.z.string().optional().describe("The name field of an artifact. When specified, only artifacts with this name will be returned.")
|
|
1048
|
+
}),
|
|
1049
|
+
handler: async (args) => {
|
|
1050
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/artifacts`, undefined, { per_page: args.per_page, page: args.page, name: args.name });
|
|
1051
|
+
},
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
name: "github_actions_get_artifact",
|
|
1055
|
+
description: "Get an artifact",
|
|
1056
|
+
inputSchema: zod_1.z.object({
|
|
1057
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1058
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1059
|
+
artifact_id: zod_1.z.string().describe("artifact_id")
|
|
1060
|
+
}),
|
|
1061
|
+
handler: async (args) => {
|
|
1062
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/artifacts/${args.artifact_id}`, undefined, undefined);
|
|
1063
|
+
},
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
name: "github_actions_delete_artifact",
|
|
1067
|
+
description: "Delete an artifact",
|
|
1068
|
+
inputSchema: zod_1.z.object({
|
|
1069
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1070
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1071
|
+
artifact_id: zod_1.z.string().describe("artifact_id")
|
|
1072
|
+
}),
|
|
1073
|
+
handler: async (args) => {
|
|
1074
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/artifacts/${args.artifact_id}`, undefined, undefined);
|
|
1075
|
+
},
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
name: "github_actions_download_artifact",
|
|
1079
|
+
description: "Download an artifact",
|
|
1080
|
+
inputSchema: zod_1.z.object({
|
|
1081
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1082
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1083
|
+
artifact_id: zod_1.z.string().describe("artifact_id"),
|
|
1084
|
+
archive_format: zod_1.z.string().describe("archive_format")
|
|
1085
|
+
}),
|
|
1086
|
+
handler: async (args) => {
|
|
1087
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/artifacts/${args.artifact_id}/${args.archive_format}`, undefined, undefined);
|
|
1088
|
+
},
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
name: "github_actions_get_actions_cache_retention_limit_for_repository",
|
|
1092
|
+
description: "Get GitHub Actions cache retention limit for a repository",
|
|
1093
|
+
inputSchema: zod_1.z.object({
|
|
1094
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1095
|
+
repo: zod_1.z.string().describe("repo")
|
|
1096
|
+
}),
|
|
1097
|
+
handler: async (args) => {
|
|
1098
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/cache/retention-limit`, undefined, undefined);
|
|
1099
|
+
},
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
name: "github_actions_set_actions_cache_retention_limit_for_repository",
|
|
1103
|
+
description: "Set GitHub Actions cache retention limit for a repository",
|
|
1104
|
+
inputSchema: zod_1.z.object({
|
|
1105
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1106
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1107
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1108
|
+
}),
|
|
1109
|
+
handler: async (args) => {
|
|
1110
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/cache/retention-limit`, args.body, undefined);
|
|
1111
|
+
},
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
name: "github_actions_get_actions_cache_storage_limit_for_repository",
|
|
1115
|
+
description: "Get GitHub Actions cache storage limit for a repository",
|
|
1116
|
+
inputSchema: zod_1.z.object({
|
|
1117
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1118
|
+
repo: zod_1.z.string().describe("repo")
|
|
1119
|
+
}),
|
|
1120
|
+
handler: async (args) => {
|
|
1121
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/cache/storage-limit`, undefined, undefined);
|
|
1122
|
+
},
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
name: "github_actions_set_actions_cache_storage_limit_for_repository",
|
|
1126
|
+
description: "Set GitHub Actions cache storage limit for a repository",
|
|
1127
|
+
inputSchema: zod_1.z.object({
|
|
1128
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1129
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1130
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1131
|
+
}),
|
|
1132
|
+
handler: async (args) => {
|
|
1133
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/cache/storage-limit`, args.body, undefined);
|
|
1134
|
+
},
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
name: "github_actions_get_actions_cache_usage",
|
|
1138
|
+
description: "Get GitHub Actions cache usage for a repository",
|
|
1139
|
+
inputSchema: zod_1.z.object({
|
|
1140
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1141
|
+
repo: zod_1.z.string().describe("repo")
|
|
1142
|
+
}),
|
|
1143
|
+
handler: async (args) => {
|
|
1144
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/cache/usage`, undefined, undefined);
|
|
1145
|
+
},
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
name: "github_actions_get_actions_cache_list",
|
|
1149
|
+
description: "List GitHub Actions caches for a repository",
|
|
1150
|
+
inputSchema: zod_1.z.object({
|
|
1151
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1152
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1153
|
+
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).\""),
|
|
1154
|
+
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).\""),
|
|
1155
|
+
ref: zod_1.z.string().optional().describe("The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/<branch name>`. To reference a pull request use `refs/pull/<number>/merge`."),
|
|
1156
|
+
key: zod_1.z.string().optional().describe("An explicit key or prefix for identifying the cache"),
|
|
1157
|
+
sort: zod_1.z.enum(["created_at", "last_accessed_at", "size_in_bytes"]).optional().describe("The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes."),
|
|
1158
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by.")
|
|
1159
|
+
}),
|
|
1160
|
+
handler: async (args) => {
|
|
1161
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/caches`, undefined, { per_page: args.per_page, page: args.page, ref: args.ref, key: args.key, sort: args.sort, direction: args.direction });
|
|
1162
|
+
},
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
name: "github_actions_delete_actions_cache_by_key",
|
|
1166
|
+
description: "Delete GitHub Actions caches for a repository (using a cache key)",
|
|
1167
|
+
inputSchema: zod_1.z.object({
|
|
1168
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1169
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1170
|
+
key: zod_1.z.string().describe("A key for identifying the cache."),
|
|
1171
|
+
ref: zod_1.z.string().optional().describe("The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/<branch name>`. To reference a pull request use `refs/pull/<number>/merge`.")
|
|
1172
|
+
}),
|
|
1173
|
+
handler: async (args) => {
|
|
1174
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/caches`, undefined, { key: args.key, ref: args.ref });
|
|
1175
|
+
},
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
name: "github_actions_delete_actions_cache_by_id",
|
|
1179
|
+
description: "Delete a GitHub Actions cache for a repository (using a cache ID)",
|
|
1180
|
+
inputSchema: zod_1.z.object({
|
|
1181
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1182
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1183
|
+
cache_id: zod_1.z.string().describe("cache_id")
|
|
1184
|
+
}),
|
|
1185
|
+
handler: async (args) => {
|
|
1186
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/caches/${args.cache_id}`, undefined, undefined);
|
|
1187
|
+
},
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
name: "github_actions_get_job_for_workflow_run",
|
|
1191
|
+
description: "Get a job for a workflow run",
|
|
1192
|
+
inputSchema: zod_1.z.object({
|
|
1193
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1194
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1195
|
+
job_id: zod_1.z.string().describe("job_id")
|
|
1196
|
+
}),
|
|
1197
|
+
handler: async (args) => {
|
|
1198
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/jobs/${args.job_id}`, undefined, undefined);
|
|
1199
|
+
},
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
name: "github_actions_download_job_logs_for_workflow_run",
|
|
1203
|
+
description: "Download job logs for a workflow run",
|
|
1204
|
+
inputSchema: zod_1.z.object({
|
|
1205
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1206
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1207
|
+
job_id: zod_1.z.string().describe("job_id")
|
|
1208
|
+
}),
|
|
1209
|
+
handler: async (args) => {
|
|
1210
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/jobs/${args.job_id}/logs`, undefined, undefined);
|
|
1211
|
+
},
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
name: "github_actions_re_run_job_for_workflow_run",
|
|
1215
|
+
description: "Re-run a job from a workflow run",
|
|
1216
|
+
inputSchema: zod_1.z.object({
|
|
1217
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1218
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1219
|
+
job_id: zod_1.z.string().describe("job_id"),
|
|
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}/actions/jobs/${args.job_id}/rerun`, args.body, undefined);
|
|
1224
|
+
},
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
name: "github_actions_get_custom_oidc_sub_claim_for_repo",
|
|
1228
|
+
description: "Get the customization template for an OIDC subject claim for a repository",
|
|
1229
|
+
inputSchema: zod_1.z.object({
|
|
1230
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1231
|
+
repo: zod_1.z.string().describe("repo")
|
|
1232
|
+
}),
|
|
1233
|
+
handler: async (args) => {
|
|
1234
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/oidc/customization/sub`, undefined, undefined);
|
|
1235
|
+
},
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
name: "github_actions_set_custom_oidc_sub_claim_for_repo",
|
|
1239
|
+
description: "Set the customization template for an OIDC subject claim for a repository",
|
|
1240
|
+
inputSchema: zod_1.z.object({
|
|
1241
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1242
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1243
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1244
|
+
}),
|
|
1245
|
+
handler: async (args) => {
|
|
1246
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/oidc/customization/sub`, args.body, undefined);
|
|
1247
|
+
},
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
name: "github_actions_list_repo_organization_secrets",
|
|
1251
|
+
description: "List repository organization secrets",
|
|
1252
|
+
inputSchema: zod_1.z.object({
|
|
1253
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1254
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1255
|
+
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).\""),
|
|
1256
|
+
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).\"")
|
|
1257
|
+
}),
|
|
1258
|
+
handler: async (args) => {
|
|
1259
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/organization-secrets`, undefined, { per_page: args.per_page, page: args.page });
|
|
1260
|
+
},
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
name: "github_actions_list_repo_organization_variables",
|
|
1264
|
+
description: "List repository organization variables",
|
|
1265
|
+
inputSchema: zod_1.z.object({
|
|
1266
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1267
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1268
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 30). 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).\""),
|
|
1269
|
+
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).\"")
|
|
1270
|
+
}),
|
|
1271
|
+
handler: async (args) => {
|
|
1272
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/organization-variables`, undefined, { per_page: args.per_page, page: args.page });
|
|
1273
|
+
},
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
name: "github_actions_get_github_actions_permissions_repository",
|
|
1277
|
+
description: "Get GitHub Actions permissions for a repository",
|
|
1278
|
+
inputSchema: zod_1.z.object({
|
|
1279
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1280
|
+
repo: zod_1.z.string().describe("repo")
|
|
1281
|
+
}),
|
|
1282
|
+
handler: async (args) => {
|
|
1283
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/permissions`, undefined, undefined);
|
|
1284
|
+
},
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
name: "github_actions_set_github_actions_permissions_repository",
|
|
1288
|
+
description: "Set GitHub Actions permissions for a repository",
|
|
1289
|
+
inputSchema: zod_1.z.object({
|
|
1290
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1291
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1292
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1293
|
+
}),
|
|
1294
|
+
handler: async (args) => {
|
|
1295
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/permissions`, args.body, undefined);
|
|
1296
|
+
},
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
name: "github_actions_get_workflow_access_to_repository",
|
|
1300
|
+
description: "Get the level of access for workflows outside of the repository",
|
|
1301
|
+
inputSchema: zod_1.z.object({
|
|
1302
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1303
|
+
repo: zod_1.z.string().describe("repo")
|
|
1304
|
+
}),
|
|
1305
|
+
handler: async (args) => {
|
|
1306
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/permissions/access`, undefined, undefined);
|
|
1307
|
+
},
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
name: "github_actions_set_workflow_access_to_repository",
|
|
1311
|
+
description: "Set the level of access for workflows outside of the repository",
|
|
1312
|
+
inputSchema: zod_1.z.object({
|
|
1313
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1314
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1315
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1316
|
+
}),
|
|
1317
|
+
handler: async (args) => {
|
|
1318
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/permissions/access`, args.body, undefined);
|
|
1319
|
+
},
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
name: "github_actions_get_artifact_and_log_retention_settings_repository",
|
|
1323
|
+
description: "Get artifact and log retention settings for a repository",
|
|
1324
|
+
inputSchema: zod_1.z.object({
|
|
1325
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1326
|
+
repo: zod_1.z.string().describe("repo")
|
|
1327
|
+
}),
|
|
1328
|
+
handler: async (args) => {
|
|
1329
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/permissions/artifact-and-log-retention`, undefined, undefined);
|
|
1330
|
+
},
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
name: "github_actions_set_artifact_and_log_retention_settings_repository",
|
|
1334
|
+
description: "Set artifact and log retention settings for a repository",
|
|
1335
|
+
inputSchema: zod_1.z.object({
|
|
1336
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1337
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1338
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1339
|
+
}),
|
|
1340
|
+
handler: async (args) => {
|
|
1341
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/permissions/artifact-and-log-retention`, args.body, undefined);
|
|
1342
|
+
},
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
name: "github_actions_get_fork_pr_contributor_approval_permissions_repository",
|
|
1346
|
+
description: "Get fork PR contributor approval permissions for a repository",
|
|
1347
|
+
inputSchema: zod_1.z.object({
|
|
1348
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1349
|
+
repo: zod_1.z.string().describe("repo")
|
|
1350
|
+
}),
|
|
1351
|
+
handler: async (args) => {
|
|
1352
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/permissions/fork-pr-contributor-approval`, undefined, undefined);
|
|
1353
|
+
},
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
name: "github_actions_set_fork_pr_contributor_approval_permissions_repository",
|
|
1357
|
+
description: "Set fork PR contributor approval permissions for a repository",
|
|
1358
|
+
inputSchema: zod_1.z.object({
|
|
1359
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1360
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1361
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1362
|
+
}),
|
|
1363
|
+
handler: async (args) => {
|
|
1364
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/permissions/fork-pr-contributor-approval`, args.body, undefined);
|
|
1365
|
+
},
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
name: "github_actions_get_private_repo_fork_pr_workflows_settings_repository",
|
|
1369
|
+
description: "Get private repo fork PR workflow settings for a repository",
|
|
1370
|
+
inputSchema: zod_1.z.object({
|
|
1371
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1372
|
+
repo: zod_1.z.string().describe("repo")
|
|
1373
|
+
}),
|
|
1374
|
+
handler: async (args) => {
|
|
1375
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/permissions/fork-pr-workflows-private-repos`, undefined, undefined);
|
|
1376
|
+
},
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
name: "github_actions_set_private_repo_fork_pr_workflows_settings_repository",
|
|
1380
|
+
description: "Set private repo fork PR workflow settings for a repository",
|
|
1381
|
+
inputSchema: zod_1.z.object({
|
|
1382
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1383
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1384
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1385
|
+
}),
|
|
1386
|
+
handler: async (args) => {
|
|
1387
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/permissions/fork-pr-workflows-private-repos`, args.body, undefined);
|
|
1388
|
+
},
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
name: "github_actions_get_allowed_actions_repository",
|
|
1392
|
+
description: "Get allowed actions and reusable workflows for a repository",
|
|
1393
|
+
inputSchema: zod_1.z.object({
|
|
1394
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1395
|
+
repo: zod_1.z.string().describe("repo")
|
|
1396
|
+
}),
|
|
1397
|
+
handler: async (args) => {
|
|
1398
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/permissions/selected-actions`, undefined, undefined);
|
|
1399
|
+
},
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
name: "github_actions_set_allowed_actions_repository",
|
|
1403
|
+
description: "Set allowed actions and reusable workflows for a repository",
|
|
1404
|
+
inputSchema: zod_1.z.object({
|
|
1405
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1406
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1407
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1408
|
+
}),
|
|
1409
|
+
handler: async (args) => {
|
|
1410
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/permissions/selected-actions`, args.body, undefined);
|
|
1411
|
+
},
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
name: "github_actions_get_github_actions_default_workflow_permissions_repository",
|
|
1415
|
+
description: "Get default workflow permissions for a repository",
|
|
1416
|
+
inputSchema: zod_1.z.object({
|
|
1417
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1418
|
+
repo: zod_1.z.string().describe("repo")
|
|
1419
|
+
}),
|
|
1420
|
+
handler: async (args) => {
|
|
1421
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/permissions/workflow`, undefined, undefined);
|
|
1422
|
+
},
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
name: "github_actions_set_github_actions_default_workflow_permissions_repository",
|
|
1426
|
+
description: "Set default workflow permissions for a repository",
|
|
1427
|
+
inputSchema: zod_1.z.object({
|
|
1428
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1429
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1430
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1431
|
+
}),
|
|
1432
|
+
handler: async (args) => {
|
|
1433
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/permissions/workflow`, args.body, undefined);
|
|
1434
|
+
},
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
name: "github_actions_list_self_hosted_runners_for_repo",
|
|
1438
|
+
description: "List self-hosted runners for a repository",
|
|
1439
|
+
inputSchema: zod_1.z.object({
|
|
1440
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1441
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1442
|
+
name: zod_1.z.string().optional().describe("The name of a self-hosted runner."),
|
|
1443
|
+
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).\""),
|
|
1444
|
+
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).\"")
|
|
1445
|
+
}),
|
|
1446
|
+
handler: async (args) => {
|
|
1447
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runners`, undefined, { name: args.name, per_page: args.per_page, page: args.page });
|
|
1448
|
+
},
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
name: "github_actions_list_runner_applications_for_repo",
|
|
1452
|
+
description: "List runner applications for a repository",
|
|
1453
|
+
inputSchema: zod_1.z.object({
|
|
1454
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1455
|
+
repo: zod_1.z.string().describe("repo")
|
|
1456
|
+
}),
|
|
1457
|
+
handler: async (args) => {
|
|
1458
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runners/downloads`, undefined, undefined);
|
|
1459
|
+
},
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
name: "github_actions_generate_runner_jitconfig_for_repo",
|
|
1463
|
+
description: "Create configuration for a just-in-time runner for a repository",
|
|
1464
|
+
inputSchema: zod_1.z.object({
|
|
1465
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1466
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1467
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1468
|
+
}),
|
|
1469
|
+
handler: async (args) => {
|
|
1470
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runners/generate-jitconfig`, args.body, undefined);
|
|
1471
|
+
},
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
name: "github_actions_create_registration_token_for_repo",
|
|
1475
|
+
description: "Create a registration token for a repository",
|
|
1476
|
+
inputSchema: zod_1.z.object({
|
|
1477
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1478
|
+
repo: zod_1.z.string().describe("repo")
|
|
1479
|
+
}),
|
|
1480
|
+
handler: async (args) => {
|
|
1481
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runners/registration-token`, undefined, undefined);
|
|
1482
|
+
},
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
name: "github_actions_create_remove_token_for_repo",
|
|
1486
|
+
description: "Create a remove token for a repository",
|
|
1487
|
+
inputSchema: zod_1.z.object({
|
|
1488
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1489
|
+
repo: zod_1.z.string().describe("repo")
|
|
1490
|
+
}),
|
|
1491
|
+
handler: async (args) => {
|
|
1492
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runners/remove-token`, undefined, undefined);
|
|
1493
|
+
},
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
name: "github_actions_get_self_hosted_runner_for_repo",
|
|
1497
|
+
description: "Get a self-hosted runner for a repository",
|
|
1498
|
+
inputSchema: zod_1.z.object({
|
|
1499
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1500
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1501
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
1502
|
+
}),
|
|
1503
|
+
handler: async (args) => {
|
|
1504
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runners/${args.runner_id}`, undefined, undefined);
|
|
1505
|
+
},
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
name: "github_actions_delete_self_hosted_runner_from_repo",
|
|
1509
|
+
description: "Delete a self-hosted runner from a repository",
|
|
1510
|
+
inputSchema: zod_1.z.object({
|
|
1511
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1512
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1513
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
1514
|
+
}),
|
|
1515
|
+
handler: async (args) => {
|
|
1516
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/runners/${args.runner_id}`, undefined, undefined);
|
|
1517
|
+
},
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
name: "github_actions_list_labels_for_self_hosted_runner_for_repo",
|
|
1521
|
+
description: "List labels for a self-hosted runner for a repository",
|
|
1522
|
+
inputSchema: zod_1.z.object({
|
|
1523
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1524
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1525
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
1526
|
+
}),
|
|
1527
|
+
handler: async (args) => {
|
|
1528
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runners/${args.runner_id}/labels`, undefined, undefined);
|
|
1529
|
+
},
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
name: "github_actions_add_custom_labels_to_self_hosted_runner_for_repo",
|
|
1533
|
+
description: "Add custom labels to a self-hosted runner for a repository",
|
|
1534
|
+
inputSchema: zod_1.z.object({
|
|
1535
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1536
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1537
|
+
runner_id: zod_1.z.string().describe("runner_id"),
|
|
1538
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1539
|
+
}),
|
|
1540
|
+
handler: async (args) => {
|
|
1541
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runners/${args.runner_id}/labels`, args.body, undefined);
|
|
1542
|
+
},
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
name: "github_actions_set_custom_labels_for_self_hosted_runner_for_repo",
|
|
1546
|
+
description: "Set custom labels for a self-hosted runner for a repository",
|
|
1547
|
+
inputSchema: zod_1.z.object({
|
|
1548
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1549
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1550
|
+
runner_id: zod_1.z.string().describe("runner_id"),
|
|
1551
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1552
|
+
}),
|
|
1553
|
+
handler: async (args) => {
|
|
1554
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/runners/${args.runner_id}/labels`, args.body, undefined);
|
|
1555
|
+
},
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
name: "github_actions_remove_all_custom_labels_from_self_hosted_runner_for_repo",
|
|
1559
|
+
description: "Remove all custom labels from a self-hosted runner for a repository",
|
|
1560
|
+
inputSchema: zod_1.z.object({
|
|
1561
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1562
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1563
|
+
runner_id: zod_1.z.string().describe("runner_id")
|
|
1564
|
+
}),
|
|
1565
|
+
handler: async (args) => {
|
|
1566
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/runners/${args.runner_id}/labels`, undefined, undefined);
|
|
1567
|
+
},
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
name: "github_actions_remove_custom_label_from_self_hosted_runner_for_repo",
|
|
1571
|
+
description: "Remove a custom label from a self-hosted runner for a repository",
|
|
1572
|
+
inputSchema: zod_1.z.object({
|
|
1573
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1574
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1575
|
+
runner_id: zod_1.z.string().describe("runner_id"),
|
|
1576
|
+
name: zod_1.z.string().describe("name")
|
|
1577
|
+
}),
|
|
1578
|
+
handler: async (args) => {
|
|
1579
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/runners/${args.runner_id}/labels/${args.name}`, undefined, undefined);
|
|
1580
|
+
},
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
name: "github_actions_list_workflow_runs_for_repo",
|
|
1584
|
+
description: "List workflow runs for a repository",
|
|
1585
|
+
inputSchema: zod_1.z.object({
|
|
1586
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1587
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1588
|
+
actor: zod_1.z.string().optional().describe("Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run."),
|
|
1589
|
+
branch: zod_1.z.string().optional().describe("Returns workflow runs associated with a branch. Use the name of the branch of the `push`."),
|
|
1590
|
+
event: zod_1.z.string().optional().describe("Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see \"[Events that trigger workflows](https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows).\""),
|
|
1591
|
+
status: zod_1.z.enum(["completed", "action_required", "cancelled", "failure", "neutral", "skipped", "stale", "success", "timed_out", "in_progress", "queued", "requested", "waiting", "pending"]).optional().describe("Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`."),
|
|
1592
|
+
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).\""),
|
|
1593
|
+
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).\""),
|
|
1594
|
+
created: zod_1.z.string().optional().describe("Returns workflow runs created within the given date-time range. For more information on the syntax, see \"[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates).\""),
|
|
1595
|
+
exclude_pull_requests: zod_1.z.boolean().optional().describe("If `true` pull requests are omitted from the response (empty array)."),
|
|
1596
|
+
check_suite_id: zod_1.z.number().optional().describe("Returns workflow runs with the `check_suite_id` that you specify."),
|
|
1597
|
+
head_sha: zod_1.z.string().optional().describe("Only returns workflow runs that are associated with the specified `head_sha`.")
|
|
1598
|
+
}),
|
|
1599
|
+
handler: async (args) => {
|
|
1600
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs`, undefined, { actor: args.actor, branch: args.branch, event: args.event, status: args.status, per_page: args.per_page, page: args.page, created: args.created, exclude_pull_requests: args.exclude_pull_requests, check_suite_id: args.check_suite_id, head_sha: args.head_sha });
|
|
1601
|
+
},
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
name: "github_actions_get_workflow_run",
|
|
1605
|
+
description: "Get a workflow run",
|
|
1606
|
+
inputSchema: zod_1.z.object({
|
|
1607
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1608
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1609
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1610
|
+
exclude_pull_requests: zod_1.z.boolean().optional().describe("If `true` pull requests are omitted from the response (empty array).")
|
|
1611
|
+
}),
|
|
1612
|
+
handler: async (args) => {
|
|
1613
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}`, undefined, { exclude_pull_requests: args.exclude_pull_requests });
|
|
1614
|
+
},
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
name: "github_actions_delete_workflow_run",
|
|
1618
|
+
description: "Delete a workflow run",
|
|
1619
|
+
inputSchema: zod_1.z.object({
|
|
1620
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1621
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1622
|
+
run_id: zod_1.z.string().describe("run_id")
|
|
1623
|
+
}),
|
|
1624
|
+
handler: async (args) => {
|
|
1625
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}`, undefined, undefined);
|
|
1626
|
+
},
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
name: "github_actions_get_reviews_for_run",
|
|
1630
|
+
description: "Get the review history for a workflow run",
|
|
1631
|
+
inputSchema: zod_1.z.object({
|
|
1632
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1633
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1634
|
+
run_id: zod_1.z.string().describe("run_id")
|
|
1635
|
+
}),
|
|
1636
|
+
handler: async (args) => {
|
|
1637
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/approvals`, undefined, undefined);
|
|
1638
|
+
},
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
name: "github_actions_approve_workflow_run",
|
|
1642
|
+
description: "Approve a workflow run for a fork pull request",
|
|
1643
|
+
inputSchema: zod_1.z.object({
|
|
1644
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1645
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1646
|
+
run_id: zod_1.z.string().describe("run_id")
|
|
1647
|
+
}),
|
|
1648
|
+
handler: async (args) => {
|
|
1649
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/approve`, undefined, undefined);
|
|
1650
|
+
},
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
name: "github_actions_list_workflow_run_artifacts",
|
|
1654
|
+
description: "List workflow run artifacts",
|
|
1655
|
+
inputSchema: zod_1.z.object({
|
|
1656
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1657
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1658
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1659
|
+
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).\""),
|
|
1660
|
+
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).\""),
|
|
1661
|
+
name: zod_1.z.string().optional().describe("The name field of an artifact. When specified, only artifacts with this name will be returned."),
|
|
1662
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by.")
|
|
1663
|
+
}),
|
|
1664
|
+
handler: async (args) => {
|
|
1665
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/artifacts`, undefined, { per_page: args.per_page, page: args.page, name: args.name, direction: args.direction });
|
|
1666
|
+
},
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
name: "github_actions_get_workflow_run_attempt",
|
|
1670
|
+
description: "Get a workflow run attempt",
|
|
1671
|
+
inputSchema: zod_1.z.object({
|
|
1672
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1673
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1674
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1675
|
+
attempt_number: zod_1.z.string().describe("attempt_number"),
|
|
1676
|
+
exclude_pull_requests: zod_1.z.boolean().optional().describe("If `true` pull requests are omitted from the response (empty array).")
|
|
1677
|
+
}),
|
|
1678
|
+
handler: async (args) => {
|
|
1679
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/attempts/${args.attempt_number}`, undefined, { exclude_pull_requests: args.exclude_pull_requests });
|
|
1680
|
+
},
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
name: "github_actions_list_jobs_for_workflow_run_attempt",
|
|
1684
|
+
description: "List jobs for a workflow run attempt",
|
|
1685
|
+
inputSchema: zod_1.z.object({
|
|
1686
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1687
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1688
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1689
|
+
attempt_number: zod_1.z.string().describe("attempt_number"),
|
|
1690
|
+
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).\""),
|
|
1691
|
+
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).\"")
|
|
1692
|
+
}),
|
|
1693
|
+
handler: async (args) => {
|
|
1694
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/attempts/${args.attempt_number}/jobs`, undefined, { per_page: args.per_page, page: args.page });
|
|
1695
|
+
},
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
name: "github_actions_download_workflow_run_attempt_logs",
|
|
1699
|
+
description: "Download workflow run attempt logs",
|
|
1700
|
+
inputSchema: zod_1.z.object({
|
|
1701
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1702
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1703
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1704
|
+
attempt_number: zod_1.z.string().describe("attempt_number")
|
|
1705
|
+
}),
|
|
1706
|
+
handler: async (args) => {
|
|
1707
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/attempts/${args.attempt_number}/logs`, undefined, undefined);
|
|
1708
|
+
},
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
name: "github_actions_cancel_workflow_run",
|
|
1712
|
+
description: "Cancel a workflow run",
|
|
1713
|
+
inputSchema: zod_1.z.object({
|
|
1714
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1715
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1716
|
+
run_id: zod_1.z.string().describe("run_id")
|
|
1717
|
+
}),
|
|
1718
|
+
handler: async (args) => {
|
|
1719
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/cancel`, undefined, undefined);
|
|
1720
|
+
},
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
name: "github_actions_review_custom_gates_for_run",
|
|
1724
|
+
description: "Review custom deployment protection rules for a workflow run",
|
|
1725
|
+
inputSchema: zod_1.z.object({
|
|
1726
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1727
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1728
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1729
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1730
|
+
}),
|
|
1731
|
+
handler: async (args) => {
|
|
1732
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/deployment_protection_rule`, args.body, undefined);
|
|
1733
|
+
},
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
name: "github_actions_force_cancel_workflow_run",
|
|
1737
|
+
description: "Force cancel a workflow run",
|
|
1738
|
+
inputSchema: zod_1.z.object({
|
|
1739
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1740
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1741
|
+
run_id: zod_1.z.string().describe("run_id")
|
|
1742
|
+
}),
|
|
1743
|
+
handler: async (args) => {
|
|
1744
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/force-cancel`, undefined, undefined);
|
|
1745
|
+
},
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
name: "github_actions_list_jobs_for_workflow_run",
|
|
1749
|
+
description: "List jobs for a workflow run",
|
|
1750
|
+
inputSchema: zod_1.z.object({
|
|
1751
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1752
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1753
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1754
|
+
filter: zod_1.z.enum(["latest", "all"]).optional().describe("Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all jobs for a workflow run, including from old executions of the workflow run."),
|
|
1755
|
+
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).\""),
|
|
1756
|
+
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).\"")
|
|
1757
|
+
}),
|
|
1758
|
+
handler: async (args) => {
|
|
1759
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/jobs`, undefined, { filter: args.filter, per_page: args.per_page, page: args.page });
|
|
1760
|
+
},
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
name: "github_actions_download_workflow_run_logs",
|
|
1764
|
+
description: "Download workflow run logs",
|
|
1765
|
+
inputSchema: zod_1.z.object({
|
|
1766
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1767
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1768
|
+
run_id: zod_1.z.string().describe("run_id")
|
|
1769
|
+
}),
|
|
1770
|
+
handler: async (args) => {
|
|
1771
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/logs`, undefined, undefined);
|
|
1772
|
+
},
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
name: "github_actions_delete_workflow_run_logs",
|
|
1776
|
+
description: "Delete workflow run logs",
|
|
1777
|
+
inputSchema: zod_1.z.object({
|
|
1778
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1779
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1780
|
+
run_id: zod_1.z.string().describe("run_id")
|
|
1781
|
+
}),
|
|
1782
|
+
handler: async (args) => {
|
|
1783
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/logs`, undefined, undefined);
|
|
1784
|
+
},
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
name: "github_actions_get_pending_deployments_for_run",
|
|
1788
|
+
description: "Get pending deployments for a workflow run",
|
|
1789
|
+
inputSchema: zod_1.z.object({
|
|
1790
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1791
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1792
|
+
run_id: zod_1.z.string().describe("run_id")
|
|
1793
|
+
}),
|
|
1794
|
+
handler: async (args) => {
|
|
1795
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/pending_deployments`, undefined, undefined);
|
|
1796
|
+
},
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
name: "github_actions_review_pending_deployments_for_run",
|
|
1800
|
+
description: "Review pending deployments for a workflow run",
|
|
1801
|
+
inputSchema: zod_1.z.object({
|
|
1802
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1803
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1804
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1805
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1806
|
+
}),
|
|
1807
|
+
handler: async (args) => {
|
|
1808
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/pending_deployments`, args.body, undefined);
|
|
1809
|
+
},
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
name: "github_actions_re_run_workflow",
|
|
1813
|
+
description: "Re-run a workflow",
|
|
1814
|
+
inputSchema: zod_1.z.object({
|
|
1815
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1816
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1817
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1818
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1819
|
+
}),
|
|
1820
|
+
handler: async (args) => {
|
|
1821
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/rerun`, args.body, undefined);
|
|
1822
|
+
},
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
name: "github_actions_re_run_workflow_failed_jobs",
|
|
1826
|
+
description: "Re-run failed jobs from a workflow run",
|
|
1827
|
+
inputSchema: zod_1.z.object({
|
|
1828
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1829
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1830
|
+
run_id: zod_1.z.string().describe("run_id"),
|
|
1831
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1832
|
+
}),
|
|
1833
|
+
handler: async (args) => {
|
|
1834
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/rerun-failed-jobs`, args.body, undefined);
|
|
1835
|
+
},
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
name: "github_actions_get_workflow_run_usage",
|
|
1839
|
+
description: "Get workflow run usage",
|
|
1840
|
+
inputSchema: zod_1.z.object({
|
|
1841
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1842
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1843
|
+
run_id: zod_1.z.string().describe("run_id")
|
|
1844
|
+
}),
|
|
1845
|
+
handler: async (args) => {
|
|
1846
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/runs/${args.run_id}/timing`, undefined, undefined);
|
|
1847
|
+
},
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
name: "github_actions_list_repo_secrets",
|
|
1851
|
+
description: "List repository secrets",
|
|
1852
|
+
inputSchema: zod_1.z.object({
|
|
1853
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1854
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1855
|
+
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).\""),
|
|
1856
|
+
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).\"")
|
|
1857
|
+
}),
|
|
1858
|
+
handler: async (args) => {
|
|
1859
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/secrets`, undefined, { per_page: args.per_page, page: args.page });
|
|
1860
|
+
},
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
name: "github_actions_get_repo_public_key",
|
|
1864
|
+
description: "Get a repository public key",
|
|
1865
|
+
inputSchema: zod_1.z.object({
|
|
1866
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1867
|
+
repo: zod_1.z.string().describe("repo")
|
|
1868
|
+
}),
|
|
1869
|
+
handler: async (args) => {
|
|
1870
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/secrets/public-key`, undefined, undefined);
|
|
1871
|
+
},
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
name: "github_actions_get_repo_secret",
|
|
1875
|
+
description: "Get a repository secret",
|
|
1876
|
+
inputSchema: zod_1.z.object({
|
|
1877
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1878
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1879
|
+
secret_name: zod_1.z.string().describe("secret_name")
|
|
1880
|
+
}),
|
|
1881
|
+
handler: async (args) => {
|
|
1882
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/secrets/${args.secret_name}`, undefined, undefined);
|
|
1883
|
+
},
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
name: "github_actions_create_or_update_repo_secret",
|
|
1887
|
+
description: "Create or update a repository secret",
|
|
1888
|
+
inputSchema: zod_1.z.object({
|
|
1889
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1890
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1891
|
+
secret_name: zod_1.z.string().describe("secret_name"),
|
|
1892
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1893
|
+
}),
|
|
1894
|
+
handler: async (args) => {
|
|
1895
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/secrets/${args.secret_name}`, args.body, undefined);
|
|
1896
|
+
},
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
name: "github_actions_delete_repo_secret",
|
|
1900
|
+
description: "Delete a repository secret",
|
|
1901
|
+
inputSchema: zod_1.z.object({
|
|
1902
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1903
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1904
|
+
secret_name: zod_1.z.string().describe("secret_name")
|
|
1905
|
+
}),
|
|
1906
|
+
handler: async (args) => {
|
|
1907
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/secrets/${args.secret_name}`, undefined, undefined);
|
|
1908
|
+
},
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
name: "github_actions_list_repo_variables",
|
|
1912
|
+
description: "List repository variables",
|
|
1913
|
+
inputSchema: zod_1.z.object({
|
|
1914
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1915
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1916
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 30). 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).\""),
|
|
1917
|
+
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).\"")
|
|
1918
|
+
}),
|
|
1919
|
+
handler: async (args) => {
|
|
1920
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/variables`, undefined, { per_page: args.per_page, page: args.page });
|
|
1921
|
+
},
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
name: "github_actions_create_repo_variable",
|
|
1925
|
+
description: "Create a repository variable",
|
|
1926
|
+
inputSchema: zod_1.z.object({
|
|
1927
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1928
|
+
repo: zod_1.z.string().describe("repo"),
|
|
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)("POST", `/repos/${args.owner}/${args.repo}/actions/variables`, args.body, undefined);
|
|
1933
|
+
},
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
name: "github_actions_get_repo_variable",
|
|
1937
|
+
description: "Get a repository variable",
|
|
1938
|
+
inputSchema: zod_1.z.object({
|
|
1939
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1940
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1941
|
+
name: zod_1.z.string().describe("name")
|
|
1942
|
+
}),
|
|
1943
|
+
handler: async (args) => {
|
|
1944
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/variables/${args.name}`, undefined, undefined);
|
|
1945
|
+
},
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
name: "github_actions_update_repo_variable",
|
|
1949
|
+
description: "Update a repository variable",
|
|
1950
|
+
inputSchema: zod_1.z.object({
|
|
1951
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1952
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1953
|
+
name: zod_1.z.string().describe("name"),
|
|
1954
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1955
|
+
}),
|
|
1956
|
+
handler: async (args) => {
|
|
1957
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/actions/variables/${args.name}`, args.body, undefined);
|
|
1958
|
+
},
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
name: "github_actions_delete_repo_variable",
|
|
1962
|
+
description: "Delete a repository variable",
|
|
1963
|
+
inputSchema: zod_1.z.object({
|
|
1964
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1965
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1966
|
+
name: zod_1.z.string().describe("name")
|
|
1967
|
+
}),
|
|
1968
|
+
handler: async (args) => {
|
|
1969
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/actions/variables/${args.name}`, undefined, undefined);
|
|
1970
|
+
},
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
name: "github_actions_list_repo_workflows",
|
|
1974
|
+
description: "List repository workflows",
|
|
1975
|
+
inputSchema: zod_1.z.object({
|
|
1976
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1977
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1978
|
+
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).\""),
|
|
1979
|
+
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).\"")
|
|
1980
|
+
}),
|
|
1981
|
+
handler: async (args) => {
|
|
1982
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/workflows`, undefined, { per_page: args.per_page, page: args.page });
|
|
1983
|
+
},
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
name: "github_actions_get_workflow",
|
|
1987
|
+
description: "Get a workflow",
|
|
1988
|
+
inputSchema: zod_1.z.object({
|
|
1989
|
+
owner: zod_1.z.string().describe("owner"),
|
|
1990
|
+
repo: zod_1.z.string().describe("repo"),
|
|
1991
|
+
workflow_id: zod_1.z.string().describe("workflow_id")
|
|
1992
|
+
}),
|
|
1993
|
+
handler: async (args) => {
|
|
1994
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/workflows/${args.workflow_id}`, undefined, undefined);
|
|
1995
|
+
},
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
name: "github_actions_disable_workflow",
|
|
1999
|
+
description: "Disable a workflow",
|
|
2000
|
+
inputSchema: zod_1.z.object({
|
|
2001
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2002
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2003
|
+
workflow_id: zod_1.z.string().describe("workflow_id")
|
|
2004
|
+
}),
|
|
2005
|
+
handler: async (args) => {
|
|
2006
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/workflows/${args.workflow_id}/disable`, undefined, undefined);
|
|
2007
|
+
},
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
name: "github_actions_create_workflow_dispatch",
|
|
2011
|
+
description: "Create a workflow dispatch event",
|
|
2012
|
+
inputSchema: zod_1.z.object({
|
|
2013
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2014
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2015
|
+
workflow_id: zod_1.z.string().describe("workflow_id"),
|
|
2016
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2017
|
+
}),
|
|
2018
|
+
handler: async (args) => {
|
|
2019
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/actions/workflows/${args.workflow_id}/dispatches`, args.body, undefined);
|
|
2020
|
+
},
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
name: "github_actions_enable_workflow",
|
|
2024
|
+
description: "Enable a workflow",
|
|
2025
|
+
inputSchema: zod_1.z.object({
|
|
2026
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2027
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2028
|
+
workflow_id: zod_1.z.string().describe("workflow_id")
|
|
2029
|
+
}),
|
|
2030
|
+
handler: async (args) => {
|
|
2031
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/actions/workflows/${args.workflow_id}/enable`, undefined, undefined);
|
|
2032
|
+
},
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
name: "github_actions_list_workflow_runs",
|
|
2036
|
+
description: "List workflow runs for a workflow",
|
|
2037
|
+
inputSchema: zod_1.z.object({
|
|
2038
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2039
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2040
|
+
workflow_id: zod_1.z.string().describe("workflow_id"),
|
|
2041
|
+
actor: zod_1.z.string().optional().describe("Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run."),
|
|
2042
|
+
branch: zod_1.z.string().optional().describe("Returns workflow runs associated with a branch. Use the name of the branch of the `push`."),
|
|
2043
|
+
event: zod_1.z.string().optional().describe("Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see \"[Events that trigger workflows](https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows).\""),
|
|
2044
|
+
status: zod_1.z.enum(["completed", "action_required", "cancelled", "failure", "neutral", "skipped", "stale", "success", "timed_out", "in_progress", "queued", "requested", "waiting", "pending"]).optional().describe("Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`."),
|
|
2045
|
+
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).\""),
|
|
2046
|
+
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).\""),
|
|
2047
|
+
created: zod_1.z.string().optional().describe("Returns workflow runs created within the given date-time range. For more information on the syntax, see \"[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates).\""),
|
|
2048
|
+
exclude_pull_requests: zod_1.z.boolean().optional().describe("If `true` pull requests are omitted from the response (empty array)."),
|
|
2049
|
+
check_suite_id: zod_1.z.number().optional().describe("Returns workflow runs with the `check_suite_id` that you specify."),
|
|
2050
|
+
head_sha: zod_1.z.string().optional().describe("Only returns workflow runs that are associated with the specified `head_sha`.")
|
|
2051
|
+
}),
|
|
2052
|
+
handler: async (args) => {
|
|
2053
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/workflows/${args.workflow_id}/runs`, undefined, { actor: args.actor, branch: args.branch, event: args.event, status: args.status, per_page: args.per_page, page: args.page, created: args.created, exclude_pull_requests: args.exclude_pull_requests, check_suite_id: args.check_suite_id, head_sha: args.head_sha });
|
|
2054
|
+
},
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
name: "github_actions_get_workflow_usage",
|
|
2058
|
+
description: "Get workflow usage",
|
|
2059
|
+
inputSchema: zod_1.z.object({
|
|
2060
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2061
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2062
|
+
workflow_id: zod_1.z.string().describe("workflow_id")
|
|
2063
|
+
}),
|
|
2064
|
+
handler: async (args) => {
|
|
2065
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/actions/workflows/${args.workflow_id}/timing`, undefined, undefined);
|
|
2066
|
+
},
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
name: "github_actions_list_environment_secrets",
|
|
2070
|
+
description: "List environment secrets",
|
|
2071
|
+
inputSchema: zod_1.z.object({
|
|
2072
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2073
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2074
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
2075
|
+
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).\""),
|
|
2076
|
+
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).\"")
|
|
2077
|
+
}),
|
|
2078
|
+
handler: async (args) => {
|
|
2079
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/secrets`, undefined, { per_page: args.per_page, page: args.page });
|
|
2080
|
+
},
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
name: "github_actions_get_environment_public_key",
|
|
2084
|
+
description: "Get an environment public key",
|
|
2085
|
+
inputSchema: zod_1.z.object({
|
|
2086
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2087
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2088
|
+
environment_name: zod_1.z.string().describe("environment_name")
|
|
2089
|
+
}),
|
|
2090
|
+
handler: async (args) => {
|
|
2091
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/secrets/public-key`, undefined, undefined);
|
|
2092
|
+
},
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
name: "github_actions_get_environment_secret",
|
|
2096
|
+
description: "Get an environment secret",
|
|
2097
|
+
inputSchema: zod_1.z.object({
|
|
2098
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2099
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2100
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
2101
|
+
secret_name: zod_1.z.string().describe("secret_name")
|
|
2102
|
+
}),
|
|
2103
|
+
handler: async (args) => {
|
|
2104
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/secrets/${args.secret_name}`, undefined, undefined);
|
|
2105
|
+
},
|
|
2106
|
+
},
|
|
2107
|
+
{
|
|
2108
|
+
name: "github_actions_create_or_update_environment_secret",
|
|
2109
|
+
description: "Create or update an environment secret",
|
|
2110
|
+
inputSchema: zod_1.z.object({
|
|
2111
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2112
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2113
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
2114
|
+
secret_name: zod_1.z.string().describe("secret_name"),
|
|
2115
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2116
|
+
}),
|
|
2117
|
+
handler: async (args) => {
|
|
2118
|
+
return (0, client_js_1.githubRequest)("PUT", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/secrets/${args.secret_name}`, args.body, undefined);
|
|
2119
|
+
},
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
name: "github_actions_delete_environment_secret",
|
|
2123
|
+
description: "Delete an environment secret",
|
|
2124
|
+
inputSchema: zod_1.z.object({
|
|
2125
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2126
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2127
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
2128
|
+
secret_name: zod_1.z.string().describe("secret_name")
|
|
2129
|
+
}),
|
|
2130
|
+
handler: async (args) => {
|
|
2131
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/secrets/${args.secret_name}`, undefined, undefined);
|
|
2132
|
+
},
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
name: "github_actions_list_environment_variables",
|
|
2136
|
+
description: "List environment variables",
|
|
2137
|
+
inputSchema: zod_1.z.object({
|
|
2138
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2139
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2140
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
2141
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 30). 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).\""),
|
|
2142
|
+
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).\"")
|
|
2143
|
+
}),
|
|
2144
|
+
handler: async (args) => {
|
|
2145
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/variables`, undefined, { per_page: args.per_page, page: args.page });
|
|
2146
|
+
},
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
name: "github_actions_create_environment_variable",
|
|
2150
|
+
description: "Create an environment variable",
|
|
2151
|
+
inputSchema: zod_1.z.object({
|
|
2152
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2153
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2154
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
2155
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2156
|
+
}),
|
|
2157
|
+
handler: async (args) => {
|
|
2158
|
+
return (0, client_js_1.githubRequest)("POST", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/variables`, args.body, undefined);
|
|
2159
|
+
},
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
name: "github_actions_get_environment_variable",
|
|
2163
|
+
description: "Get an environment variable",
|
|
2164
|
+
inputSchema: zod_1.z.object({
|
|
2165
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2166
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2167
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
2168
|
+
name: zod_1.z.string().describe("name")
|
|
2169
|
+
}),
|
|
2170
|
+
handler: async (args) => {
|
|
2171
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/variables/${args.name}`, undefined, undefined);
|
|
2172
|
+
},
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
name: "github_actions_update_environment_variable",
|
|
2176
|
+
description: "Update an environment variable",
|
|
2177
|
+
inputSchema: zod_1.z.object({
|
|
2178
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2179
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2180
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
2181
|
+
name: zod_1.z.string().describe("name"),
|
|
2182
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
2183
|
+
}),
|
|
2184
|
+
handler: async (args) => {
|
|
2185
|
+
return (0, client_js_1.githubRequest)("PATCH", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/variables/${args.name}`, args.body, undefined);
|
|
2186
|
+
},
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
name: "github_actions_delete_environment_variable",
|
|
2190
|
+
description: "Delete an environment variable",
|
|
2191
|
+
inputSchema: zod_1.z.object({
|
|
2192
|
+
owner: zod_1.z.string().describe("owner"),
|
|
2193
|
+
repo: zod_1.z.string().describe("repo"),
|
|
2194
|
+
environment_name: zod_1.z.string().describe("environment_name"),
|
|
2195
|
+
name: zod_1.z.string().describe("name")
|
|
2196
|
+
}),
|
|
2197
|
+
handler: async (args) => {
|
|
2198
|
+
return (0, client_js_1.githubRequest)("DELETE", `/repos/${args.owner}/${args.repo}/environments/${args.environment_name}/variables/${args.name}`, undefined, undefined);
|
|
2199
|
+
},
|
|
2200
|
+
},
|
|
2201
|
+
];
|
|
2202
|
+
//# sourceMappingURL=actions.js.map
|