adoptai-mcp 1.0.0
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 +70 -0
- package/bin/adoptai-mcp.js +2 -0
- package/dist/apps/canva.js +1 -0
- package/dist/apps/figma.js +1 -0
- package/dist/apps/github.js +2 -0
- package/dist/apps/notion.js +1 -0
- package/dist/apps/registry.js +20 -0
- package/dist/apps/salesforce.js +1 -0
- package/dist/cli/add.js +532 -0
- package/dist/cli/index.js +39 -0
- package/dist/cli/list.js +19 -0
- package/dist/cli/remove.js +37 -0
- package/dist/cli/serve.js +27 -0
- package/dist/cli/status.js +24 -0
- package/dist/config/clients.js +118 -0
- package/dist/config/credentials.js +34 -0
- package/dist/core/auth-manager.js +237 -0
- package/dist/core/config-writer.js +161 -0
- package/dist/core/doctor.js +199 -0
- package/dist/core/package.json +3 -0
- package/dist/core/server-base.js +81 -0
- package/dist/integrations/canva/.env +3 -0
- package/dist/integrations/canva/auth.js +287 -0
- package/dist/integrations/canva/env.js +9 -0
- package/dist/integrations/canva/index.js +12 -0
- package/dist/integrations/canva/package.json +31 -0
- package/dist/integrations/canva/publish-to-adoptai.js +365 -0
- package/dist/integrations/canva/setup.js +90 -0
- package/dist/integrations/canva/tools.js +1315 -0
- package/dist/integrations/canva/tools.original.js +1315 -0
- package/dist/integrations/figma/auth.js +48 -0
- package/dist/integrations/figma/index.js +11 -0
- package/dist/integrations/figma/package.json +27 -0
- package/dist/integrations/figma/publish-to-adoptai.js +384 -0
- package/dist/integrations/figma/setup.js +90 -0
- package/dist/integrations/figma/tools.js +1137 -0
- package/dist/integrations/github/auth.js +53 -0
- package/dist/integrations/github/index.js +11 -0
- package/dist/integrations/github/package.json +28 -0
- package/dist/integrations/github/publish-to-adoptai.js +240 -0
- package/dist/integrations/github/setup.js +103 -0
- package/dist/integrations/github/tools.js +78 -0
- package/dist/integrations/github-actions/auth.js +53 -0
- package/dist/integrations/github-actions/index.js +11 -0
- package/dist/integrations/github-actions/package.json +27 -0
- package/dist/integrations/github-actions/setup.js +103 -0
- package/dist/integrations/github-actions/tools.js +5642 -0
- package/dist/integrations/github-activity/auth.js +53 -0
- package/dist/integrations/github-activity/index.js +11 -0
- package/dist/integrations/github-activity/package.json +27 -0
- package/dist/integrations/github-activity/setup.js +103 -0
- package/dist/integrations/github-activity/tools.js +925 -0
- package/dist/integrations/github-apps/auth.js +53 -0
- package/dist/integrations/github-apps/index.js +11 -0
- package/dist/integrations/github-apps/package.json +27 -0
- package/dist/integrations/github-apps/setup.js +103 -0
- package/dist/integrations/github-apps/tools.js +791 -0
- package/dist/integrations/github-billing/auth.js +53 -0
- package/dist/integrations/github-billing/index.js +11 -0
- package/dist/integrations/github-billing/package.json +27 -0
- package/dist/integrations/github-billing/setup.js +103 -0
- package/dist/integrations/github-billing/tools.js +438 -0
- package/dist/integrations/github-checks/auth.js +53 -0
- package/dist/integrations/github-checks/index.js +11 -0
- package/dist/integrations/github-checks/package.json +27 -0
- package/dist/integrations/github-checks/setup.js +103 -0
- package/dist/integrations/github-checks/tools.js +607 -0
- package/dist/integrations/github-code-scanning/auth.js +53 -0
- package/dist/integrations/github-code-scanning/index.js +11 -0
- package/dist/integrations/github-code-scanning/package.json +27 -0
- package/dist/integrations/github-code-scanning/setup.js +103 -0
- package/dist/integrations/github-code-scanning/tools.js +987 -0
- package/dist/integrations/github-dependabot/auth.js +53 -0
- package/dist/integrations/github-dependabot/index.js +11 -0
- package/dist/integrations/github-dependabot/package.json +27 -0
- package/dist/integrations/github-dependabot/setup.js +103 -0
- package/dist/integrations/github-dependabot/tools.js +915 -0
- package/dist/integrations/github-gists/auth.js +53 -0
- package/dist/integrations/github-gists/index.js +11 -0
- package/dist/integrations/github-gists/package.json +27 -0
- package/dist/integrations/github-gists/setup.js +103 -0
- package/dist/integrations/github-gists/tools.js +545 -0
- package/dist/integrations/github-git/auth.js +53 -0
- package/dist/integrations/github-git/index.js +11 -0
- package/dist/integrations/github-git/package.json +27 -0
- package/dist/integrations/github-git/setup.js +103 -0
- package/dist/integrations/github-git/tools.js +513 -0
- package/dist/integrations/github-issues/auth.js +53 -0
- package/dist/integrations/github-issues/index.js +11 -0
- package/dist/integrations/github-issues/package.json +27 -0
- package/dist/integrations/github-issues/setup.js +103 -0
- package/dist/integrations/github-issues/tools.js +2232 -0
- package/dist/integrations/github-orgs/auth.js +53 -0
- package/dist/integrations/github-orgs/index.js +11 -0
- package/dist/integrations/github-orgs/package.json +27 -0
- package/dist/integrations/github-orgs/setup.js +103 -0
- package/dist/integrations/github-orgs/tools.js +3512 -0
- package/dist/integrations/github-packages/auth.js +53 -0
- package/dist/integrations/github-packages/index.js +11 -0
- package/dist/integrations/github-packages/package.json +27 -0
- package/dist/integrations/github-packages/setup.js +103 -0
- package/dist/integrations/github-packages/tools.js +1088 -0
- package/dist/integrations/github-pulls/auth.js +53 -0
- package/dist/integrations/github-pulls/index.js +11 -0
- package/dist/integrations/github-pulls/package.json +27 -0
- package/dist/integrations/github-pulls/setup.js +103 -0
- package/dist/integrations/github-pulls/tools.js +1252 -0
- package/dist/integrations/github-reactions/auth.js +53 -0
- package/dist/integrations/github-reactions/index.js +11 -0
- package/dist/integrations/github-reactions/package.json +27 -0
- package/dist/integrations/github-reactions/setup.js +103 -0
- package/dist/integrations/github-reactions/tools.js +706 -0
- package/dist/integrations/github-repos/auth.js +53 -0
- package/dist/integrations/github-repos/index.js +11 -0
- package/dist/integrations/github-repos/package.json +27 -0
- package/dist/integrations/github-repos/setup.js +103 -0
- package/dist/integrations/github-repos/tools.js +7286 -0
- package/dist/integrations/github-search/auth.js +53 -0
- package/dist/integrations/github-search/index.js +11 -0
- package/dist/integrations/github-search/package.json +27 -0
- package/dist/integrations/github-search/setup.js +103 -0
- package/dist/integrations/github-search/tools.js +370 -0
- package/dist/integrations/github-teams/auth.js +53 -0
- package/dist/integrations/github-teams/index.js +11 -0
- package/dist/integrations/github-teams/package.json +27 -0
- package/dist/integrations/github-teams/setup.js +103 -0
- package/dist/integrations/github-teams/tools.js +633 -0
- package/dist/integrations/github-users/auth.js +53 -0
- package/dist/integrations/github-users/index.js +11 -0
- package/dist/integrations/github-users/package.json +27 -0
- package/dist/integrations/github-users/setup.js +103 -0
- package/dist/integrations/github-users/tools.js +1118 -0
- package/dist/integrations/notion/api.js +108 -0
- package/dist/integrations/notion/auth.js +59 -0
- package/dist/integrations/notion/endpoints.json +630 -0
- package/dist/integrations/notion/index.js +11 -0
- package/dist/integrations/notion/package.json +33 -0
- package/dist/integrations/notion/publish-to-adoptai.js +271 -0
- package/dist/integrations/notion/scripts/generate-endpoints.mjs +306 -0
- package/dist/integrations/notion/setup.js +89 -0
- package/dist/integrations/notion/tools.js +586 -0
- package/dist/integrations/notion/tools.original.js +568 -0
- package/dist/integrations/salesforce/.env +8 -0
- package/dist/integrations/salesforce/.env.example +15 -0
- package/dist/integrations/salesforce/auth.js +311 -0
- package/dist/integrations/salesforce/endpoints.json +1359 -0
- package/dist/integrations/salesforce/env.js +9 -0
- package/dist/integrations/salesforce/index.js +12 -0
- package/dist/integrations/salesforce/package.json +42 -0
- package/dist/integrations/salesforce/publish-smart-specs.js +890 -0
- package/dist/integrations/salesforce/publish-to-adoptai.js +386 -0
- package/dist/integrations/salesforce/scripts/extract-postman.mjs +222 -0
- package/dist/integrations/salesforce/setup.js +112 -0
- package/dist/integrations/salesforce/tools.js +4544 -0
- package/dist/integrations/salesforce/tools.original.js +4487 -0
- package/dist/server/mcp-server.js +50 -0
- package/dist/server/tool-loader.js +47 -0
- package/dist/specs/figma-api.json +13621 -0
- package/dist/specs/split/salesforce-auth.json +3931 -0
- package/dist/specs/split/salesforce-bulk-v1.json +1489 -0
- package/dist/specs/split/salesforce-bulk-v2.json +1951 -0
- package/dist/specs/split/salesforce-composite.json +1246 -0
- package/dist/specs/split/salesforce-connect.json +11639 -0
- package/dist/specs/split/salesforce-einstein-prediction-service.json +576 -0
- package/dist/specs/split/salesforce-event-platform.json +2682 -0
- package/dist/specs/split/salesforce-graphql.json +1754 -0
- package/dist/specs/split/salesforce-industries.json +4115 -0
- package/dist/specs/split/salesforce-metadata.json +555 -0
- package/dist/specs/split/salesforce-rest.json +4798 -0
- package/dist/specs/split/salesforce-soap.json +210 -0
- package/dist/specs/split/salesforce-subscription-management.json +1299 -0
- package/dist/specs/split/salesforce-tooling.json +2026 -0
- package/dist/specs/split/salesforce-ui.json +7426 -0
- package/package.json +47 -0
|
@@ -0,0 +1,2232 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import { buildAuthHeaders } from './auth.js';
|
|
3
|
+
|
|
4
|
+
const BASE_URL = 'https://api.github.com';
|
|
5
|
+
const APP_ID = 'github-issues';
|
|
6
|
+
|
|
7
|
+
function handleError(err) {
|
|
8
|
+
const status = err.response?.status;
|
|
9
|
+
const msg =
|
|
10
|
+
err.response?.data?.message ||
|
|
11
|
+
err.response?.data?.error ||
|
|
12
|
+
err.message;
|
|
13
|
+
if (status === 401) {
|
|
14
|
+
throw new Error(
|
|
15
|
+
`Token invalid.\nRun: npx adoptai-${APP_ID}-mcp --client cursor`
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
if (status === 403) {
|
|
19
|
+
throw new Error('Insufficient permissions. Check your API key scopes.');
|
|
20
|
+
}
|
|
21
|
+
if (status === 404) {
|
|
22
|
+
throw new Error('Resource not found. Check your parameters.');
|
|
23
|
+
}
|
|
24
|
+
if (status === 429) {
|
|
25
|
+
throw new Error('Rate limit exceeded. Please wait and try again.');
|
|
26
|
+
}
|
|
27
|
+
throw new Error(msg || 'API request failed');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @param {string} method
|
|
32
|
+
* @param {string} pathTemplate path starting with /
|
|
33
|
+
* @param {Record<string, unknown>} params
|
|
34
|
+
* @param {{ deleteSendsJsonBody?: boolean }} [opts] GitHub uses JSON body on some DELETE routes
|
|
35
|
+
*/
|
|
36
|
+
async function apiRequest(method, pathTemplate, params = {}, opts = {}) {
|
|
37
|
+
const { deleteSendsJsonBody = false } = opts;
|
|
38
|
+
const headers = buildAuthHeaders();
|
|
39
|
+
let url = BASE_URL + pathTemplate;
|
|
40
|
+
const pathKeys = [...pathTemplate.matchAll(/\{([^}]+)\}/g)].map((m) => m[1]);
|
|
41
|
+
const pathKeySet = new Set(pathKeys);
|
|
42
|
+
|
|
43
|
+
for (const key of pathKeys) {
|
|
44
|
+
const value = params[key];
|
|
45
|
+
if (value !== undefined && value !== null) {
|
|
46
|
+
url = url.replace(`{${key}}`, encodeURIComponent(String(value)));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const rest = { ...params };
|
|
51
|
+
for (const key of pathKeys) delete rest[key];
|
|
52
|
+
|
|
53
|
+
const m = method.toUpperCase();
|
|
54
|
+
const useQuery = m === 'GET' || (m === 'DELETE' && !deleteSendsJsonBody);
|
|
55
|
+
const queryParams = {};
|
|
56
|
+
const bodyParams = {};
|
|
57
|
+
|
|
58
|
+
for (const [key, value] of Object.entries(rest)) {
|
|
59
|
+
if (value === undefined) continue;
|
|
60
|
+
if (useQuery) queryParams[key] = value;
|
|
61
|
+
else bodyParams[key] = value;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
try {
|
|
65
|
+
const res = await axios({
|
|
66
|
+
method: m,
|
|
67
|
+
url,
|
|
68
|
+
headers: { 'Content-Type': 'application/json', ...headers },
|
|
69
|
+
params: Object.keys(queryParams).length ? queryParams : undefined,
|
|
70
|
+
data: Object.keys(bodyParams).length ? bodyParams : undefined,
|
|
71
|
+
timeout: 30000,
|
|
72
|
+
});
|
|
73
|
+
if (res.status === 204 || res.data === '' || res.data === undefined) {
|
|
74
|
+
return { ok: true, status: res.status };
|
|
75
|
+
}
|
|
76
|
+
return res.data;
|
|
77
|
+
} catch (err) {
|
|
78
|
+
handleError(err);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const ENDPOINTS = [
|
|
83
|
+
{
|
|
84
|
+
"name": "issues_list",
|
|
85
|
+
"description": "List issues assigned to the authenticated user",
|
|
86
|
+
"method": "GET",
|
|
87
|
+
"path": "/issues",
|
|
88
|
+
"deleteSendsJsonBody": false,
|
|
89
|
+
"inputSchema": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"filter": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation.",
|
|
95
|
+
"enum": [
|
|
96
|
+
"assigned",
|
|
97
|
+
"created",
|
|
98
|
+
"mentioned",
|
|
99
|
+
"subscribed",
|
|
100
|
+
"repos",
|
|
101
|
+
"all"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"state": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"description": "Indicates the state of the issues to return.",
|
|
107
|
+
"enum": [
|
|
108
|
+
"open",
|
|
109
|
+
"closed",
|
|
110
|
+
"all"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"labels": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "A list of comma separated label names. Example: `bug,ui,@high`"
|
|
116
|
+
},
|
|
117
|
+
"sort": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "What to sort results by.",
|
|
120
|
+
"enum": [
|
|
121
|
+
"created",
|
|
122
|
+
"updated",
|
|
123
|
+
"comments"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"direction": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "The direction to sort the results by.",
|
|
129
|
+
"enum": [
|
|
130
|
+
"asc",
|
|
131
|
+
"desc"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"since": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
|
|
137
|
+
},
|
|
138
|
+
"collab": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"description": "The collab parameter"
|
|
141
|
+
},
|
|
142
|
+
"orgs": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"description": "The orgs parameter"
|
|
145
|
+
},
|
|
146
|
+
"owned": {
|
|
147
|
+
"type": "boolean",
|
|
148
|
+
"description": "The owned parameter"
|
|
149
|
+
},
|
|
150
|
+
"pulls": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"description": "The pulls parameter"
|
|
153
|
+
},
|
|
154
|
+
"per_page": {
|
|
155
|
+
"type": "number",
|
|
156
|
+
"description": "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).\""
|
|
157
|
+
},
|
|
158
|
+
"page": {
|
|
159
|
+
"type": "number",
|
|
160
|
+
"description": "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).\""
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": []
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "issues_list_for_org",
|
|
168
|
+
"description": "List organization issues assigned to the authenticated user",
|
|
169
|
+
"method": "GET",
|
|
170
|
+
"path": "/orgs/{org}/issues",
|
|
171
|
+
"deleteSendsJsonBody": false,
|
|
172
|
+
"inputSchema": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"org": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"description": "The organization name. The name is not case sensitive."
|
|
178
|
+
},
|
|
179
|
+
"filter": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation.",
|
|
182
|
+
"enum": [
|
|
183
|
+
"assigned",
|
|
184
|
+
"created",
|
|
185
|
+
"mentioned",
|
|
186
|
+
"subscribed",
|
|
187
|
+
"repos",
|
|
188
|
+
"all"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"state": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"description": "Indicates the state of the issues to return.",
|
|
194
|
+
"enum": [
|
|
195
|
+
"open",
|
|
196
|
+
"closed",
|
|
197
|
+
"all"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"labels": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"description": "A list of comma separated label names. Example: `bug,ui,@high`"
|
|
203
|
+
},
|
|
204
|
+
"type": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"description": "Can be the name of an issue type."
|
|
207
|
+
},
|
|
208
|
+
"sort": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"description": "What to sort results by.",
|
|
211
|
+
"enum": [
|
|
212
|
+
"created",
|
|
213
|
+
"updated",
|
|
214
|
+
"comments"
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
"direction": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "The direction to sort the results by.",
|
|
220
|
+
"enum": [
|
|
221
|
+
"asc",
|
|
222
|
+
"desc"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"since": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"description": "Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
|
|
228
|
+
},
|
|
229
|
+
"per_page": {
|
|
230
|
+
"type": "number",
|
|
231
|
+
"description": "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).\""
|
|
232
|
+
},
|
|
233
|
+
"page": {
|
|
234
|
+
"type": "number",
|
|
235
|
+
"description": "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).\""
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"required": [
|
|
239
|
+
"org"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "issues_list_assignees",
|
|
245
|
+
"description": "List assignees",
|
|
246
|
+
"method": "GET",
|
|
247
|
+
"path": "/repos/{owner}/{repo}/assignees",
|
|
248
|
+
"deleteSendsJsonBody": false,
|
|
249
|
+
"inputSchema": {
|
|
250
|
+
"type": "object",
|
|
251
|
+
"properties": {
|
|
252
|
+
"owner": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
255
|
+
},
|
|
256
|
+
"repo": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
259
|
+
},
|
|
260
|
+
"per_page": {
|
|
261
|
+
"type": "number",
|
|
262
|
+
"description": "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).\""
|
|
263
|
+
},
|
|
264
|
+
"page": {
|
|
265
|
+
"type": "number",
|
|
266
|
+
"description": "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).\""
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"required": [
|
|
270
|
+
"owner",
|
|
271
|
+
"repo"
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "issues_check_user_can_be_assigned",
|
|
277
|
+
"description": "Check if a user can be assigned",
|
|
278
|
+
"method": "GET",
|
|
279
|
+
"path": "/repos/{owner}/{repo}/assignees/{assignee}",
|
|
280
|
+
"deleteSendsJsonBody": false,
|
|
281
|
+
"inputSchema": {
|
|
282
|
+
"type": "object",
|
|
283
|
+
"properties": {
|
|
284
|
+
"owner": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
287
|
+
},
|
|
288
|
+
"repo": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
291
|
+
},
|
|
292
|
+
"assignee": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"description": "The assignee parameter"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"required": [
|
|
298
|
+
"owner",
|
|
299
|
+
"repo",
|
|
300
|
+
"assignee"
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "issues_list_for_repo",
|
|
306
|
+
"description": "List repository issues",
|
|
307
|
+
"method": "GET",
|
|
308
|
+
"path": "/repos/{owner}/{repo}/issues",
|
|
309
|
+
"deleteSendsJsonBody": false,
|
|
310
|
+
"inputSchema": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"properties": {
|
|
313
|
+
"owner": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
316
|
+
},
|
|
317
|
+
"repo": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
320
|
+
},
|
|
321
|
+
"milestone": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"description": "If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned."
|
|
324
|
+
},
|
|
325
|
+
"state": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"description": "Indicates the state of the issues to return.",
|
|
328
|
+
"enum": [
|
|
329
|
+
"open",
|
|
330
|
+
"closed",
|
|
331
|
+
"all"
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
"assignee": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"description": "Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user."
|
|
337
|
+
},
|
|
338
|
+
"type": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"description": "Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned."
|
|
341
|
+
},
|
|
342
|
+
"creator": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"description": "The user that created the issue."
|
|
345
|
+
},
|
|
346
|
+
"mentioned": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"description": "A user that's mentioned in the issue."
|
|
349
|
+
},
|
|
350
|
+
"labels": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"description": "A list of comma separated label names. Example: `bug,ui,@high`"
|
|
353
|
+
},
|
|
354
|
+
"sort": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"description": "What to sort results by.",
|
|
357
|
+
"enum": [
|
|
358
|
+
"created",
|
|
359
|
+
"updated",
|
|
360
|
+
"comments"
|
|
361
|
+
]
|
|
362
|
+
},
|
|
363
|
+
"direction": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"description": "The direction to sort the results by.",
|
|
366
|
+
"enum": [
|
|
367
|
+
"asc",
|
|
368
|
+
"desc"
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
"since": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"description": "Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
|
|
374
|
+
},
|
|
375
|
+
"per_page": {
|
|
376
|
+
"type": "number",
|
|
377
|
+
"description": "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
|
+
},
|
|
379
|
+
"page": {
|
|
380
|
+
"type": "number",
|
|
381
|
+
"description": "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).\""
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"required": [
|
|
385
|
+
"owner",
|
|
386
|
+
"repo"
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"name": "issues_create",
|
|
392
|
+
"description": "Create an issue",
|
|
393
|
+
"method": "POST",
|
|
394
|
+
"path": "/repos/{owner}/{repo}/issues",
|
|
395
|
+
"deleteSendsJsonBody": false,
|
|
396
|
+
"inputSchema": {
|
|
397
|
+
"type": "object",
|
|
398
|
+
"properties": {
|
|
399
|
+
"owner": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
402
|
+
},
|
|
403
|
+
"repo": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
406
|
+
},
|
|
407
|
+
"title": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"description": "The title of the issue."
|
|
410
|
+
},
|
|
411
|
+
"body": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"description": "The contents of the issue."
|
|
414
|
+
},
|
|
415
|
+
"assignee": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"description": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_"
|
|
418
|
+
},
|
|
419
|
+
"milestone": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"description": "The milestone field"
|
|
422
|
+
},
|
|
423
|
+
"labels": {
|
|
424
|
+
"type": "array",
|
|
425
|
+
"description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._"
|
|
426
|
+
},
|
|
427
|
+
"assignees": {
|
|
428
|
+
"type": "array",
|
|
429
|
+
"description": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._"
|
|
430
|
+
},
|
|
431
|
+
"type": {
|
|
432
|
+
"type": "string",
|
|
433
|
+
"description": "The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"required": [
|
|
437
|
+
"owner",
|
|
438
|
+
"repo",
|
|
439
|
+
"title"
|
|
440
|
+
]
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "issues_list_comments_for_repo",
|
|
445
|
+
"description": "List issue comments for a repository",
|
|
446
|
+
"method": "GET",
|
|
447
|
+
"path": "/repos/{owner}/{repo}/issues/comments",
|
|
448
|
+
"deleteSendsJsonBody": false,
|
|
449
|
+
"inputSchema": {
|
|
450
|
+
"type": "object",
|
|
451
|
+
"properties": {
|
|
452
|
+
"owner": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
455
|
+
},
|
|
456
|
+
"repo": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
459
|
+
},
|
|
460
|
+
"sort": {
|
|
461
|
+
"type": "string",
|
|
462
|
+
"description": "The property to sort the results by.",
|
|
463
|
+
"enum": [
|
|
464
|
+
"created",
|
|
465
|
+
"updated"
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
"direction": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"description": "Either `asc` or `desc`. Ignored without the `sort` parameter.",
|
|
471
|
+
"enum": [
|
|
472
|
+
"asc",
|
|
473
|
+
"desc"
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
"since": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"description": "Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
|
|
479
|
+
},
|
|
480
|
+
"per_page": {
|
|
481
|
+
"type": "number",
|
|
482
|
+
"description": "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).\""
|
|
483
|
+
},
|
|
484
|
+
"page": {
|
|
485
|
+
"type": "number",
|
|
486
|
+
"description": "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).\""
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
"required": [
|
|
490
|
+
"owner",
|
|
491
|
+
"repo"
|
|
492
|
+
]
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "issues_get_comment",
|
|
497
|
+
"description": "Get an issue comment",
|
|
498
|
+
"method": "GET",
|
|
499
|
+
"path": "/repos/{owner}/{repo}/issues/comments/{comment_id}",
|
|
500
|
+
"deleteSendsJsonBody": false,
|
|
501
|
+
"inputSchema": {
|
|
502
|
+
"type": "object",
|
|
503
|
+
"properties": {
|
|
504
|
+
"owner": {
|
|
505
|
+
"type": "string",
|
|
506
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
507
|
+
},
|
|
508
|
+
"repo": {
|
|
509
|
+
"type": "string",
|
|
510
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
511
|
+
},
|
|
512
|
+
"comment_id": {
|
|
513
|
+
"type": "number",
|
|
514
|
+
"description": "The unique identifier of the comment."
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"required": [
|
|
518
|
+
"owner",
|
|
519
|
+
"repo",
|
|
520
|
+
"comment_id"
|
|
521
|
+
]
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "issues_update_comment",
|
|
526
|
+
"description": "Update an issue comment",
|
|
527
|
+
"method": "PATCH",
|
|
528
|
+
"path": "/repos/{owner}/{repo}/issues/comments/{comment_id}",
|
|
529
|
+
"deleteSendsJsonBody": false,
|
|
530
|
+
"inputSchema": {
|
|
531
|
+
"type": "object",
|
|
532
|
+
"properties": {
|
|
533
|
+
"owner": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
536
|
+
},
|
|
537
|
+
"repo": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
540
|
+
},
|
|
541
|
+
"comment_id": {
|
|
542
|
+
"type": "number",
|
|
543
|
+
"description": "The unique identifier of the comment."
|
|
544
|
+
},
|
|
545
|
+
"body": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"description": "The contents of the comment."
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
"required": [
|
|
551
|
+
"owner",
|
|
552
|
+
"repo",
|
|
553
|
+
"comment_id",
|
|
554
|
+
"body"
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "issues_delete_comment",
|
|
560
|
+
"description": "Delete an issue comment",
|
|
561
|
+
"method": "DELETE",
|
|
562
|
+
"path": "/repos/{owner}/{repo}/issues/comments/{comment_id}",
|
|
563
|
+
"deleteSendsJsonBody": false,
|
|
564
|
+
"inputSchema": {
|
|
565
|
+
"type": "object",
|
|
566
|
+
"properties": {
|
|
567
|
+
"owner": {
|
|
568
|
+
"type": "string",
|
|
569
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
570
|
+
},
|
|
571
|
+
"repo": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
574
|
+
},
|
|
575
|
+
"comment_id": {
|
|
576
|
+
"type": "number",
|
|
577
|
+
"description": "The unique identifier of the comment."
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"required": [
|
|
581
|
+
"owner",
|
|
582
|
+
"repo",
|
|
583
|
+
"comment_id"
|
|
584
|
+
]
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "issues_pin_comment",
|
|
589
|
+
"description": "Pin an issue comment",
|
|
590
|
+
"method": "PUT",
|
|
591
|
+
"path": "/repos/{owner}/{repo}/issues/comments/{comment_id}/pin",
|
|
592
|
+
"deleteSendsJsonBody": false,
|
|
593
|
+
"inputSchema": {
|
|
594
|
+
"type": "object",
|
|
595
|
+
"properties": {
|
|
596
|
+
"owner": {
|
|
597
|
+
"type": "string",
|
|
598
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
599
|
+
},
|
|
600
|
+
"repo": {
|
|
601
|
+
"type": "string",
|
|
602
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
603
|
+
},
|
|
604
|
+
"comment_id": {
|
|
605
|
+
"type": "number",
|
|
606
|
+
"description": "The unique identifier of the comment."
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"required": [
|
|
610
|
+
"owner",
|
|
611
|
+
"repo",
|
|
612
|
+
"comment_id"
|
|
613
|
+
]
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"name": "issues_unpin_comment",
|
|
618
|
+
"description": "Unpin an issue comment",
|
|
619
|
+
"method": "DELETE",
|
|
620
|
+
"path": "/repos/{owner}/{repo}/issues/comments/{comment_id}/pin",
|
|
621
|
+
"deleteSendsJsonBody": false,
|
|
622
|
+
"inputSchema": {
|
|
623
|
+
"type": "object",
|
|
624
|
+
"properties": {
|
|
625
|
+
"owner": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
628
|
+
},
|
|
629
|
+
"repo": {
|
|
630
|
+
"type": "string",
|
|
631
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
632
|
+
},
|
|
633
|
+
"comment_id": {
|
|
634
|
+
"type": "number",
|
|
635
|
+
"description": "The unique identifier of the comment."
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"required": [
|
|
639
|
+
"owner",
|
|
640
|
+
"repo",
|
|
641
|
+
"comment_id"
|
|
642
|
+
]
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "issues_list_events_for_repo",
|
|
647
|
+
"description": "List issue events for a repository",
|
|
648
|
+
"method": "GET",
|
|
649
|
+
"path": "/repos/{owner}/{repo}/issues/events",
|
|
650
|
+
"deleteSendsJsonBody": false,
|
|
651
|
+
"inputSchema": {
|
|
652
|
+
"type": "object",
|
|
653
|
+
"properties": {
|
|
654
|
+
"owner": {
|
|
655
|
+
"type": "string",
|
|
656
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
657
|
+
},
|
|
658
|
+
"repo": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
661
|
+
},
|
|
662
|
+
"per_page": {
|
|
663
|
+
"type": "number",
|
|
664
|
+
"description": "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).\""
|
|
665
|
+
},
|
|
666
|
+
"page": {
|
|
667
|
+
"type": "number",
|
|
668
|
+
"description": "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).\""
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
"required": [
|
|
672
|
+
"owner",
|
|
673
|
+
"repo"
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "issues_get_event",
|
|
679
|
+
"description": "Get an issue event",
|
|
680
|
+
"method": "GET",
|
|
681
|
+
"path": "/repos/{owner}/{repo}/issues/events/{event_id}",
|
|
682
|
+
"deleteSendsJsonBody": false,
|
|
683
|
+
"inputSchema": {
|
|
684
|
+
"type": "object",
|
|
685
|
+
"properties": {
|
|
686
|
+
"owner": {
|
|
687
|
+
"type": "string",
|
|
688
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
689
|
+
},
|
|
690
|
+
"repo": {
|
|
691
|
+
"type": "string",
|
|
692
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
693
|
+
},
|
|
694
|
+
"event_id": {
|
|
695
|
+
"type": "number",
|
|
696
|
+
"description": "The event_id parameter"
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
"required": [
|
|
700
|
+
"owner",
|
|
701
|
+
"repo",
|
|
702
|
+
"event_id"
|
|
703
|
+
]
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"name": "issues_get",
|
|
708
|
+
"description": "Get an issue",
|
|
709
|
+
"method": "GET",
|
|
710
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}",
|
|
711
|
+
"deleteSendsJsonBody": false,
|
|
712
|
+
"inputSchema": {
|
|
713
|
+
"type": "object",
|
|
714
|
+
"properties": {
|
|
715
|
+
"owner": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
718
|
+
},
|
|
719
|
+
"repo": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
722
|
+
},
|
|
723
|
+
"issue_number": {
|
|
724
|
+
"type": "number",
|
|
725
|
+
"description": "The number that identifies the issue."
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"required": [
|
|
729
|
+
"owner",
|
|
730
|
+
"repo",
|
|
731
|
+
"issue_number"
|
|
732
|
+
]
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"name": "issues_update",
|
|
737
|
+
"description": "Update an issue",
|
|
738
|
+
"method": "PATCH",
|
|
739
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}",
|
|
740
|
+
"deleteSendsJsonBody": false,
|
|
741
|
+
"inputSchema": {
|
|
742
|
+
"type": "object",
|
|
743
|
+
"properties": {
|
|
744
|
+
"owner": {
|
|
745
|
+
"type": "string",
|
|
746
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
747
|
+
},
|
|
748
|
+
"repo": {
|
|
749
|
+
"type": "string",
|
|
750
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
751
|
+
},
|
|
752
|
+
"issue_number": {
|
|
753
|
+
"type": "number",
|
|
754
|
+
"description": "The number that identifies the issue."
|
|
755
|
+
},
|
|
756
|
+
"title": {
|
|
757
|
+
"type": "string",
|
|
758
|
+
"description": "The title of the issue."
|
|
759
|
+
},
|
|
760
|
+
"body": {
|
|
761
|
+
"type": "string",
|
|
762
|
+
"description": "The contents of the issue."
|
|
763
|
+
},
|
|
764
|
+
"assignee": {
|
|
765
|
+
"type": "string",
|
|
766
|
+
"description": "Username to assign to this issue. **This field is closing down.**"
|
|
767
|
+
},
|
|
768
|
+
"state": {
|
|
769
|
+
"type": "string",
|
|
770
|
+
"description": "The open or closed state of the issue.",
|
|
771
|
+
"enum": [
|
|
772
|
+
"open",
|
|
773
|
+
"closed"
|
|
774
|
+
]
|
|
775
|
+
},
|
|
776
|
+
"state_reason": {
|
|
777
|
+
"type": "string",
|
|
778
|
+
"description": "The reason for the state change. Ignored unless `state` is changed.",
|
|
779
|
+
"enum": [
|
|
780
|
+
"completed",
|
|
781
|
+
"not_planned",
|
|
782
|
+
"duplicate",
|
|
783
|
+
"reopened",
|
|
784
|
+
null
|
|
785
|
+
]
|
|
786
|
+
},
|
|
787
|
+
"milestone": {
|
|
788
|
+
"type": "string",
|
|
789
|
+
"description": "The milestone field"
|
|
790
|
+
},
|
|
791
|
+
"labels": {
|
|
792
|
+
"type": "array",
|
|
793
|
+
"description": "Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped."
|
|
794
|
+
},
|
|
795
|
+
"assignees": {
|
|
796
|
+
"type": "array",
|
|
797
|
+
"description": "Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped."
|
|
798
|
+
},
|
|
799
|
+
"issue_field_values": {
|
|
800
|
+
"type": "array",
|
|
801
|
+
"description": "An array of issue field values to set on this issue. Each field value must include the field ID and the value to set. Only users with push access can set field values for issues"
|
|
802
|
+
},
|
|
803
|
+
"type": {
|
|
804
|
+
"type": "string",
|
|
805
|
+
"description": "The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped."
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"required": [
|
|
809
|
+
"owner",
|
|
810
|
+
"repo",
|
|
811
|
+
"issue_number"
|
|
812
|
+
]
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"name": "issues_add_assignees",
|
|
817
|
+
"description": "Add assignees to an issue",
|
|
818
|
+
"method": "POST",
|
|
819
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/assignees",
|
|
820
|
+
"deleteSendsJsonBody": false,
|
|
821
|
+
"inputSchema": {
|
|
822
|
+
"type": "object",
|
|
823
|
+
"properties": {
|
|
824
|
+
"owner": {
|
|
825
|
+
"type": "string",
|
|
826
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
827
|
+
},
|
|
828
|
+
"repo": {
|
|
829
|
+
"type": "string",
|
|
830
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
831
|
+
},
|
|
832
|
+
"issue_number": {
|
|
833
|
+
"type": "number",
|
|
834
|
+
"description": "The number that identifies the issue."
|
|
835
|
+
},
|
|
836
|
+
"assignees": {
|
|
837
|
+
"type": "array",
|
|
838
|
+
"description": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._"
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
"required": [
|
|
842
|
+
"owner",
|
|
843
|
+
"repo",
|
|
844
|
+
"issue_number"
|
|
845
|
+
]
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"name": "issues_remove_assignees",
|
|
850
|
+
"description": "Remove assignees from an issue",
|
|
851
|
+
"method": "DELETE",
|
|
852
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/assignees",
|
|
853
|
+
"deleteSendsJsonBody": true,
|
|
854
|
+
"inputSchema": {
|
|
855
|
+
"type": "object",
|
|
856
|
+
"properties": {
|
|
857
|
+
"owner": {
|
|
858
|
+
"type": "string",
|
|
859
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
860
|
+
},
|
|
861
|
+
"repo": {
|
|
862
|
+
"type": "string",
|
|
863
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
864
|
+
},
|
|
865
|
+
"issue_number": {
|
|
866
|
+
"type": "number",
|
|
867
|
+
"description": "The number that identifies the issue."
|
|
868
|
+
},
|
|
869
|
+
"assignees": {
|
|
870
|
+
"type": "array",
|
|
871
|
+
"description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._"
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
"required": [
|
|
875
|
+
"owner",
|
|
876
|
+
"repo",
|
|
877
|
+
"issue_number"
|
|
878
|
+
]
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "issues_check_user_can_be_assigned_to_issue",
|
|
883
|
+
"description": "Check if a user can be assigned to a issue",
|
|
884
|
+
"method": "GET",
|
|
885
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}",
|
|
886
|
+
"deleteSendsJsonBody": false,
|
|
887
|
+
"inputSchema": {
|
|
888
|
+
"type": "object",
|
|
889
|
+
"properties": {
|
|
890
|
+
"owner": {
|
|
891
|
+
"type": "string",
|
|
892
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
893
|
+
},
|
|
894
|
+
"repo": {
|
|
895
|
+
"type": "string",
|
|
896
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
897
|
+
},
|
|
898
|
+
"issue_number": {
|
|
899
|
+
"type": "number",
|
|
900
|
+
"description": "The number that identifies the issue."
|
|
901
|
+
},
|
|
902
|
+
"assignee": {
|
|
903
|
+
"type": "string",
|
|
904
|
+
"description": "The assignee parameter"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"required": [
|
|
908
|
+
"owner",
|
|
909
|
+
"repo",
|
|
910
|
+
"issue_number",
|
|
911
|
+
"assignee"
|
|
912
|
+
]
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"name": "issues_list_comments",
|
|
917
|
+
"description": "List issue comments",
|
|
918
|
+
"method": "GET",
|
|
919
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/comments",
|
|
920
|
+
"deleteSendsJsonBody": false,
|
|
921
|
+
"inputSchema": {
|
|
922
|
+
"type": "object",
|
|
923
|
+
"properties": {
|
|
924
|
+
"owner": {
|
|
925
|
+
"type": "string",
|
|
926
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
927
|
+
},
|
|
928
|
+
"repo": {
|
|
929
|
+
"type": "string",
|
|
930
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
931
|
+
},
|
|
932
|
+
"issue_number": {
|
|
933
|
+
"type": "number",
|
|
934
|
+
"description": "The number that identifies the issue."
|
|
935
|
+
},
|
|
936
|
+
"since": {
|
|
937
|
+
"type": "string",
|
|
938
|
+
"description": "Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
|
|
939
|
+
},
|
|
940
|
+
"per_page": {
|
|
941
|
+
"type": "number",
|
|
942
|
+
"description": "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).\""
|
|
943
|
+
},
|
|
944
|
+
"page": {
|
|
945
|
+
"type": "number",
|
|
946
|
+
"description": "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).\""
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
"required": [
|
|
950
|
+
"owner",
|
|
951
|
+
"repo",
|
|
952
|
+
"issue_number"
|
|
953
|
+
]
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"name": "issues_create_comment",
|
|
958
|
+
"description": "Create an issue comment",
|
|
959
|
+
"method": "POST",
|
|
960
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/comments",
|
|
961
|
+
"deleteSendsJsonBody": false,
|
|
962
|
+
"inputSchema": {
|
|
963
|
+
"type": "object",
|
|
964
|
+
"properties": {
|
|
965
|
+
"owner": {
|
|
966
|
+
"type": "string",
|
|
967
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
968
|
+
},
|
|
969
|
+
"repo": {
|
|
970
|
+
"type": "string",
|
|
971
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
972
|
+
},
|
|
973
|
+
"issue_number": {
|
|
974
|
+
"type": "number",
|
|
975
|
+
"description": "The number that identifies the issue."
|
|
976
|
+
},
|
|
977
|
+
"body": {
|
|
978
|
+
"type": "string",
|
|
979
|
+
"description": "The contents of the comment."
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
"required": [
|
|
983
|
+
"owner",
|
|
984
|
+
"repo",
|
|
985
|
+
"issue_number",
|
|
986
|
+
"body"
|
|
987
|
+
]
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"name": "issues_list_dependencies_blocked_by",
|
|
992
|
+
"description": "List dependencies an issue is blocked by",
|
|
993
|
+
"method": "GET",
|
|
994
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by",
|
|
995
|
+
"deleteSendsJsonBody": false,
|
|
996
|
+
"inputSchema": {
|
|
997
|
+
"type": "object",
|
|
998
|
+
"properties": {
|
|
999
|
+
"owner": {
|
|
1000
|
+
"type": "string",
|
|
1001
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1002
|
+
},
|
|
1003
|
+
"repo": {
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1006
|
+
},
|
|
1007
|
+
"issue_number": {
|
|
1008
|
+
"type": "number",
|
|
1009
|
+
"description": "The number that identifies the issue."
|
|
1010
|
+
},
|
|
1011
|
+
"per_page": {
|
|
1012
|
+
"type": "number",
|
|
1013
|
+
"description": "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).\""
|
|
1014
|
+
},
|
|
1015
|
+
"page": {
|
|
1016
|
+
"type": "number",
|
|
1017
|
+
"description": "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).\""
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
"required": [
|
|
1021
|
+
"owner",
|
|
1022
|
+
"repo",
|
|
1023
|
+
"issue_number"
|
|
1024
|
+
]
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "issues_add_blocked_by_dependency",
|
|
1029
|
+
"description": "Add a dependency an issue is blocked by",
|
|
1030
|
+
"method": "POST",
|
|
1031
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by",
|
|
1032
|
+
"deleteSendsJsonBody": false,
|
|
1033
|
+
"inputSchema": {
|
|
1034
|
+
"type": "object",
|
|
1035
|
+
"properties": {
|
|
1036
|
+
"owner": {
|
|
1037
|
+
"type": "string",
|
|
1038
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1039
|
+
},
|
|
1040
|
+
"repo": {
|
|
1041
|
+
"type": "string",
|
|
1042
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1043
|
+
},
|
|
1044
|
+
"issue_number": {
|
|
1045
|
+
"type": "number",
|
|
1046
|
+
"description": "The number that identifies the issue."
|
|
1047
|
+
},
|
|
1048
|
+
"issue_id": {
|
|
1049
|
+
"type": "number",
|
|
1050
|
+
"description": "The id of the issue that blocks the current issue"
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
"required": [
|
|
1054
|
+
"owner",
|
|
1055
|
+
"repo",
|
|
1056
|
+
"issue_number",
|
|
1057
|
+
"issue_id"
|
|
1058
|
+
]
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"name": "issues_remove_dependency_blocked_by",
|
|
1063
|
+
"description": "Remove dependency an issue is blocked by",
|
|
1064
|
+
"method": "DELETE",
|
|
1065
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}",
|
|
1066
|
+
"deleteSendsJsonBody": false,
|
|
1067
|
+
"inputSchema": {
|
|
1068
|
+
"type": "object",
|
|
1069
|
+
"properties": {
|
|
1070
|
+
"owner": {
|
|
1071
|
+
"type": "string",
|
|
1072
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1073
|
+
},
|
|
1074
|
+
"repo": {
|
|
1075
|
+
"type": "string",
|
|
1076
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1077
|
+
},
|
|
1078
|
+
"issue_number": {
|
|
1079
|
+
"type": "number",
|
|
1080
|
+
"description": "The number that identifies the issue."
|
|
1081
|
+
},
|
|
1082
|
+
"issue_id": {
|
|
1083
|
+
"type": "number",
|
|
1084
|
+
"description": "The id of the blocking issue to remove as a dependency"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
"required": [
|
|
1088
|
+
"owner",
|
|
1089
|
+
"repo",
|
|
1090
|
+
"issue_number",
|
|
1091
|
+
"issue_id"
|
|
1092
|
+
]
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"name": "issues_list_dependencies_blocking",
|
|
1097
|
+
"description": "List dependencies an issue is blocking",
|
|
1098
|
+
"method": "GET",
|
|
1099
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking",
|
|
1100
|
+
"deleteSendsJsonBody": false,
|
|
1101
|
+
"inputSchema": {
|
|
1102
|
+
"type": "object",
|
|
1103
|
+
"properties": {
|
|
1104
|
+
"owner": {
|
|
1105
|
+
"type": "string",
|
|
1106
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1107
|
+
},
|
|
1108
|
+
"repo": {
|
|
1109
|
+
"type": "string",
|
|
1110
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1111
|
+
},
|
|
1112
|
+
"issue_number": {
|
|
1113
|
+
"type": "number",
|
|
1114
|
+
"description": "The number that identifies the issue."
|
|
1115
|
+
},
|
|
1116
|
+
"per_page": {
|
|
1117
|
+
"type": "number",
|
|
1118
|
+
"description": "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).\""
|
|
1119
|
+
},
|
|
1120
|
+
"page": {
|
|
1121
|
+
"type": "number",
|
|
1122
|
+
"description": "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).\""
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
"required": [
|
|
1126
|
+
"owner",
|
|
1127
|
+
"repo",
|
|
1128
|
+
"issue_number"
|
|
1129
|
+
]
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"name": "issues_list_events",
|
|
1134
|
+
"description": "List issue events",
|
|
1135
|
+
"method": "GET",
|
|
1136
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/events",
|
|
1137
|
+
"deleteSendsJsonBody": false,
|
|
1138
|
+
"inputSchema": {
|
|
1139
|
+
"type": "object",
|
|
1140
|
+
"properties": {
|
|
1141
|
+
"owner": {
|
|
1142
|
+
"type": "string",
|
|
1143
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1144
|
+
},
|
|
1145
|
+
"repo": {
|
|
1146
|
+
"type": "string",
|
|
1147
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1148
|
+
},
|
|
1149
|
+
"issue_number": {
|
|
1150
|
+
"type": "number",
|
|
1151
|
+
"description": "The number that identifies the issue."
|
|
1152
|
+
},
|
|
1153
|
+
"per_page": {
|
|
1154
|
+
"type": "number",
|
|
1155
|
+
"description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""
|
|
1156
|
+
},
|
|
1157
|
+
"page": {
|
|
1158
|
+
"type": "number",
|
|
1159
|
+
"description": "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).\""
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"required": [
|
|
1163
|
+
"owner",
|
|
1164
|
+
"repo",
|
|
1165
|
+
"issue_number"
|
|
1166
|
+
]
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"name": "issues_list_issue_field_values_for_issue",
|
|
1171
|
+
"description": "List issue field values for an issue",
|
|
1172
|
+
"method": "GET",
|
|
1173
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/issue-field-values",
|
|
1174
|
+
"deleteSendsJsonBody": false,
|
|
1175
|
+
"inputSchema": {
|
|
1176
|
+
"type": "object",
|
|
1177
|
+
"properties": {
|
|
1178
|
+
"owner": {
|
|
1179
|
+
"type": "string",
|
|
1180
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1181
|
+
},
|
|
1182
|
+
"repo": {
|
|
1183
|
+
"type": "string",
|
|
1184
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1185
|
+
},
|
|
1186
|
+
"issue_number": {
|
|
1187
|
+
"type": "number",
|
|
1188
|
+
"description": "The number that identifies the issue."
|
|
1189
|
+
},
|
|
1190
|
+
"per_page": {
|
|
1191
|
+
"type": "number",
|
|
1192
|
+
"description": "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).\""
|
|
1193
|
+
},
|
|
1194
|
+
"page": {
|
|
1195
|
+
"type": "number",
|
|
1196
|
+
"description": "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).\""
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
"required": [
|
|
1200
|
+
"owner",
|
|
1201
|
+
"repo",
|
|
1202
|
+
"issue_number"
|
|
1203
|
+
]
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"name": "issues_list_labels_on_issue",
|
|
1208
|
+
"description": "List labels for an issue",
|
|
1209
|
+
"method": "GET",
|
|
1210
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/labels",
|
|
1211
|
+
"deleteSendsJsonBody": false,
|
|
1212
|
+
"inputSchema": {
|
|
1213
|
+
"type": "object",
|
|
1214
|
+
"properties": {
|
|
1215
|
+
"owner": {
|
|
1216
|
+
"type": "string",
|
|
1217
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1218
|
+
},
|
|
1219
|
+
"repo": {
|
|
1220
|
+
"type": "string",
|
|
1221
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1222
|
+
},
|
|
1223
|
+
"issue_number": {
|
|
1224
|
+
"type": "number",
|
|
1225
|
+
"description": "The number that identifies the issue."
|
|
1226
|
+
},
|
|
1227
|
+
"per_page": {
|
|
1228
|
+
"type": "number",
|
|
1229
|
+
"description": "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).\""
|
|
1230
|
+
},
|
|
1231
|
+
"page": {
|
|
1232
|
+
"type": "number",
|
|
1233
|
+
"description": "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).\""
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
"required": [
|
|
1237
|
+
"owner",
|
|
1238
|
+
"repo",
|
|
1239
|
+
"issue_number"
|
|
1240
|
+
]
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"name": "issues_add_labels",
|
|
1245
|
+
"description": "Add labels to an issue",
|
|
1246
|
+
"method": "POST",
|
|
1247
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/labels",
|
|
1248
|
+
"deleteSendsJsonBody": false,
|
|
1249
|
+
"inputSchema": {
|
|
1250
|
+
"type": "object",
|
|
1251
|
+
"properties": {
|
|
1252
|
+
"owner": {
|
|
1253
|
+
"type": "string",
|
|
1254
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1255
|
+
},
|
|
1256
|
+
"repo": {
|
|
1257
|
+
"type": "string",
|
|
1258
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1259
|
+
},
|
|
1260
|
+
"issue_number": {
|
|
1261
|
+
"type": "number",
|
|
1262
|
+
"description": "The number that identifies the issue."
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
"required": [
|
|
1266
|
+
"owner",
|
|
1267
|
+
"repo",
|
|
1268
|
+
"issue_number"
|
|
1269
|
+
]
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"name": "issues_set_labels",
|
|
1274
|
+
"description": "Set labels for an issue",
|
|
1275
|
+
"method": "PUT",
|
|
1276
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/labels",
|
|
1277
|
+
"deleteSendsJsonBody": false,
|
|
1278
|
+
"inputSchema": {
|
|
1279
|
+
"type": "object",
|
|
1280
|
+
"properties": {
|
|
1281
|
+
"owner": {
|
|
1282
|
+
"type": "string",
|
|
1283
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1284
|
+
},
|
|
1285
|
+
"repo": {
|
|
1286
|
+
"type": "string",
|
|
1287
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1288
|
+
},
|
|
1289
|
+
"issue_number": {
|
|
1290
|
+
"type": "number",
|
|
1291
|
+
"description": "The number that identifies the issue."
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
"required": [
|
|
1295
|
+
"owner",
|
|
1296
|
+
"repo",
|
|
1297
|
+
"issue_number"
|
|
1298
|
+
]
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "issues_remove_all_labels",
|
|
1303
|
+
"description": "Remove all labels from an issue",
|
|
1304
|
+
"method": "DELETE",
|
|
1305
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/labels",
|
|
1306
|
+
"deleteSendsJsonBody": false,
|
|
1307
|
+
"inputSchema": {
|
|
1308
|
+
"type": "object",
|
|
1309
|
+
"properties": {
|
|
1310
|
+
"owner": {
|
|
1311
|
+
"type": "string",
|
|
1312
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1313
|
+
},
|
|
1314
|
+
"repo": {
|
|
1315
|
+
"type": "string",
|
|
1316
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1317
|
+
},
|
|
1318
|
+
"issue_number": {
|
|
1319
|
+
"type": "number",
|
|
1320
|
+
"description": "The number that identifies the issue."
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
"required": [
|
|
1324
|
+
"owner",
|
|
1325
|
+
"repo",
|
|
1326
|
+
"issue_number"
|
|
1327
|
+
]
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"name": "issues_remove_label",
|
|
1332
|
+
"description": "Remove a label from an issue",
|
|
1333
|
+
"method": "DELETE",
|
|
1334
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}",
|
|
1335
|
+
"deleteSendsJsonBody": false,
|
|
1336
|
+
"inputSchema": {
|
|
1337
|
+
"type": "object",
|
|
1338
|
+
"properties": {
|
|
1339
|
+
"owner": {
|
|
1340
|
+
"type": "string",
|
|
1341
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1342
|
+
},
|
|
1343
|
+
"repo": {
|
|
1344
|
+
"type": "string",
|
|
1345
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1346
|
+
},
|
|
1347
|
+
"issue_number": {
|
|
1348
|
+
"type": "number",
|
|
1349
|
+
"description": "The number that identifies the issue."
|
|
1350
|
+
},
|
|
1351
|
+
"name": {
|
|
1352
|
+
"type": "string",
|
|
1353
|
+
"description": "The name parameter"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
"required": [
|
|
1357
|
+
"owner",
|
|
1358
|
+
"repo",
|
|
1359
|
+
"issue_number",
|
|
1360
|
+
"name"
|
|
1361
|
+
]
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"name": "issues_lock",
|
|
1366
|
+
"description": "Lock an issue",
|
|
1367
|
+
"method": "PUT",
|
|
1368
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/lock",
|
|
1369
|
+
"deleteSendsJsonBody": false,
|
|
1370
|
+
"inputSchema": {
|
|
1371
|
+
"type": "object",
|
|
1372
|
+
"properties": {
|
|
1373
|
+
"owner": {
|
|
1374
|
+
"type": "string",
|
|
1375
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1376
|
+
},
|
|
1377
|
+
"repo": {
|
|
1378
|
+
"type": "string",
|
|
1379
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1380
|
+
},
|
|
1381
|
+
"issue_number": {
|
|
1382
|
+
"type": "number",
|
|
1383
|
+
"description": "The number that identifies the issue."
|
|
1384
|
+
},
|
|
1385
|
+
"lock_reason": {
|
|
1386
|
+
"type": "string",
|
|
1387
|
+
"description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`",
|
|
1388
|
+
"enum": [
|
|
1389
|
+
"off-topic",
|
|
1390
|
+
"too heated",
|
|
1391
|
+
"resolved",
|
|
1392
|
+
"spam"
|
|
1393
|
+
]
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
"required": [
|
|
1397
|
+
"owner",
|
|
1398
|
+
"repo",
|
|
1399
|
+
"issue_number"
|
|
1400
|
+
]
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "issues_unlock",
|
|
1405
|
+
"description": "Unlock an issue",
|
|
1406
|
+
"method": "DELETE",
|
|
1407
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/lock",
|
|
1408
|
+
"deleteSendsJsonBody": false,
|
|
1409
|
+
"inputSchema": {
|
|
1410
|
+
"type": "object",
|
|
1411
|
+
"properties": {
|
|
1412
|
+
"owner": {
|
|
1413
|
+
"type": "string",
|
|
1414
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1415
|
+
},
|
|
1416
|
+
"repo": {
|
|
1417
|
+
"type": "string",
|
|
1418
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1419
|
+
},
|
|
1420
|
+
"issue_number": {
|
|
1421
|
+
"type": "number",
|
|
1422
|
+
"description": "The number that identifies the issue."
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1425
|
+
"required": [
|
|
1426
|
+
"owner",
|
|
1427
|
+
"repo",
|
|
1428
|
+
"issue_number"
|
|
1429
|
+
]
|
|
1430
|
+
}
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"name": "issues_get_parent",
|
|
1434
|
+
"description": "Get parent issue",
|
|
1435
|
+
"method": "GET",
|
|
1436
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/parent",
|
|
1437
|
+
"deleteSendsJsonBody": false,
|
|
1438
|
+
"inputSchema": {
|
|
1439
|
+
"type": "object",
|
|
1440
|
+
"properties": {
|
|
1441
|
+
"owner": {
|
|
1442
|
+
"type": "string",
|
|
1443
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1444
|
+
},
|
|
1445
|
+
"repo": {
|
|
1446
|
+
"type": "string",
|
|
1447
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1448
|
+
},
|
|
1449
|
+
"issue_number": {
|
|
1450
|
+
"type": "number",
|
|
1451
|
+
"description": "The number that identifies the issue."
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
"required": [
|
|
1455
|
+
"owner",
|
|
1456
|
+
"repo",
|
|
1457
|
+
"issue_number"
|
|
1458
|
+
]
|
|
1459
|
+
}
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"name": "issues_remove_sub_issue",
|
|
1463
|
+
"description": "Remove sub-issue",
|
|
1464
|
+
"method": "DELETE",
|
|
1465
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/sub_issue",
|
|
1466
|
+
"deleteSendsJsonBody": true,
|
|
1467
|
+
"inputSchema": {
|
|
1468
|
+
"type": "object",
|
|
1469
|
+
"properties": {
|
|
1470
|
+
"owner": {
|
|
1471
|
+
"type": "string",
|
|
1472
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1473
|
+
},
|
|
1474
|
+
"repo": {
|
|
1475
|
+
"type": "string",
|
|
1476
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1477
|
+
},
|
|
1478
|
+
"issue_number": {
|
|
1479
|
+
"type": "number",
|
|
1480
|
+
"description": "The number that identifies the issue."
|
|
1481
|
+
},
|
|
1482
|
+
"sub_issue_id": {
|
|
1483
|
+
"type": "number",
|
|
1484
|
+
"description": "The id of the sub-issue to remove"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
"required": [
|
|
1488
|
+
"owner",
|
|
1489
|
+
"repo",
|
|
1490
|
+
"issue_number",
|
|
1491
|
+
"sub_issue_id"
|
|
1492
|
+
]
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
"name": "issues_list_sub_issues",
|
|
1497
|
+
"description": "List sub-issues",
|
|
1498
|
+
"method": "GET",
|
|
1499
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues",
|
|
1500
|
+
"deleteSendsJsonBody": false,
|
|
1501
|
+
"inputSchema": {
|
|
1502
|
+
"type": "object",
|
|
1503
|
+
"properties": {
|
|
1504
|
+
"owner": {
|
|
1505
|
+
"type": "string",
|
|
1506
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1507
|
+
},
|
|
1508
|
+
"repo": {
|
|
1509
|
+
"type": "string",
|
|
1510
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1511
|
+
},
|
|
1512
|
+
"issue_number": {
|
|
1513
|
+
"type": "number",
|
|
1514
|
+
"description": "The number that identifies the issue."
|
|
1515
|
+
},
|
|
1516
|
+
"per_page": {
|
|
1517
|
+
"type": "number",
|
|
1518
|
+
"description": "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).\""
|
|
1519
|
+
},
|
|
1520
|
+
"page": {
|
|
1521
|
+
"type": "number",
|
|
1522
|
+
"description": "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).\""
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
"required": [
|
|
1526
|
+
"owner",
|
|
1527
|
+
"repo",
|
|
1528
|
+
"issue_number"
|
|
1529
|
+
]
|
|
1530
|
+
}
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"name": "issues_add_sub_issue",
|
|
1534
|
+
"description": "Add sub-issue",
|
|
1535
|
+
"method": "POST",
|
|
1536
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues",
|
|
1537
|
+
"deleteSendsJsonBody": false,
|
|
1538
|
+
"inputSchema": {
|
|
1539
|
+
"type": "object",
|
|
1540
|
+
"properties": {
|
|
1541
|
+
"owner": {
|
|
1542
|
+
"type": "string",
|
|
1543
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1544
|
+
},
|
|
1545
|
+
"repo": {
|
|
1546
|
+
"type": "string",
|
|
1547
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1548
|
+
},
|
|
1549
|
+
"issue_number": {
|
|
1550
|
+
"type": "number",
|
|
1551
|
+
"description": "The number that identifies the issue."
|
|
1552
|
+
},
|
|
1553
|
+
"sub_issue_id": {
|
|
1554
|
+
"type": "number",
|
|
1555
|
+
"description": "The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue"
|
|
1556
|
+
},
|
|
1557
|
+
"replace_parent": {
|
|
1558
|
+
"type": "boolean",
|
|
1559
|
+
"description": "Option that, when true, instructs the operation to replace the sub-issues current parent issue"
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
"required": [
|
|
1563
|
+
"owner",
|
|
1564
|
+
"repo",
|
|
1565
|
+
"issue_number",
|
|
1566
|
+
"sub_issue_id"
|
|
1567
|
+
]
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"name": "issues_reprioritize_sub_issue",
|
|
1572
|
+
"description": "Reprioritize sub-issue",
|
|
1573
|
+
"method": "PATCH",
|
|
1574
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority",
|
|
1575
|
+
"deleteSendsJsonBody": false,
|
|
1576
|
+
"inputSchema": {
|
|
1577
|
+
"type": "object",
|
|
1578
|
+
"properties": {
|
|
1579
|
+
"owner": {
|
|
1580
|
+
"type": "string",
|
|
1581
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1582
|
+
},
|
|
1583
|
+
"repo": {
|
|
1584
|
+
"type": "string",
|
|
1585
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1586
|
+
},
|
|
1587
|
+
"issue_number": {
|
|
1588
|
+
"type": "number",
|
|
1589
|
+
"description": "The number that identifies the issue."
|
|
1590
|
+
},
|
|
1591
|
+
"sub_issue_id": {
|
|
1592
|
+
"type": "number",
|
|
1593
|
+
"description": "The id of the sub-issue to reprioritize"
|
|
1594
|
+
},
|
|
1595
|
+
"after_id": {
|
|
1596
|
+
"type": "number",
|
|
1597
|
+
"description": "The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified)."
|
|
1598
|
+
},
|
|
1599
|
+
"before_id": {
|
|
1600
|
+
"type": "number",
|
|
1601
|
+
"description": "The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified)."
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
"required": [
|
|
1605
|
+
"owner",
|
|
1606
|
+
"repo",
|
|
1607
|
+
"issue_number",
|
|
1608
|
+
"sub_issue_id"
|
|
1609
|
+
]
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"name": "issues_list_events_for_timeline",
|
|
1614
|
+
"description": "List timeline events for an issue",
|
|
1615
|
+
"method": "GET",
|
|
1616
|
+
"path": "/repos/{owner}/{repo}/issues/{issue_number}/timeline",
|
|
1617
|
+
"deleteSendsJsonBody": false,
|
|
1618
|
+
"inputSchema": {
|
|
1619
|
+
"type": "object",
|
|
1620
|
+
"properties": {
|
|
1621
|
+
"owner": {
|
|
1622
|
+
"type": "string",
|
|
1623
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1624
|
+
},
|
|
1625
|
+
"repo": {
|
|
1626
|
+
"type": "string",
|
|
1627
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1628
|
+
},
|
|
1629
|
+
"issue_number": {
|
|
1630
|
+
"type": "number",
|
|
1631
|
+
"description": "The number that identifies the issue."
|
|
1632
|
+
},
|
|
1633
|
+
"per_page": {
|
|
1634
|
+
"type": "number",
|
|
1635
|
+
"description": "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).\""
|
|
1636
|
+
},
|
|
1637
|
+
"page": {
|
|
1638
|
+
"type": "number",
|
|
1639
|
+
"description": "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).\""
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
"required": [
|
|
1643
|
+
"owner",
|
|
1644
|
+
"repo",
|
|
1645
|
+
"issue_number"
|
|
1646
|
+
]
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"name": "issues_list_labels_for_repo",
|
|
1651
|
+
"description": "List labels for a repository",
|
|
1652
|
+
"method": "GET",
|
|
1653
|
+
"path": "/repos/{owner}/{repo}/labels",
|
|
1654
|
+
"deleteSendsJsonBody": false,
|
|
1655
|
+
"inputSchema": {
|
|
1656
|
+
"type": "object",
|
|
1657
|
+
"properties": {
|
|
1658
|
+
"owner": {
|
|
1659
|
+
"type": "string",
|
|
1660
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1661
|
+
},
|
|
1662
|
+
"repo": {
|
|
1663
|
+
"type": "string",
|
|
1664
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1665
|
+
},
|
|
1666
|
+
"per_page": {
|
|
1667
|
+
"type": "number",
|
|
1668
|
+
"description": "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).\""
|
|
1669
|
+
},
|
|
1670
|
+
"page": {
|
|
1671
|
+
"type": "number",
|
|
1672
|
+
"description": "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).\""
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
"required": [
|
|
1676
|
+
"owner",
|
|
1677
|
+
"repo"
|
|
1678
|
+
]
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"name": "issues_create_label",
|
|
1683
|
+
"description": "Create a label",
|
|
1684
|
+
"method": "POST",
|
|
1685
|
+
"path": "/repos/{owner}/{repo}/labels",
|
|
1686
|
+
"deleteSendsJsonBody": false,
|
|
1687
|
+
"inputSchema": {
|
|
1688
|
+
"type": "object",
|
|
1689
|
+
"properties": {
|
|
1690
|
+
"owner": {
|
|
1691
|
+
"type": "string",
|
|
1692
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1693
|
+
},
|
|
1694
|
+
"repo": {
|
|
1695
|
+
"type": "string",
|
|
1696
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1697
|
+
},
|
|
1698
|
+
"name": {
|
|
1699
|
+
"type": "string",
|
|
1700
|
+
"description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\""
|
|
1701
|
+
},
|
|
1702
|
+
"color": {
|
|
1703
|
+
"type": "string",
|
|
1704
|
+
"description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`."
|
|
1705
|
+
},
|
|
1706
|
+
"description": {
|
|
1707
|
+
"type": "string",
|
|
1708
|
+
"description": "A short description of the label. Must be 100 characters or fewer."
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
"required": [
|
|
1712
|
+
"owner",
|
|
1713
|
+
"repo",
|
|
1714
|
+
"name"
|
|
1715
|
+
]
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "issues_get_label",
|
|
1720
|
+
"description": "Get a label",
|
|
1721
|
+
"method": "GET",
|
|
1722
|
+
"path": "/repos/{owner}/{repo}/labels/{name}",
|
|
1723
|
+
"deleteSendsJsonBody": false,
|
|
1724
|
+
"inputSchema": {
|
|
1725
|
+
"type": "object",
|
|
1726
|
+
"properties": {
|
|
1727
|
+
"owner": {
|
|
1728
|
+
"type": "string",
|
|
1729
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1730
|
+
},
|
|
1731
|
+
"repo": {
|
|
1732
|
+
"type": "string",
|
|
1733
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1734
|
+
},
|
|
1735
|
+
"name": {
|
|
1736
|
+
"type": "string",
|
|
1737
|
+
"description": "The name parameter"
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
"required": [
|
|
1741
|
+
"owner",
|
|
1742
|
+
"repo",
|
|
1743
|
+
"name"
|
|
1744
|
+
]
|
|
1745
|
+
}
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
"name": "issues_update_label",
|
|
1749
|
+
"description": "Update a label",
|
|
1750
|
+
"method": "PATCH",
|
|
1751
|
+
"path": "/repos/{owner}/{repo}/labels/{name}",
|
|
1752
|
+
"deleteSendsJsonBody": false,
|
|
1753
|
+
"inputSchema": {
|
|
1754
|
+
"type": "object",
|
|
1755
|
+
"properties": {
|
|
1756
|
+
"owner": {
|
|
1757
|
+
"type": "string",
|
|
1758
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1759
|
+
},
|
|
1760
|
+
"repo": {
|
|
1761
|
+
"type": "string",
|
|
1762
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1763
|
+
},
|
|
1764
|
+
"name": {
|
|
1765
|
+
"type": "string",
|
|
1766
|
+
"description": "The name parameter"
|
|
1767
|
+
},
|
|
1768
|
+
"new_name": {
|
|
1769
|
+
"type": "string",
|
|
1770
|
+
"description": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\""
|
|
1771
|
+
},
|
|
1772
|
+
"color": {
|
|
1773
|
+
"type": "string",
|
|
1774
|
+
"description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`."
|
|
1775
|
+
},
|
|
1776
|
+
"description": {
|
|
1777
|
+
"type": "string",
|
|
1778
|
+
"description": "A short description of the label. Must be 100 characters or fewer."
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
"required": [
|
|
1782
|
+
"owner",
|
|
1783
|
+
"repo",
|
|
1784
|
+
"name"
|
|
1785
|
+
]
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"name": "issues_delete_label",
|
|
1790
|
+
"description": "Delete a label",
|
|
1791
|
+
"method": "DELETE",
|
|
1792
|
+
"path": "/repos/{owner}/{repo}/labels/{name}",
|
|
1793
|
+
"deleteSendsJsonBody": false,
|
|
1794
|
+
"inputSchema": {
|
|
1795
|
+
"type": "object",
|
|
1796
|
+
"properties": {
|
|
1797
|
+
"owner": {
|
|
1798
|
+
"type": "string",
|
|
1799
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1800
|
+
},
|
|
1801
|
+
"repo": {
|
|
1802
|
+
"type": "string",
|
|
1803
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1804
|
+
},
|
|
1805
|
+
"name": {
|
|
1806
|
+
"type": "string",
|
|
1807
|
+
"description": "The name parameter"
|
|
1808
|
+
}
|
|
1809
|
+
},
|
|
1810
|
+
"required": [
|
|
1811
|
+
"owner",
|
|
1812
|
+
"repo",
|
|
1813
|
+
"name"
|
|
1814
|
+
]
|
|
1815
|
+
}
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"name": "issues_list_milestones",
|
|
1819
|
+
"description": "List milestones",
|
|
1820
|
+
"method": "GET",
|
|
1821
|
+
"path": "/repos/{owner}/{repo}/milestones",
|
|
1822
|
+
"deleteSendsJsonBody": false,
|
|
1823
|
+
"inputSchema": {
|
|
1824
|
+
"type": "object",
|
|
1825
|
+
"properties": {
|
|
1826
|
+
"owner": {
|
|
1827
|
+
"type": "string",
|
|
1828
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1829
|
+
},
|
|
1830
|
+
"repo": {
|
|
1831
|
+
"type": "string",
|
|
1832
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1833
|
+
},
|
|
1834
|
+
"state": {
|
|
1835
|
+
"type": "string",
|
|
1836
|
+
"description": "The state of the milestone. Either `open`, `closed`, or `all`.",
|
|
1837
|
+
"enum": [
|
|
1838
|
+
"open",
|
|
1839
|
+
"closed",
|
|
1840
|
+
"all"
|
|
1841
|
+
]
|
|
1842
|
+
},
|
|
1843
|
+
"sort": {
|
|
1844
|
+
"type": "string",
|
|
1845
|
+
"description": "What to sort results by. Either `due_on` or `completeness`.",
|
|
1846
|
+
"enum": [
|
|
1847
|
+
"due_on",
|
|
1848
|
+
"completeness"
|
|
1849
|
+
]
|
|
1850
|
+
},
|
|
1851
|
+
"direction": {
|
|
1852
|
+
"type": "string",
|
|
1853
|
+
"description": "The direction of the sort. Either `asc` or `desc`.",
|
|
1854
|
+
"enum": [
|
|
1855
|
+
"asc",
|
|
1856
|
+
"desc"
|
|
1857
|
+
]
|
|
1858
|
+
},
|
|
1859
|
+
"per_page": {
|
|
1860
|
+
"type": "number",
|
|
1861
|
+
"description": "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).\""
|
|
1862
|
+
},
|
|
1863
|
+
"page": {
|
|
1864
|
+
"type": "number",
|
|
1865
|
+
"description": "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).\""
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"required": [
|
|
1869
|
+
"owner",
|
|
1870
|
+
"repo"
|
|
1871
|
+
]
|
|
1872
|
+
}
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
"name": "issues_create_milestone",
|
|
1876
|
+
"description": "Create a milestone",
|
|
1877
|
+
"method": "POST",
|
|
1878
|
+
"path": "/repos/{owner}/{repo}/milestones",
|
|
1879
|
+
"deleteSendsJsonBody": false,
|
|
1880
|
+
"inputSchema": {
|
|
1881
|
+
"type": "object",
|
|
1882
|
+
"properties": {
|
|
1883
|
+
"owner": {
|
|
1884
|
+
"type": "string",
|
|
1885
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1886
|
+
},
|
|
1887
|
+
"repo": {
|
|
1888
|
+
"type": "string",
|
|
1889
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1890
|
+
},
|
|
1891
|
+
"title": {
|
|
1892
|
+
"type": "string",
|
|
1893
|
+
"description": "The title of the milestone."
|
|
1894
|
+
},
|
|
1895
|
+
"state": {
|
|
1896
|
+
"type": "string",
|
|
1897
|
+
"description": "The state of the milestone. Either `open` or `closed`.",
|
|
1898
|
+
"enum": [
|
|
1899
|
+
"open",
|
|
1900
|
+
"closed"
|
|
1901
|
+
]
|
|
1902
|
+
},
|
|
1903
|
+
"description": {
|
|
1904
|
+
"type": "string",
|
|
1905
|
+
"description": "A description of the milestone."
|
|
1906
|
+
},
|
|
1907
|
+
"due_on": {
|
|
1908
|
+
"type": "string",
|
|
1909
|
+
"description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
|
|
1910
|
+
}
|
|
1911
|
+
},
|
|
1912
|
+
"required": [
|
|
1913
|
+
"owner",
|
|
1914
|
+
"repo",
|
|
1915
|
+
"title"
|
|
1916
|
+
]
|
|
1917
|
+
}
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
"name": "issues_get_milestone",
|
|
1921
|
+
"description": "Get a milestone",
|
|
1922
|
+
"method": "GET",
|
|
1923
|
+
"path": "/repos/{owner}/{repo}/milestones/{milestone_number}",
|
|
1924
|
+
"deleteSendsJsonBody": false,
|
|
1925
|
+
"inputSchema": {
|
|
1926
|
+
"type": "object",
|
|
1927
|
+
"properties": {
|
|
1928
|
+
"owner": {
|
|
1929
|
+
"type": "string",
|
|
1930
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1931
|
+
},
|
|
1932
|
+
"repo": {
|
|
1933
|
+
"type": "string",
|
|
1934
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1935
|
+
},
|
|
1936
|
+
"milestone_number": {
|
|
1937
|
+
"type": "number",
|
|
1938
|
+
"description": "The number that identifies the milestone."
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
"required": [
|
|
1942
|
+
"owner",
|
|
1943
|
+
"repo",
|
|
1944
|
+
"milestone_number"
|
|
1945
|
+
]
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
"name": "issues_update_milestone",
|
|
1950
|
+
"description": "Update a milestone",
|
|
1951
|
+
"method": "PATCH",
|
|
1952
|
+
"path": "/repos/{owner}/{repo}/milestones/{milestone_number}",
|
|
1953
|
+
"deleteSendsJsonBody": false,
|
|
1954
|
+
"inputSchema": {
|
|
1955
|
+
"type": "object",
|
|
1956
|
+
"properties": {
|
|
1957
|
+
"owner": {
|
|
1958
|
+
"type": "string",
|
|
1959
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
1960
|
+
},
|
|
1961
|
+
"repo": {
|
|
1962
|
+
"type": "string",
|
|
1963
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
1964
|
+
},
|
|
1965
|
+
"milestone_number": {
|
|
1966
|
+
"type": "number",
|
|
1967
|
+
"description": "The number that identifies the milestone."
|
|
1968
|
+
},
|
|
1969
|
+
"title": {
|
|
1970
|
+
"type": "string",
|
|
1971
|
+
"description": "The title of the milestone."
|
|
1972
|
+
},
|
|
1973
|
+
"state": {
|
|
1974
|
+
"type": "string",
|
|
1975
|
+
"description": "The state of the milestone. Either `open` or `closed`.",
|
|
1976
|
+
"enum": [
|
|
1977
|
+
"open",
|
|
1978
|
+
"closed"
|
|
1979
|
+
]
|
|
1980
|
+
},
|
|
1981
|
+
"description": {
|
|
1982
|
+
"type": "string",
|
|
1983
|
+
"description": "A description of the milestone."
|
|
1984
|
+
},
|
|
1985
|
+
"due_on": {
|
|
1986
|
+
"type": "string",
|
|
1987
|
+
"description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1990
|
+
"required": [
|
|
1991
|
+
"owner",
|
|
1992
|
+
"repo",
|
|
1993
|
+
"milestone_number"
|
|
1994
|
+
]
|
|
1995
|
+
}
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
"name": "issues_delete_milestone",
|
|
1999
|
+
"description": "Delete a milestone",
|
|
2000
|
+
"method": "DELETE",
|
|
2001
|
+
"path": "/repos/{owner}/{repo}/milestones/{milestone_number}",
|
|
2002
|
+
"deleteSendsJsonBody": false,
|
|
2003
|
+
"inputSchema": {
|
|
2004
|
+
"type": "object",
|
|
2005
|
+
"properties": {
|
|
2006
|
+
"owner": {
|
|
2007
|
+
"type": "string",
|
|
2008
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
2009
|
+
},
|
|
2010
|
+
"repo": {
|
|
2011
|
+
"type": "string",
|
|
2012
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
2013
|
+
},
|
|
2014
|
+
"milestone_number": {
|
|
2015
|
+
"type": "number",
|
|
2016
|
+
"description": "The number that identifies the milestone."
|
|
2017
|
+
}
|
|
2018
|
+
},
|
|
2019
|
+
"required": [
|
|
2020
|
+
"owner",
|
|
2021
|
+
"repo",
|
|
2022
|
+
"milestone_number"
|
|
2023
|
+
]
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
2026
|
+
{
|
|
2027
|
+
"name": "issues_list_labels_for_milestone",
|
|
2028
|
+
"description": "List labels for issues in a milestone",
|
|
2029
|
+
"method": "GET",
|
|
2030
|
+
"path": "/repos/{owner}/{repo}/milestones/{milestone_number}/labels",
|
|
2031
|
+
"deleteSendsJsonBody": false,
|
|
2032
|
+
"inputSchema": {
|
|
2033
|
+
"type": "object",
|
|
2034
|
+
"properties": {
|
|
2035
|
+
"owner": {
|
|
2036
|
+
"type": "string",
|
|
2037
|
+
"description": "The account owner of the repository. The name is not case sensitive."
|
|
2038
|
+
},
|
|
2039
|
+
"repo": {
|
|
2040
|
+
"type": "string",
|
|
2041
|
+
"description": "The name of the repository without the `.git` extension. The name is not case sensitive."
|
|
2042
|
+
},
|
|
2043
|
+
"milestone_number": {
|
|
2044
|
+
"type": "number",
|
|
2045
|
+
"description": "The number that identifies the milestone."
|
|
2046
|
+
},
|
|
2047
|
+
"per_page": {
|
|
2048
|
+
"type": "number",
|
|
2049
|
+
"description": "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).\""
|
|
2050
|
+
},
|
|
2051
|
+
"page": {
|
|
2052
|
+
"type": "number",
|
|
2053
|
+
"description": "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).\""
|
|
2054
|
+
}
|
|
2055
|
+
},
|
|
2056
|
+
"required": [
|
|
2057
|
+
"owner",
|
|
2058
|
+
"repo",
|
|
2059
|
+
"milestone_number"
|
|
2060
|
+
]
|
|
2061
|
+
}
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"name": "issues_add_issue_field_values",
|
|
2065
|
+
"description": "Add issue field values to an issue",
|
|
2066
|
+
"method": "POST",
|
|
2067
|
+
"path": "/repositories/{repository_id}/issues/{issue_number}/issue-field-values",
|
|
2068
|
+
"deleteSendsJsonBody": false,
|
|
2069
|
+
"inputSchema": {
|
|
2070
|
+
"type": "object",
|
|
2071
|
+
"properties": {
|
|
2072
|
+
"repository_id": {
|
|
2073
|
+
"type": "number",
|
|
2074
|
+
"description": "The unique identifier of the repository."
|
|
2075
|
+
},
|
|
2076
|
+
"issue_number": {
|
|
2077
|
+
"type": "number",
|
|
2078
|
+
"description": "The number that identifies the issue."
|
|
2079
|
+
},
|
|
2080
|
+
"issue_field_values": {
|
|
2081
|
+
"type": "array",
|
|
2082
|
+
"description": "An array of issue field values to add to this issue. Each field value must include the field ID and the value to set."
|
|
2083
|
+
}
|
|
2084
|
+
},
|
|
2085
|
+
"required": [
|
|
2086
|
+
"repository_id",
|
|
2087
|
+
"issue_number"
|
|
2088
|
+
]
|
|
2089
|
+
}
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"name": "issues_set_issue_field_values",
|
|
2093
|
+
"description": "Set issue field values for an issue",
|
|
2094
|
+
"method": "PUT",
|
|
2095
|
+
"path": "/repositories/{repository_id}/issues/{issue_number}/issue-field-values",
|
|
2096
|
+
"deleteSendsJsonBody": false,
|
|
2097
|
+
"inputSchema": {
|
|
2098
|
+
"type": "object",
|
|
2099
|
+
"properties": {
|
|
2100
|
+
"repository_id": {
|
|
2101
|
+
"type": "number",
|
|
2102
|
+
"description": "The unique identifier of the repository."
|
|
2103
|
+
},
|
|
2104
|
+
"issue_number": {
|
|
2105
|
+
"type": "number",
|
|
2106
|
+
"description": "The number that identifies the issue."
|
|
2107
|
+
},
|
|
2108
|
+
"issue_field_values": {
|
|
2109
|
+
"type": "array",
|
|
2110
|
+
"description": "An array of issue field values to set for this issue. Each field value must include the field ID and the value to set. All existing field values will be replaced."
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
"required": [
|
|
2114
|
+
"repository_id",
|
|
2115
|
+
"issue_number"
|
|
2116
|
+
]
|
|
2117
|
+
}
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"name": "issues_delete_issue_field_value",
|
|
2121
|
+
"description": "Delete an issue field value from an issue",
|
|
2122
|
+
"method": "DELETE",
|
|
2123
|
+
"path": "/repositories/{repository_id}/issues/{issue_number}/issue-field-values/{issue_field_id}",
|
|
2124
|
+
"deleteSendsJsonBody": false,
|
|
2125
|
+
"inputSchema": {
|
|
2126
|
+
"type": "object",
|
|
2127
|
+
"properties": {
|
|
2128
|
+
"repository_id": {
|
|
2129
|
+
"type": "number",
|
|
2130
|
+
"description": "The unique identifier of the repository."
|
|
2131
|
+
},
|
|
2132
|
+
"issue_number": {
|
|
2133
|
+
"type": "number",
|
|
2134
|
+
"description": "The number that identifies the issue."
|
|
2135
|
+
},
|
|
2136
|
+
"issue_field_id": {
|
|
2137
|
+
"type": "number",
|
|
2138
|
+
"description": "The unique identifier of the issue field."
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
"required": [
|
|
2142
|
+
"repository_id",
|
|
2143
|
+
"issue_number",
|
|
2144
|
+
"issue_field_id"
|
|
2145
|
+
]
|
|
2146
|
+
}
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
"name": "issues_list_for_authenticated_user",
|
|
2150
|
+
"description": "List user account issues assigned to the authenticated user",
|
|
2151
|
+
"method": "GET",
|
|
2152
|
+
"path": "/user/issues",
|
|
2153
|
+
"deleteSendsJsonBody": false,
|
|
2154
|
+
"inputSchema": {
|
|
2155
|
+
"type": "object",
|
|
2156
|
+
"properties": {
|
|
2157
|
+
"filter": {
|
|
2158
|
+
"type": "string",
|
|
2159
|
+
"description": "Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation.",
|
|
2160
|
+
"enum": [
|
|
2161
|
+
"assigned",
|
|
2162
|
+
"created",
|
|
2163
|
+
"mentioned",
|
|
2164
|
+
"subscribed",
|
|
2165
|
+
"repos",
|
|
2166
|
+
"all"
|
|
2167
|
+
]
|
|
2168
|
+
},
|
|
2169
|
+
"state": {
|
|
2170
|
+
"type": "string",
|
|
2171
|
+
"description": "Indicates the state of the issues to return.",
|
|
2172
|
+
"enum": [
|
|
2173
|
+
"open",
|
|
2174
|
+
"closed",
|
|
2175
|
+
"all"
|
|
2176
|
+
]
|
|
2177
|
+
},
|
|
2178
|
+
"labels": {
|
|
2179
|
+
"type": "string",
|
|
2180
|
+
"description": "A list of comma separated label names. Example: `bug,ui,@high`"
|
|
2181
|
+
},
|
|
2182
|
+
"sort": {
|
|
2183
|
+
"type": "string",
|
|
2184
|
+
"description": "What to sort results by.",
|
|
2185
|
+
"enum": [
|
|
2186
|
+
"created",
|
|
2187
|
+
"updated",
|
|
2188
|
+
"comments"
|
|
2189
|
+
]
|
|
2190
|
+
},
|
|
2191
|
+
"direction": {
|
|
2192
|
+
"type": "string",
|
|
2193
|
+
"description": "The direction to sort the results by.",
|
|
2194
|
+
"enum": [
|
|
2195
|
+
"asc",
|
|
2196
|
+
"desc"
|
|
2197
|
+
]
|
|
2198
|
+
},
|
|
2199
|
+
"since": {
|
|
2200
|
+
"type": "string",
|
|
2201
|
+
"description": "Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
|
|
2202
|
+
},
|
|
2203
|
+
"per_page": {
|
|
2204
|
+
"type": "number",
|
|
2205
|
+
"description": "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).\""
|
|
2206
|
+
},
|
|
2207
|
+
"page": {
|
|
2208
|
+
"type": "number",
|
|
2209
|
+
"description": "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).\""
|
|
2210
|
+
}
|
|
2211
|
+
},
|
|
2212
|
+
"required": []
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
];
|
|
2216
|
+
|
|
2217
|
+
export const tools = ENDPOINTS.map((e) => ({
|
|
2218
|
+
name: e.name,
|
|
2219
|
+
description: e.description,
|
|
2220
|
+
method: e.method,
|
|
2221
|
+
path: e.path,
|
|
2222
|
+
deleteSendsJsonBody: Boolean(e.deleteSendsJsonBody),
|
|
2223
|
+
inputSchema: e.inputSchema,
|
|
2224
|
+
handler: async (params) => {
|
|
2225
|
+
const result = await apiRequest(e.method, e.path, params, {
|
|
2226
|
+
deleteSendsJsonBody: e.deleteSendsJsonBody,
|
|
2227
|
+
});
|
|
2228
|
+
return {
|
|
2229
|
+
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
|
|
2230
|
+
};
|
|
2231
|
+
},
|
|
2232
|
+
}));
|