UNPKG

296 kBJSONView Raw
1{
2 "authorization": {
3 "get": {
4 "url": "/authorizations/:id",
5 "method": "GET",
6 "params": {
7 "id": {
8 "type": "string",
9 "required": true
10 }
11 },
12 "description": "Get a single authorization."
13 },
14 "create": {
15 "url": "/authorizations",
16 "method": "POST",
17 "params": {
18 "scopes": {
19 "type": "string[]",
20 "description": "A list of scopes that this authorization is in."
21 },
22 "note": {
23 "type": "string",
24 "description": "A note to remind you what the OAuth token is for."
25 },
26 "note_url": {
27 "type": "string",
28 "description": "A URL to remind you what app the OAuth token is for."
29 },
30 "client_id": {
31 "type": "string",
32 "description": "The 20 character OAuth app client key for which to create the token."
33 },
34 "client_secret": {
35 "type": "string",
36 "description": "The 40 character OAuth app client secret for which to create the token."
37 },
38 "fingerprint": {
39 "type": "string",
40 "description": "A unique string to distinguish an authorization from others created for the same client ID and user."
41 }
42 },
43 "description": "Create a new authorization."
44 },
45 "update": {
46 "url": "/authorizations/:id",
47 "method": "PATCH",
48 "params": {
49 "id": {
50 "type": "string",
51 "required": true
52 },
53 "scopes": {
54 "type": "string[]",
55 "description": "A list of scopes that this authorization is in."
56 },
57 "add_scopes": {
58 "type": "string[]",
59 "description": "A list of scopes to add to this authorization."
60 },
61 "remove_scopes": {
62 "type": "string[]",
63 "description": "A list of scopes to remove from this authorization."
64 },
65 "note": {
66 "type": "string",
67 "description": "A note to remind you what the OAuth token is for."
68 },
69 "note_url": {
70 "type": "string",
71 "description": "A URL to remind you what app the OAuth token is for."
72 },
73 "fingerprint": {
74 "type": "string",
75 "description": "A unique string to distinguish an authorization from others created for the same client ID and user."
76 }
77 },
78 "description": "Update an existing authorization."
79 },
80 "delete": {
81 "url": "/authorizations/:id",
82 "method": "DELETE",
83 "params": {
84 "id": {
85 "type": "string",
86 "required": true
87 }
88 },
89 "description": "Delete an authorization."
90 },
91 "check": {
92 "url": "/applications/:client_id/tokens/:access_token",
93 "method": "GET",
94 "params": {
95 "client_id": {
96 "type": "string",
97 "description": "The 20 character OAuth app client key for which to create the token."
98 },
99 "access_token": {
100 "type": "string",
101 "required": true,
102 "description": "OAuth token"
103 }
104 },
105 "description": "Check an authorization"
106 },
107 "reset": {
108 "url": "/applications/:client_id/tokens/:access_token",
109 "method": "POST",
110 "params": {
111 "client_id": {
112 "type": "string",
113 "description": "The 20 character OAuth app client key for which to create the token."
114 },
115 "access_token": {
116 "type": "string",
117 "required": true,
118 "description": "OAuth token"
119 }
120 },
121 "description": "Reset an authorization"
122 },
123 "revoke": {
124 "url": "/applications/:client_id/tokens/:access_token",
125 "method": "DELETE",
126 "params": {
127 "client_id": {
128 "type": "string",
129 "description": "The 20 character OAuth app client key for which to create the token."
130 },
131 "access_token": {
132 "type": "string",
133 "required": true,
134 "description": "OAuth token"
135 }
136 },
137 "description": "Revoke an authorization for an application"
138 },
139 "getGrants": {
140 "url": "/applications/grants",
141 "method": "GET",
142 "params": {
143 "page": {
144 "type": "number",
145 "description": "Page number of the results to fetch."
146 },
147 "per_page": {
148 "type": "number",
149 "default": "30",
150 "description": "A custom page size up to 100. Default is 30."
151 }
152 },
153 "description": "List your grants."
154 },
155 "getGrant": {
156 "url": "/applications/grants/:id",
157 "method": "GET",
158 "params": {
159 "id": {
160 "type": "string",
161 "required": true
162 },
163 "page": {
164 "type": "number",
165 "description": "Page number of the results to fetch."
166 },
167 "per_page": {
168 "type": "number",
169 "default": "30",
170 "description": "A custom page size up to 100. Default is 30."
171 }
172 },
173 "description": "Get a single grant."
174 },
175 "deleteGrant": {
176 "url": "/applications/grants/:id",
177 "method": "DELETE",
178 "params": {
179 "id": {
180 "type": "string",
181 "required": true
182 }
183 },
184 "description": "Delete a grant."
185 },
186 "getAll": {
187 "url": "/authorizations",
188 "method": "GET",
189 "params": {
190 "page": {
191 "type": "number",
192 "description": "Page number of the results to fetch."
193 },
194 "per_page": {
195 "type": "number",
196 "default": "30",
197 "description": "A custom page size up to 100. Default is 30."
198 }
199 },
200 "description": "List your authorizations."
201 },
202 "getOrCreateAuthorizationForApp": {
203 "url": "/authorizations/clients/:client_id",
204 "method": "PUT",
205 "params": {
206 "client_id": {
207 "type": "string",
208 "description": "The 20 character OAuth app client key for which to create the token."
209 },
210 "client_secret": {
211 "type": "string",
212 "required": true,
213 "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL."
214 },
215 "scopes": {
216 "type": "string[]",
217 "description": "A list of scopes that this authorization is in."
218 },
219 "note": {
220 "type": "string",
221 "description": "A note to remind you what the OAuth token is for."
222 },
223 "note_url": {
224 "type": "string",
225 "description": "A URL to remind you what app the OAuth token is for."
226 },
227 "fingerprint": {
228 "type": "string",
229 "description": "A unique string to distinguish an authorization from others created for the same client ID and user."
230 }
231 },
232 "description": "Get or create an authorization for a specific app."
233 },
234 "getOrCreateAuthorizationForAppAndFingerprint": {
235 "url": "/authorizations/clients/:client_id/:fingerprint",
236 "method": "PUT",
237 "params": {
238 "client_id": {
239 "type": "string",
240 "description": "The 20 character OAuth app client key for which to create the token."
241 },
242 "fingerprint": {
243 "type": "string",
244 "description": "A unique string to distinguish an authorization from others created for the same client ID and user."
245 },
246 "client_secret": {
247 "type": "string",
248 "required": true,
249 "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL."
250 },
251 "scopes": {
252 "type": "string[]",
253 "description": "A list of scopes that this authorization is in."
254 },
255 "note": {
256 "type": "string",
257 "description": "A note to remind you what the OAuth token is for."
258 },
259 "note_url": {
260 "type": "string",
261 "description": "A URL to remind you what app the OAuth token is for."
262 }
263 },
264 "description": "Get or create an authorization for a specific app and fingerprint."
265 },
266 "revokeGrant": {
267 "url": "/applications/:client_id/grants/:access_token",
268 "method": "DELETE",
269 "params": {
270 "client_id": {
271 "type": "string",
272 "description": "The 20 character OAuth app client key for which to create the token."
273 },
274 "access_token": {
275 "type": "string",
276 "required": true,
277 "description": "OAuth token"
278 }
279 },
280 "description": "Revoke a grant for an application"
281 }
282 },
283 "activity": {
284 "getEvents": {
285 "url": "/events",
286 "method": "GET",
287 "params": {
288 "page": {
289 "type": "number",
290 "description": "Page number of the results to fetch."
291 },
292 "per_page": {
293 "type": "number",
294 "default": "30",
295 "description": "A custom page size up to 100. Default is 30."
296 }
297 },
298 "description": "List public events"
299 },
300 "getEventsForRepo": {
301 "url": "/repos/:owner/:repo/events",
302 "method": "GET",
303 "params": {
304 "owner": {
305 "type": "string",
306 "required": true
307 },
308 "repo": {
309 "type": "string",
310 "required": true
311 },
312 "page": {
313 "type": "number",
314 "description": "Page number of the results to fetch."
315 },
316 "per_page": {
317 "type": "number",
318 "default": "30",
319 "description": "A custom page size up to 100. Default is 30."
320 }
321 },
322 "description": "List repository events"
323 },
324 "getEventsForRepoIssues": {
325 "url": "/repos/:owner/:repo/issues/events",
326 "method": "GET",
327 "params": {
328 "owner": {
329 "type": "string",
330 "required": true
331 },
332 "repo": {
333 "type": "string",
334 "required": true
335 },
336 "page": {
337 "type": "number",
338 "description": "Page number of the results to fetch."
339 },
340 "per_page": {
341 "type": "number",
342 "default": "30",
343 "description": "A custom page size up to 100. Default is 30."
344 }
345 },
346 "description": "List issue events for a repository"
347 },
348 "getEventsForRepoNetwork": {
349 "url": "/networks/:owner/:repo/events",
350 "method": "GET",
351 "params": {
352 "owner": {
353 "type": "string",
354 "required": true
355 },
356 "repo": {
357 "type": "string",
358 "required": true
359 },
360 "page": {
361 "type": "number",
362 "description": "Page number of the results to fetch."
363 },
364 "per_page": {
365 "type": "number",
366 "default": "30",
367 "description": "A custom page size up to 100. Default is 30."
368 }
369 },
370 "description": "List public events for a network of repositories"
371 },
372 "getEventsForOrg": {
373 "url": "/orgs/:org/events",
374 "method": "GET",
375 "params": {
376 "org": {
377 "type": "string",
378 "required": true
379 },
380 "page": {
381 "type": "number",
382 "description": "Page number of the results to fetch."
383 },
384 "per_page": {
385 "type": "number",
386 "default": "30",
387 "description": "A custom page size up to 100. Default is 30."
388 }
389 },
390 "description": "List public events for an organization"
391 },
392 "getEventsReceived": {
393 "url": "/users/:username/received_events",
394 "method": "GET",
395 "params": {
396 "username": {
397 "type": "string",
398 "required": true
399 },
400 "page": {
401 "type": "number",
402 "description": "Page number of the results to fetch."
403 },
404 "per_page": {
405 "type": "number",
406 "default": "30",
407 "description": "A custom page size up to 100. Default is 30."
408 }
409 },
410 "description": "List events that a user has received"
411 },
412 "getEventsReceivedPublic": {
413 "url": "/users/:username/received_events/public",
414 "method": "GET",
415 "params": {
416 "username": {
417 "type": "string",
418 "required": true
419 },
420 "page": {
421 "type": "number",
422 "description": "Page number of the results to fetch."
423 },
424 "per_page": {
425 "type": "number",
426 "default": "30",
427 "description": "A custom page size up to 100. Default is 30."
428 }
429 },
430 "description": "List public events that a user has received"
431 },
432 "getEventsForUser": {
433 "url": "/users/:username/events",
434 "method": "GET",
435 "params": {
436 "username": {
437 "type": "string",
438 "required": true
439 },
440 "page": {
441 "type": "number",
442 "description": "Page number of the results to fetch."
443 },
444 "per_page": {
445 "type": "number",
446 "default": "30",
447 "description": "A custom page size up to 100. Default is 30."
448 }
449 },
450 "description": "List events performed by a user"
451 },
452 "getEventsForUserPublic": {
453 "url": "/users/:username/events/public",
454 "method": "GET",
455 "params": {
456 "username": {
457 "type": "string",
458 "required": true
459 },
460 "page": {
461 "type": "number",
462 "description": "Page number of the results to fetch."
463 },
464 "per_page": {
465 "type": "number",
466 "default": "30",
467 "description": "A custom page size up to 100. Default is 30."
468 }
469 },
470 "description": "List public events performed by a user"
471 },
472 "getEventsForUserOrg": {
473 "url": "/users/:username/events/orgs/:org",
474 "method": "GET",
475 "params": {
476 "username": {
477 "type": "string",
478 "required": true
479 },
480 "org": {
481 "type": "string",
482 "required": true
483 },
484 "page": {
485 "type": "number",
486 "description": "Page number of the results to fetch."
487 },
488 "per_page": {
489 "type": "number",
490 "default": "30",
491 "description": "A custom page size up to 100. Default is 30."
492 }
493 },
494 "description": "List events for a user's organization"
495 },
496 "getFeeds": {
497 "url": "/feeds",
498 "method": "GET",
499 "params": {},
500 "description": "Get all feeds available for the authenticated user."
501 },
502 "getNotifications": {
503 "url": "/notifications",
504 "method": "GET",
505 "params": {
506 "all": {
507 "type": "boolean",
508 "default": "false",
509 "description": "If true, show notifications marked as read. Default: false"
510 },
511 "participating": {
512 "type": "boolean",
513 "default": "false",
514 "description": "If true, only shows notifications in which the user is directly participating or mentioned. Default: false"
515 },
516 "since": {
517 "type": "date",
518 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
519 },
520 "before": {
521 "type": "string",
522 "description": "Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ."
523 }
524 },
525 "description": "Get all notifications for the current user, grouped by repository."
526 },
527 "getNotificationsForUser": {
528 "url": "/repos/:owner/:repo/notifications",
529 "method": "GET",
530 "params": {
531 "owner": {
532 "type": "string",
533 "required": true
534 },
535 "repo": {
536 "type": "string",
537 "required": true
538 },
539 "all": {
540 "type": "boolean",
541 "default": "false",
542 "description": "If true, show notifications marked as read. Default: false"
543 },
544 "participating": {
545 "type": "boolean",
546 "default": "false",
547 "description": "If true, only shows notifications in which the user is directly participating or mentioned. Default: false"
548 },
549 "since": {
550 "type": "date",
551 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
552 },
553 "before": {
554 "type": "string",
555 "description": "Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ."
556 }
557 },
558 "description": "Get all notifications for the given user."
559 },
560 "markNotificationsAsRead": {
561 "url": "/notifications",
562 "method": "PUT",
563 "params": {
564 "last_read_at": {
565 "type": "string",
566 "default": "Time.now",
567 "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: Time.now"
568 }
569 },
570 "description": "Mark notifications as read for authenticated user."
571 },
572 "markNotificationsAsReadForRepo": {
573 "url": "/repos/:owner/:repo/notifications",
574 "method": "PUT",
575 "params": {
576 "owner": {
577 "type": "string",
578 "required": true
579 },
580 "repo": {
581 "type": "string",
582 "required": true
583 },
584 "last_read_at": {
585 "type": "string",
586 "default": "Time.now",
587 "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: Time.now"
588 }
589 },
590 "description": "Mark notifications in a repo as read."
591 },
592 "getNotificationThread": {
593 "url": "/notifications/threads/:id",
594 "method": "GET",
595 "params": {
596 "id": {
597 "type": "string",
598 "required": true
599 }
600 },
601 "description": "View a single notification thread."
602 },
603 "markNotificationThreadAsRead": {
604 "url": "/notifications/threads/:id",
605 "method": "PATCH",
606 "params": {
607 "id": {
608 "type": "string",
609 "required": true
610 }
611 },
612 "description": "Mark a notification thread as read."
613 },
614 "checkNotificationThreadSubscription": {
615 "url": "/notifications/threads/:id/subscription",
616 "method": "GET",
617 "params": {
618 "id": {
619 "type": "string",
620 "required": true
621 }
622 },
623 "description": "Check to see if the current user is subscribed to a thread."
624 },
625 "setNotificationThreadSubscription": {
626 "url": "/notifications/threads/:id/subscription",
627 "method": "PUT",
628 "params": {
629 "id": {
630 "type": "string",
631 "required": true
632 },
633 "subscribed": {
634 "type": "boolean",
635 "description": "Determines if notifications should be received from this thread"
636 },
637 "ignored": {
638 "type": "boolean",
639 "description": "Determines if all notifications should be blocked from this thread"
640 }
641 },
642 "description": "This lets you subscribe or unsubscribe from a conversation. Unsubscribing from a conversation mutes all future notifications (until you comment or get @mentioned once more)."
643 },
644 "deleteNotificationThreadSubscription": {
645 "url": "/notifications/threads/:id/subscription",
646 "method": "DELETE",
647 "params": {
648 "id": {
649 "type": "string",
650 "required": true
651 }
652 },
653 "description": "Delete a notification thread subscription."
654 },
655 "getStargazersForRepo": {
656 "url": "/repos/:owner/:repo/stargazers",
657 "method": "GET",
658 "headers": {
659 "accept": "application/vnd.github.v3.star+json"
660 },
661 "params": {
662 "owner": {
663 "type": "string",
664 "required": true
665 },
666 "repo": {
667 "type": "string",
668 "required": true
669 },
670 "page": {
671 "type": "number",
672 "description": "Page number of the results to fetch."
673 },
674 "per_page": {
675 "type": "number",
676 "default": "30",
677 "description": "A custom page size up to 100. Default is 30."
678 }
679 },
680 "description": "List Stargazers"
681 },
682 "getStarredReposForUser": {
683 "url": "/users/:username/starred",
684 "method": "GET",
685 "headers": {
686 "accept": "application/vnd.github.v3.star+json"
687 },
688 "params": {
689 "username": {
690 "type": "string",
691 "required": true
692 },
693 "sort": {
694 "type": "string",
695 "enum": [
696 "created",
697 "updated"
698 ],
699 "default": "created"
700 },
701 "direction": {
702 "type": "string",
703 "enum": [
704 "asc",
705 "desc"
706 ],
707 "default": "desc"
708 },
709 "page": {
710 "type": "number",
711 "description": "Page number of the results to fetch."
712 },
713 "per_page": {
714 "type": "number",
715 "default": "30",
716 "description": "A custom page size up to 100. Default is 30."
717 }
718 },
719 "description": "List repositories being starred by a user"
720 },
721 "getStarredRepos": {
722 "url": "/user/starred",
723 "method": "GET",
724 "headers": {
725 "accept": "application/vnd.github.v3.star+json"
726 },
727 "params": {
728 "sort": {
729 "type": "string",
730 "enum": [
731 "created",
732 "updated"
733 ],
734 "default": "created"
735 },
736 "direction": {
737 "type": "string",
738 "enum": [
739 "asc",
740 "desc"
741 ],
742 "default": "desc"
743 },
744 "page": {
745 "type": "number",
746 "description": "Page number of the results to fetch."
747 },
748 "per_page": {
749 "type": "number",
750 "default": "30",
751 "description": "A custom page size up to 100. Default is 30."
752 }
753 },
754 "description": "List repositories being starred by the authenticated user"
755 },
756 "checkStarringRepo": {
757 "url": "/user/starred/:owner/:repo",
758 "method": "GET",
759 "params": {
760 "owner": {
761 "type": "string",
762 "required": true
763 },
764 "repo": {
765 "type": "string",
766 "required": true
767 },
768 "page": {
769 "type": "number",
770 "description": "Page number of the results to fetch."
771 },
772 "per_page": {
773 "type": "number",
774 "default": "30",
775 "description": "A custom page size up to 100. Default is 30."
776 }
777 },
778 "description": "Check if you are starring a repository"
779 },
780 "starRepo": {
781 "url": "/user/starred/:owner/:repo",
782 "method": "PUT",
783 "params": {
784 "owner": {
785 "type": "string",
786 "required": true
787 },
788 "repo": {
789 "type": "string",
790 "required": true
791 }
792 },
793 "description": "Star a repository"
794 },
795 "unstarRepo": {
796 "url": "/user/starred/:owner/:repo",
797 "method": "DELETE",
798 "params": {
799 "owner": {
800 "type": "string",
801 "required": true
802 },
803 "repo": {
804 "type": "string",
805 "required": true
806 }
807 },
808 "description": "Unstar a repository"
809 },
810 "getWatchersForRepo": {
811 "url": "/repos/:owner/:repo/subscribers",
812 "method": "GET",
813 "params": {
814 "owner": {
815 "type": "string",
816 "required": true
817 },
818 "repo": {
819 "type": "string",
820 "required": true
821 },
822 "page": {
823 "type": "number",
824 "description": "Page number of the results to fetch."
825 },
826 "per_page": {
827 "type": "number",
828 "default": "30",
829 "description": "A custom page size up to 100. Default is 30."
830 }
831 },
832 "description": "Get watchers for repository."
833 },
834 "getWatchedReposForUser": {
835 "url": "/users/:username/subscriptions",
836 "method": "GET",
837 "params": {
838 "username": {
839 "type": "string",
840 "required": true
841 },
842 "page": {
843 "type": "number",
844 "description": "Page number of the results to fetch."
845 },
846 "per_page": {
847 "type": "number",
848 "default": "30",
849 "description": "A custom page size up to 100. Default is 30."
850 }
851 },
852 "description": "List repositories being watched by a user."
853 },
854 "getWatchedRepos": {
855 "url": "/user/subscriptions",
856 "method": "GET",
857 "params": {
858 "page": {
859 "type": "number",
860 "description": "Page number of the results to fetch."
861 },
862 "per_page": {
863 "type": "number",
864 "default": "30",
865 "description": "A custom page size up to 100. Default is 30."
866 }
867 },
868 "description": "List repositories being watched by the authenticated user."
869 },
870 "getRepoSubscription": {
871 "url": "/repos/:owner/:repo/subscription",
872 "method": "GET",
873 "params": {
874 "owner": {
875 "type": "string",
876 "required": true
877 },
878 "repo": {
879 "type": "string",
880 "required": true
881 },
882 "page": {
883 "type": "number",
884 "description": "Page number of the results to fetch."
885 },
886 "per_page": {
887 "type": "number",
888 "default": "30",
889 "description": "A custom page size up to 100. Default is 30."
890 }
891 },
892 "description": "Get a Repository Subscription."
893 },
894 "setRepoSubscription": {
895 "url": "/repos/:owner/:repo/subscription",
896 "method": "PUT",
897 "params": {
898 "owner": {
899 "type": "string",
900 "required": true
901 },
902 "repo": {
903 "type": "string",
904 "required": true
905 },
906 "subscribed": {
907 "type": "boolean",
908 "description": "Determines if notifications should be received from this repository."
909 },
910 "ignored": {
911 "type": "boolean",
912 "description": "Determines if all notifications should be blocked from this repository."
913 }
914 },
915 "description": "Set a Repository Subscription"
916 },
917 "unwatchRepo": {
918 "url": "/repos/:owner/:repo/subscription",
919 "method": "DELETE",
920 "params": {
921 "owner": {
922 "type": "string",
923 "required": true
924 },
925 "repo": {
926 "type": "string",
927 "required": true
928 }
929 },
930 "description": "Unwatch a repository."
931 }
932 },
933 "gists": {
934 "get": {
935 "url": "/gists/:id",
936 "method": "GET",
937 "params": {
938 "id": {
939 "type": "string",
940 "required": true
941 }
942 },
943 "description": "Get a single gist"
944 },
945 "create": {
946 "url": "/gists",
947 "method": "POST",
948 "params": {
949 "files": {
950 "type": "json",
951 "required": true,
952 "description": "Files that make up this gist. The key of which should be a required string filename and the value another required hash with parameters: 'content'"
953 },
954 "description": {
955 "type": "string"
956 },
957 "public": {
958 "type": "boolean",
959 "required": true
960 }
961 },
962 "description": "Create a gist"
963 },
964 "edit": {
965 "url": "/gists/:id",
966 "method": "PATCH",
967 "params": {
968 "id": {
969 "type": "string",
970 "required": true
971 },
972 "description": {
973 "type": "string"
974 },
975 "files": {
976 "type": "json",
977 "required": true,
978 "description": "Files that make up this gist. The key of which should be a required string filename and the value another required hash with parameters: 'content'"
979 },
980 "content": {
981 "type": "string",
982 "description": "Updated file contents."
983 },
984 "filename": {
985 "type": "string",
986 "description": "New name for this file."
987 }
988 },
989 "description": "Edit a gist"
990 },
991 "star": {
992 "url": "/gists/:id/star",
993 "method": "PUT",
994 "params": {
995 "id": {
996 "type": "string",
997 "required": true
998 }
999 },
1000 "description": "Star a gist"
1001 },
1002 "unstar": {
1003 "url": "/gists/:id/star",
1004 "method": "DELETE",
1005 "params": {
1006 "id": {
1007 "type": "string",
1008 "required": true
1009 }
1010 },
1011 "description": "Unstar a gist"
1012 },
1013 "fork": {
1014 "url": "/gists/:id/forks",
1015 "method": "POST",
1016 "params": {
1017 "id": {
1018 "type": "string",
1019 "required": true
1020 }
1021 },
1022 "description": "Fork a gist"
1023 },
1024 "delete": {
1025 "url": "/gists/:id",
1026 "method": "DELETE",
1027 "params": {
1028 "id": {
1029 "type": "string",
1030 "required": true
1031 }
1032 },
1033 "description": "Delete a gist"
1034 },
1035 "getForUser": {
1036 "url": "/users/:username/gists",
1037 "method": "GET",
1038 "params": {
1039 "username": {
1040 "type": "string",
1041 "required": true
1042 },
1043 "since": {
1044 "type": "date",
1045 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
1046 },
1047 "page": {
1048 "type": "number",
1049 "description": "Page number of the results to fetch."
1050 },
1051 "per_page": {
1052 "type": "number",
1053 "default": "30",
1054 "description": "A custom page size up to 100. Default is 30."
1055 }
1056 },
1057 "description": "List a user's gists"
1058 },
1059 "getAll": {
1060 "url": "/gists",
1061 "method": "GET",
1062 "params": {
1063 "since": {
1064 "type": "date",
1065 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
1066 },
1067 "page": {
1068 "type": "number",
1069 "description": "Page number of the results to fetch."
1070 },
1071 "per_page": {
1072 "type": "number",
1073 "default": "30",
1074 "description": "A custom page size up to 100. Default is 30."
1075 }
1076 },
1077 "description": "List the authenticated user's gists or if called anonymously, this will return all public gists"
1078 },
1079 "getPublic": {
1080 "url": "/gists/public",
1081 "method": "GET",
1082 "params": {
1083 "since": {
1084 "type": "date",
1085 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
1086 }
1087 },
1088 "description": "List all public gists"
1089 },
1090 "getStarred": {
1091 "url": "/gists/starred",
1092 "method": "GET",
1093 "params": {
1094 "since": {
1095 "type": "date",
1096 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
1097 }
1098 },
1099 "description": "List the authenticated user's starred gists"
1100 },
1101 "getRevision": {
1102 "url": "/gists/:id/:sha",
1103 "method": "GET",
1104 "params": {
1105 "id": {
1106 "type": "string",
1107 "required": true
1108 },
1109 "sha": {
1110 "type": "string",
1111 "required": true
1112 }
1113 },
1114 "description": "Get a specific revision of a gist"
1115 },
1116 "getCommits": {
1117 "url": "/gists/:id/commits",
1118 "method": "GET",
1119 "params": {
1120 "id": {
1121 "type": "string",
1122 "required": true
1123 }
1124 },
1125 "description": "List gist commits"
1126 },
1127 "checkStar": {
1128 "url": "/gists/:id/star",
1129 "method": "GET",
1130 "params": {
1131 "id": {
1132 "type": "string",
1133 "required": true
1134 }
1135 },
1136 "description": "Check if a gist is starred"
1137 },
1138 "getForks": {
1139 "url": "/gists/:id/forks",
1140 "method": "GET",
1141 "params": {
1142 "id": {
1143 "type": "string",
1144 "required": true
1145 },
1146 "page": {
1147 "type": "number",
1148 "description": "Page number of the results to fetch."
1149 },
1150 "per_page": {
1151 "type": "number",
1152 "default": "30",
1153 "description": "A custom page size up to 100. Default is 30."
1154 }
1155 },
1156 "description": "List gist forks"
1157 },
1158 "getComments": {
1159 "url": "/gists/:gist_id/comments",
1160 "method": "GET",
1161 "params": {
1162 "gist_id": {
1163 "type": "string",
1164 "required": true,
1165 "description": "Id (SHA1 hash) of the gist."
1166 }
1167 },
1168 "description": "List comments on a gist"
1169 },
1170 "getComment": {
1171 "url": "/gists/:gist_id/comments/:id",
1172 "method": "GET",
1173 "params": {
1174 "gist_id": {
1175 "type": "string",
1176 "required": true,
1177 "description": "Id (SHA1 hash) of the gist."
1178 },
1179 "id": {
1180 "type": "string",
1181 "required": true
1182 }
1183 },
1184 "description": "Get a single comment"
1185 },
1186 "createComment": {
1187 "url": "/gists/:gist_id/comments",
1188 "method": "POST",
1189 "params": {
1190 "gist_id": {
1191 "type": "string",
1192 "required": true,
1193 "description": "Id (SHA1 hash) of the gist."
1194 },
1195 "body": {
1196 "type": "string",
1197 "required": true
1198 }
1199 },
1200 "description": "Create a comment"
1201 },
1202 "editComment": {
1203 "url": "/gists/:gist_id/comments/:id",
1204 "method": "PATCH",
1205 "params": {
1206 "gist_id": {
1207 "type": "string",
1208 "required": true,
1209 "description": "Id (SHA1 hash) of the gist."
1210 },
1211 "id": {
1212 "type": "string",
1213 "required": true
1214 },
1215 "body": {
1216 "type": "string",
1217 "required": true
1218 }
1219 },
1220 "description": "Edit a comment"
1221 },
1222 "deleteComment": {
1223 "url": "/gists/:gist_id/comments/:id",
1224 "method": "DELETE",
1225 "params": {
1226 "gist_id": {
1227 "type": "string",
1228 "required": true,
1229 "description": "Id (SHA1 hash) of the gist."
1230 },
1231 "id": {
1232 "type": "string",
1233 "required": true
1234 }
1235 },
1236 "description": "Delete a comment"
1237 }
1238 },
1239 "gitdata": {
1240 "getBlob": {
1241 "url": "/repos/:owner/:repo/git/blobs/:sha",
1242 "method": "GET",
1243 "params": {
1244 "owner": {
1245 "type": "string",
1246 "required": true
1247 },
1248 "repo": {
1249 "type": "string",
1250 "required": true
1251 },
1252 "sha": {
1253 "type": "string",
1254 "required": true
1255 },
1256 "page": {
1257 "type": "number",
1258 "description": "Page number of the results to fetch."
1259 },
1260 "per_page": {
1261 "type": "number",
1262 "default": "30",
1263 "description": "A custom page size up to 100. Default is 30."
1264 }
1265 },
1266 "description": "Get a Blob"
1267 },
1268 "createBlob": {
1269 "url": "/repos/:owner/:repo/git/blobs",
1270 "method": "POST",
1271 "params": {
1272 "owner": {
1273 "type": "string",
1274 "required": true
1275 },
1276 "repo": {
1277 "type": "string",
1278 "required": true
1279 },
1280 "content": {
1281 "type": "string",
1282 "required": true,
1283 "allow-empty": true
1284 },
1285 "encoding": {
1286 "type": "string",
1287 "required": true
1288 }
1289 },
1290 "description": "Create a Blob"
1291 },
1292 "getCommit": {
1293 "url": "/repos/:owner/:repo/git/commits/:sha",
1294 "method": "GET",
1295 "params": {
1296 "owner": {
1297 "type": "string",
1298 "required": true
1299 },
1300 "repo": {
1301 "type": "string",
1302 "required": true
1303 },
1304 "sha": {
1305 "type": "string",
1306 "required": true
1307 }
1308 },
1309 "description": "Get a Commit"
1310 },
1311 "createCommit": {
1312 "url": "/repos/:owner/:repo/git/commits",
1313 "method": "POST",
1314 "params": {
1315 "owner": {
1316 "type": "string",
1317 "required": true
1318 },
1319 "repo": {
1320 "type": "string",
1321 "required": true
1322 },
1323 "message": {
1324 "type": "string",
1325 "required": true,
1326 "description": "String of the commit message"
1327 },
1328 "tree": {
1329 "type": "string",
1330 "required": true,
1331 "description": "String of the SHA of the tree object this commit points to"
1332 },
1333 "parents": {
1334 "type": "string[]",
1335 "required": true,
1336 "description": "Array of the SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided, for a merge commit, an array of more than one should be provided."
1337 },
1338 "author": {
1339 "type": "json"
1340 },
1341 "committer": {
1342 "type": "json"
1343 }
1344 },
1345 "description": "Create a Commit"
1346 },
1347 "getCommitSignatureVerification": {
1348 "url": "/repos/:owner/:repo/git/commits/:sha",
1349 "method": "GET",
1350 "params": {
1351 "owner": {
1352 "type": "string",
1353 "required": true
1354 },
1355 "repo": {
1356 "type": "string",
1357 "required": true
1358 },
1359 "sha": {
1360 "type": "string",
1361 "required": true
1362 }
1363 },
1364 "description": "Get a Commit Signature Verification. (In preview period. See README.)"
1365 },
1366 "getReference": {
1367 "url": "/repos/:owner/:repo/git/refs/:ref",
1368 "method": "GET",
1369 "params": {
1370 "owner": {
1371 "type": "string",
1372 "required": true
1373 },
1374 "repo": {
1375 "type": "string",
1376 "required": true
1377 },
1378 "ref": {
1379 "type": "string",
1380 "required": true,
1381 "allow-empty": true,
1382 "description": "String of the name of the fully qualified reference (ie: heads/master). If it doesn’t have at least one slash, it will be rejected."
1383 }
1384 },
1385 "description": "Get a Reference"
1386 },
1387 "getReferences": {
1388 "url": "/repos/:owner/:repo/git/refs",
1389 "method": "GET",
1390 "params": {
1391 "owner": {
1392 "type": "string",
1393 "required": true
1394 },
1395 "repo": {
1396 "type": "string",
1397 "required": true
1398 },
1399 "page": {
1400 "type": "number",
1401 "description": "Page number of the results to fetch."
1402 },
1403 "per_page": {
1404 "type": "number",
1405 "default": "30",
1406 "description": "A custom page size up to 100. Default is 30."
1407 }
1408 },
1409 "description": "Get all References"
1410 },
1411 "getTags": {
1412 "url": "/repos/:owner/:repo/git/refs/tags",
1413 "method": "GET",
1414 "params": {
1415 "owner": {
1416 "type": "string",
1417 "required": true
1418 },
1419 "repo": {
1420 "type": "string",
1421 "required": true
1422 },
1423 "page": {
1424 "type": "number",
1425 "description": "Page number of the results to fetch."
1426 },
1427 "per_page": {
1428 "type": "number",
1429 "default": "30",
1430 "description": "A custom page size up to 100. Default is 30."
1431 }
1432 },
1433 "description": "Get all tag References"
1434 },
1435 "createReference": {
1436 "url": "/repos/:owner/:repo/git/refs",
1437 "method": "POST",
1438 "params": {
1439 "owner": {
1440 "type": "string",
1441 "required": true
1442 },
1443 "repo": {
1444 "type": "string",
1445 "required": true
1446 },
1447 "ref": {
1448 "type": "string",
1449 "required": true,
1450 "description": "The name of the fully qualified reference (ie: refs/heads/master). If it doesn't start with 'refs' and have at least two slashes, it will be rejected. NOTE: After creating the reference, on calling (get|update|delete)Reference, drop the leading 'refs/' when providing the 'ref' param."
1451 },
1452 "sha": {
1453 "type": "string",
1454 "required": true
1455 }
1456 },
1457 "description": "Create a Reference"
1458 },
1459 "updateReference": {
1460 "url": "/repos/:owner/:repo/git/refs/:ref",
1461 "method": "PATCH",
1462 "params": {
1463 "owner": {
1464 "type": "string",
1465 "required": true
1466 },
1467 "repo": {
1468 "type": "string",
1469 "required": true
1470 },
1471 "ref": {
1472 "type": "string",
1473 "required": true,
1474 "allow-empty": true,
1475 "description": "String of the name of the fully qualified reference (ie: heads/master). If it doesn’t have at least one slash, it will be rejected."
1476 },
1477 "sha": {
1478 "type": "string",
1479 "required": true
1480 },
1481 "force": {
1482 "type": "boolean",
1483 "default": "false",
1484 "description": "Boolean indicating whether to force the update or to make sure the update is a fast-forward update. The default is false, so leaving this out or setting it to false will make sure you’re not overwriting work."
1485 }
1486 },
1487 "description": "Update a Reference"
1488 },
1489 "deleteReference": {
1490 "url": "/repos/:owner/:repo/git/refs/:ref",
1491 "method": "DELETE",
1492 "params": {
1493 "owner": {
1494 "type": "string",
1495 "required": true
1496 },
1497 "repo": {
1498 "type": "string",
1499 "required": true
1500 },
1501 "ref": {
1502 "type": "string",
1503 "required": true,
1504 "allow-empty": true,
1505 "description": "String of the name of the fully qualified reference (ie: heads/master). If it doesn’t have at least one slash, it will be rejected."
1506 }
1507 },
1508 "description": "Delete a Reference"
1509 },
1510 "getTag": {
1511 "url": "/repos/:owner/:repo/git/tags/:sha",
1512 "method": "GET",
1513 "params": {
1514 "owner": {
1515 "type": "string",
1516 "required": true
1517 },
1518 "repo": {
1519 "type": "string",
1520 "required": true
1521 },
1522 "sha": {
1523 "type": "string",
1524 "required": true
1525 }
1526 },
1527 "description": "Get a Tag"
1528 },
1529 "createTag": {
1530 "url": "/repos/:owner/:repo/git/tags",
1531 "method": "POST",
1532 "params": {
1533 "owner": {
1534 "type": "string",
1535 "required": true
1536 },
1537 "repo": {
1538 "type": "string",
1539 "required": true
1540 },
1541 "tag": {
1542 "type": "string",
1543 "required": true,
1544 "description": "String of the tag"
1545 },
1546 "message": {
1547 "type": "string",
1548 "required": true,
1549 "description": "String of the tag message"
1550 },
1551 "object": {
1552 "type": "string",
1553 "required": true,
1554 "description": "String of the SHA of the git object this is tagging"
1555 },
1556 "type": {
1557 "type": "string",
1558 "required": true,
1559 "description": "String of the type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob."
1560 },
1561 "tagger": {
1562 "type": "json",
1563 "required": true,
1564 "description": "JSON object that contains the following keys: `name` - String of the name of the author of the tag, `email` - String of the email of the author of the tag, `date` - Timestamp of when this object was tagged"
1565 }
1566 },
1567 "description": "Create a Tag Object"
1568 },
1569 "getTagSignatureVerification": {
1570 "url": "/repos/:owner/:repo/git/tags/:sha",
1571 "method": "GET",
1572 "params": {
1573 "owner": {
1574 "type": "string",
1575 "required": true
1576 },
1577 "repo": {
1578 "type": "string",
1579 "required": true
1580 },
1581 "sha": {
1582 "type": "string",
1583 "required": true
1584 }
1585 },
1586 "description": "Get a Tag Signature Verification. (In preview period. See README.)"
1587 },
1588 "getTree": {
1589 "url": "/repos/:owner/:repo/git/trees/:sha",
1590 "method": "GET",
1591 "params": {
1592 "owner": {
1593 "type": "string",
1594 "required": true
1595 },
1596 "repo": {
1597 "type": "string",
1598 "required": true
1599 },
1600 "sha": {
1601 "type": "string",
1602 "required": true
1603 },
1604 "recursive": {
1605 "type": "boolean"
1606 }
1607 },
1608 "description": "Get a Tree"
1609 },
1610 "createTree": {
1611 "url": "/repos/:owner/:repo/git/trees",
1612 "method": "POST",
1613 "params": {
1614 "owner": {
1615 "type": "string",
1616 "required": true
1617 },
1618 "repo": {
1619 "type": "string",
1620 "required": true
1621 },
1622 "tree": {
1623 "type": "json",
1624 "required": true,
1625 "description": "Array of Hash objects (of path, mode, type and sha) specifying a tree structure"
1626 },
1627 "base_tree": {
1628 "type": "string",
1629 "description": "String of the SHA1 of the tree you want to update with new data"
1630 }
1631 },
1632 "description": "Create a Tree"
1633 }
1634 },
1635 "integrations": {
1636 "getInstallations": {
1637 "url": "/app/installations",
1638 "method": "GET",
1639 "deprecated": "`integrations` has been renamed to `apps`",
1640 "headers": {
1641 "accept": "application/vnd.github.machine-man-preview"
1642 },
1643 "params": {
1644 "page": {
1645 "type": "number",
1646 "description": "Page number of the results to fetch."
1647 },
1648 "per_page": {
1649 "type": "number",
1650 "default": "30",
1651 "description": "A custom page size up to 100. Default is 30."
1652 }
1653 },
1654 "description": "List the app's installations. (In preview period. See README.)"
1655 },
1656 "createInstallationToken": {
1657 "url": "/installations/:installation_id/access_tokens",
1658 "method": "POST",
1659 "deprecated": "`integrations` has been renamed to `apps`",
1660 "headers": {
1661 "accept": "application/vnd.github.machine-man-preview"
1662 },
1663 "params": {
1664 "installation_id": {
1665 "type": "string",
1666 "required": true
1667 },
1668 "user_id": {
1669 "type": "string",
1670 "description": "The id of the user for whom the app is acting on behalf of."
1671 }
1672 },
1673 "description": "Create a new installation token. (In preview period. See README.)"
1674 },
1675 "getInstallationRepositories": {
1676 "url": "/installation/repositories",
1677 "method": "GET",
1678 "deprecated": "`integrations` has been renamed to `apps`",
1679 "headers": {
1680 "accept": "application/vnd.github.machine-man-preview"
1681 },
1682 "params": {
1683 "user_id": {
1684 "type": "string",
1685 "description": "The integer ID of a user, to filter results to repositories that are visible to both the installation and the given user."
1686 }
1687 },
1688 "description": "List repositories that are accessible to the authenticated installation. (In preview period. See README.)"
1689 },
1690 "addRepoToInstallation": {
1691 "url": "/installations/:installation_id/repositories/:repository_id",
1692 "method": "PUT",
1693 "deprecated": "`integrations` has been renamed to `apps`",
1694 "headers": {
1695 "accept": "application/vnd.github.machine-man-preview"
1696 },
1697 "params": {
1698 "installation_id": {
1699 "type": "string",
1700 "required": true
1701 },
1702 "repository_id": {
1703 "type": "string",
1704 "required": true
1705 }
1706 },
1707 "description": "Add a single repository to an installation. (In preview period. See README.)"
1708 },
1709 "removeRepoFromInstallation": {
1710 "url": "/installations/:installation_id/repositories/:repository_id",
1711 "method": "DELETE",
1712 "deprecated": "`integrations` has been renamed to `apps`",
1713 "headers": {
1714 "accept": "application/vnd.github.machine-man-preview"
1715 },
1716 "params": {
1717 "installation_id": {
1718 "type": "string",
1719 "required": true
1720 },
1721 "repository_id": {
1722 "type": "string",
1723 "required": true
1724 }
1725 },
1726 "description": "Remove a single repository from an installation. (In preview period. See README.)"
1727 }
1728 },
1729 "apps": {
1730 "get": {
1731 "url": "/app",
1732 "method": "GET",
1733 "params": {},
1734 "description": "Get the authenticated GitHub App. (In preview period. See README.)"
1735 },
1736 "getForSlug": {
1737 "url": "/apps/:app_slug",
1738 "method": "GET",
1739 "headers": {
1740 "accept": "application/vnd.github.machine-man-preview"
1741 },
1742 "params": {
1743 "app_slug": {
1744 "type": "string",
1745 "required": true,
1746 "description": "The URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., https://github.com/settings/apps/:app_slug)."
1747 }
1748 },
1749 "description": "Get a single GitHub App. (In preview period. See README.)"
1750 },
1751 "getInstallations": {
1752 "url": "/app/installations",
1753 "method": "GET",
1754 "headers": {
1755 "accept": "application/vnd.github.machine-man-preview"
1756 },
1757 "params": {
1758 "page": {
1759 "type": "number",
1760 "description": "Page number of the results to fetch."
1761 },
1762 "per_page": {
1763 "type": "number",
1764 "default": "30",
1765 "description": "A custom page size up to 100. Default is 30."
1766 }
1767 },
1768 "description": "List the app's installations. (In preview period. See README.)"
1769 },
1770 "getInstallation": {
1771 "url": "/app/installations/:installation_id",
1772 "method": "GET",
1773 "headers": {
1774 "accept": "application/vnd.github.machine-man-preview"
1775 },
1776 "params": {
1777 "installation_id": {
1778 "type": "string",
1779 "required": true
1780 }
1781 },
1782 "description": "Get a single installation. (In preview period. See README.)"
1783 },
1784 "createInstallationToken": {
1785 "url": "/installations/:installation_id/access_tokens",
1786 "method": "POST",
1787 "headers": {
1788 "accept": "application/vnd.github.machine-man-preview"
1789 },
1790 "params": {
1791 "installation_id": {
1792 "type": "string",
1793 "required": true
1794 },
1795 "user_id": {
1796 "type": "string",
1797 "description": "The id of the user for whom the app is acting on behalf of."
1798 }
1799 },
1800 "description": "Create a new installation token. (In preview period. See README.)"
1801 },
1802 "getInstallationRepositories": {
1803 "url": "/installation/repositories",
1804 "method": "GET",
1805 "headers": {
1806 "accept": "application/vnd.github.machine-man-preview"
1807 },
1808 "params": {
1809 "user_id": {
1810 "type": "string",
1811 "description": "The integer ID of a user, to filter results to repositories that are visible to both the installation and the given user."
1812 }
1813 },
1814 "description": "List repositories that are accessible to the authenticated installation. (In preview period. See README.)"
1815 },
1816 "addRepoToInstallation": {
1817 "url": "/installations/:installation_id/repositories/:repository_id",
1818 "method": "PUT",
1819 "headers": {
1820 "accept": "application/vnd.github.machine-man-preview"
1821 },
1822 "params": {
1823 "installation_id": {
1824 "type": "string",
1825 "required": true
1826 },
1827 "repository_id": {
1828 "type": "string",
1829 "required": true
1830 }
1831 },
1832 "description": "Add a single repository to an installation. (In preview period. See README.)"
1833 },
1834 "removeRepoFromInstallation": {
1835 "url": "/installations/:installation_id/repositories/:repository_id",
1836 "method": "DELETE",
1837 "headers": {
1838 "accept": "application/vnd.github.machine-man-preview"
1839 },
1840 "params": {
1841 "installation_id": {
1842 "type": "string",
1843 "required": true
1844 },
1845 "repository_id": {
1846 "type": "string",
1847 "required": true
1848 }
1849 },
1850 "description": "Remove a single repository from an installation. (In preview period. See README.)"
1851 },
1852 "getMarketplaceListingPlans": {
1853 "url": "/marketplace_listing/plans",
1854 "method": "GET",
1855 "headers": {
1856 "accept": "application/vnd.github.valkyrie-preview+json"
1857 },
1858 "params": {
1859 "page": {
1860 "type": "number",
1861 "description": "Page number of the results to fetch."
1862 },
1863 "per_page": {
1864 "type": "number",
1865 "default": "30",
1866 "description": "A custom page size up to 100. Default is 30."
1867 }
1868 },
1869 "description": "List all plans for your Marketplace listing. (In preview period. See README.)"
1870 },
1871 "getMarketplaceListingStubbedPlans": {
1872 "url": "/marketplace_listing/stubbed/plans",
1873 "method": "GET",
1874 "headers": {
1875 "accept": "application/vnd.github.valkyrie-preview+json"
1876 },
1877 "params": {
1878 "page": {
1879 "type": "number",
1880 "description": "Page number of the results to fetch."
1881 },
1882 "per_page": {
1883 "type": "number",
1884 "default": "30",
1885 "description": "A custom page size up to 100. Default is 30."
1886 }
1887 },
1888 "description": "List all stubbed plans for your Marketplace listing. (In preview period. See README.)"
1889 },
1890 "getMarketplaceListingPlanAccounts": {
1891 "url": "/marketplace_listing/plans/:id/accounts",
1892 "method": "GET",
1893 "headers": {
1894 "accept": "application/vnd.github.valkyrie-preview+json"
1895 },
1896 "params": {
1897 "id": {
1898 "type": "string",
1899 "required": true
1900 },
1901 "page": {
1902 "type": "number",
1903 "description": "Page number of the results to fetch."
1904 },
1905 "per_page": {
1906 "type": "number",
1907 "default": "30",
1908 "description": "A custom page size up to 100. Default is 30."
1909 }
1910 },
1911 "description": "List all GitHub accounts (user or organization) on a specific plan. (In preview period. See README.)"
1912 },
1913 "getMarketplaceListingStubbedPlanAccounts": {
1914 "url": "/marketplace_listing/stubbed/plans/:id/accounts",
1915 "method": "GET",
1916 "headers": {
1917 "accept": "application/vnd.github.valkyrie-preview+json"
1918 },
1919 "params": {
1920 "id": {
1921 "type": "string",
1922 "required": true
1923 },
1924 "page": {
1925 "type": "number",
1926 "description": "Page number of the results to fetch."
1927 },
1928 "per_page": {
1929 "type": "number",
1930 "default": "30",
1931 "description": "A custom page size up to 100. Default is 30."
1932 }
1933 },
1934 "description": "List all GitHub accounts (user or organization) on a specific stubbed plan. (In preview period. See README.)"
1935 },
1936 "checkMarketplaceListingAccount": {
1937 "url": "/marketplace_listing/accounts/:id",
1938 "method": "GET",
1939 "headers": {
1940 "accept": "application/vnd.github.valkyrie-preview+json"
1941 },
1942 "params": {
1943 "id": {
1944 "type": "string",
1945 "required": true
1946 }
1947 },
1948 "description": "Check if a GitHub account is associated with any Marketplace listing. (In preview period. See README.)"
1949 },
1950 "checkMarketplaceListingStubbedAccount": {
1951 "url": "/marketplace_listing/stubbed/accounts/:id",
1952 "method": "GET",
1953 "headers": {
1954 "accept": "application/vnd.github.valkyrie-preview+json"
1955 },
1956 "params": {
1957 "id": {
1958 "type": "string",
1959 "required": true
1960 }
1961 },
1962 "description": "Check if a stubbed GitHub account is associated with any Marketplace listing. (In preview period. See README.)"
1963 }
1964 },
1965 "issues": {
1966 "get": {
1967 "url": "/repos/:owner/:repo/issues/:number",
1968 "method": "GET",
1969 "headers": {
1970 "accept": "application/vnd.github.squirrel-girl-preview"
1971 },
1972 "params": {
1973 "owner": {
1974 "type": "string",
1975 "required": true
1976 },
1977 "repo": {
1978 "type": "string",
1979 "required": true
1980 },
1981 "number": {
1982 "type": "number",
1983 "required": true
1984 }
1985 },
1986 "description": "Get a single issue"
1987 },
1988 "create": {
1989 "url": "/repos/:owner/:repo/issues",
1990 "method": "POST",
1991 "headers": {
1992 "accept": "application/vnd.github.squirrel-girl-preview"
1993 },
1994 "params": {
1995 "owner": {
1996 "type": "string",
1997 "required": true
1998 },
1999 "repo": {
2000 "type": "string",
2001 "required": true
2002 },
2003 "title": {
2004 "type": "string",
2005 "required": true
2006 },
2007 "body": {
2008 "type": "string"
2009 },
2010 "assignee": {
2011 "type": "string",
2012 "description": "Login for the user that this issue should be assigned to."
2013 },
2014 "milestone": {
2015 "type": "number",
2016 "description": "Milestone to associate this issue with."
2017 },
2018 "labels": {
2019 "type": "string[]",
2020 "description": "Array of strings - Labels to associate with this issue."
2021 },
2022 "assignees": {
2023 "type": "string[]",
2024 "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."
2025 }
2026 },
2027 "description": "Create an issue"
2028 },
2029 "edit": {
2030 "url": "/repos/:owner/:repo/issues/:number",
2031 "method": "PATCH",
2032 "headers": {
2033 "accept": "application/vnd.github.squirrel-girl-preview"
2034 },
2035 "params": {
2036 "owner": {
2037 "type": "string",
2038 "required": true
2039 },
2040 "repo": {
2041 "type": "string",
2042 "required": true
2043 },
2044 "number": {
2045 "type": "number",
2046 "required": true
2047 },
2048 "title": {
2049 "type": "string"
2050 },
2051 "body": {
2052 "type": "string"
2053 },
2054 "assignee": {
2055 "type": "string",
2056 "description": "Login for the user that this issue should be assigned to."
2057 },
2058 "state": {
2059 "type": "string",
2060 "enum": [
2061 "open",
2062 "closed"
2063 ],
2064 "default": "open",
2065 "description": "open or closed"
2066 },
2067 "milestone": {
2068 "type": "number",
2069 "description": "Milestone to associate this issue with."
2070 },
2071 "labels": {
2072 "type": "string[]",
2073 "description": "Array of strings - Labels to associate with this issue."
2074 },
2075 "assignees": {
2076 "type": "string[]",
2077 "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."
2078 }
2079 },
2080 "description": "Edit an issue"
2081 },
2082 "lock": {
2083 "url": "/repos/:owner/:repo/issues/:number/lock",
2084 "method": "PUT",
2085 "params": {
2086 "owner": {
2087 "type": "string",
2088 "required": true
2089 },
2090 "repo": {
2091 "type": "string",
2092 "required": true
2093 },
2094 "number": {
2095 "type": "number",
2096 "required": true
2097 }
2098 },
2099 "description": "Users with push access can lock an issue's conversation."
2100 },
2101 "unlock": {
2102 "url": "/repos/:owner/:repo/issues/:number/lock",
2103 "method": "DELETE",
2104 "params": {
2105 "owner": {
2106 "type": "string",
2107 "required": true
2108 },
2109 "repo": {
2110 "type": "string",
2111 "required": true
2112 },
2113 "number": {
2114 "type": "number",
2115 "required": true
2116 }
2117 },
2118 "description": "Users with push access can unlock an issue's conversation."
2119 },
2120 "getAll": {
2121 "url": "/issues",
2122 "method": "GET",
2123 "headers": {
2124 "accept": "application/vnd.github.squirrel-girl-preview"
2125 },
2126 "params": {
2127 "filter": {
2128 "type": "string",
2129 "enum": [
2130 "all",
2131 "assigned",
2132 "created",
2133 "mentioned",
2134 "subscribed"
2135 ]
2136 },
2137 "state": {
2138 "type": "string",
2139 "enum": [
2140 "open",
2141 "closed",
2142 "all"
2143 ],
2144 "default": "open",
2145 "description": "open, closed, or all"
2146 },
2147 "labels": {
2148 "type": "string",
2149 "description": "String list of comma separated Label names. Example: bug,ui,@high"
2150 },
2151 "sort": {
2152 "type": "string",
2153 "enum": [
2154 "created",
2155 "updated",
2156 "comments"
2157 ],
2158 "default": "created"
2159 },
2160 "direction": {
2161 "type": "string",
2162 "enum": [
2163 "asc",
2164 "desc"
2165 ],
2166 "default": "desc"
2167 },
2168 "since": {
2169 "type": "date",
2170 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
2171 },
2172 "page": {
2173 "type": "number",
2174 "description": "Page number of the results to fetch."
2175 },
2176 "per_page": {
2177 "type": "number",
2178 "default": "30",
2179 "description": "A custom page size up to 100. Default is 30."
2180 }
2181 },
2182 "description": "List all issues across all the authenticated user's visible repositories including owned repositories, member repositories, and organization repositories"
2183 },
2184 "getForUser": {
2185 "url": "/user/issues",
2186 "method": "GET",
2187 "headers": {
2188 "accept": "application/vnd.github.squirrel-girl-preview"
2189 },
2190 "params": {
2191 "filter": {
2192 "type": "string",
2193 "enum": [
2194 "all",
2195 "assigned",
2196 "created",
2197 "mentioned",
2198 "subscribed"
2199 ]
2200 },
2201 "state": {
2202 "type": "string",
2203 "enum": [
2204 "open",
2205 "closed",
2206 "all"
2207 ],
2208 "default": "open",
2209 "description": "open, closed, or all"
2210 },
2211 "labels": {
2212 "type": "string",
2213 "description": "String list of comma separated Label names. Example: bug,ui,@high"
2214 },
2215 "sort": {
2216 "type": "string",
2217 "enum": [
2218 "created",
2219 "updated",
2220 "comments"
2221 ],
2222 "default": "created"
2223 },
2224 "direction": {
2225 "type": "string",
2226 "enum": [
2227 "asc",
2228 "desc"
2229 ],
2230 "default": "desc"
2231 },
2232 "since": {
2233 "type": "date",
2234 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
2235 },
2236 "page": {
2237 "type": "number",
2238 "description": "Page number of the results to fetch."
2239 },
2240 "per_page": {
2241 "type": "number",
2242 "default": "30",
2243 "description": "A custom page size up to 100. Default is 30."
2244 }
2245 },
2246 "description": "List all issues across owned and member repositories for the authenticated user"
2247 },
2248 "getForOrg": {
2249 "url": "/orgs/:org/issues",
2250 "method": "GET",
2251 "headers": {
2252 "accept": "application/vnd.github.squirrel-girl-preview"
2253 },
2254 "params": {
2255 "org": {
2256 "type": "string",
2257 "required": true
2258 },
2259 "filter": {
2260 "type": "string",
2261 "enum": [
2262 "all",
2263 "assigned",
2264 "created",
2265 "mentioned",
2266 "subscribed"
2267 ]
2268 },
2269 "state": {
2270 "type": "string",
2271 "enum": [
2272 "open",
2273 "closed",
2274 "all"
2275 ],
2276 "default": "open",
2277 "description": "open, closed, or all"
2278 },
2279 "labels": {
2280 "type": "string",
2281 "description": "String list of comma separated Label names. Example: bug,ui,@high"
2282 },
2283 "sort": {
2284 "type": "string",
2285 "enum": [
2286 "created",
2287 "updated",
2288 "comments"
2289 ],
2290 "default": "created"
2291 },
2292 "direction": {
2293 "type": "string",
2294 "enum": [
2295 "asc",
2296 "desc"
2297 ],
2298 "default": "desc"
2299 },
2300 "since": {
2301 "type": "date",
2302 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
2303 },
2304 "page": {
2305 "type": "number",
2306 "description": "Page number of the results to fetch."
2307 },
2308 "per_page": {
2309 "type": "number",
2310 "default": "30",
2311 "description": "A custom page size up to 100. Default is 30."
2312 }
2313 },
2314 "description": "List all issues for a given organization for the authenticated user"
2315 },
2316 "getForRepo": {
2317 "url": "/repos/:owner/:repo/issues",
2318 "method": "GET",
2319 "headers": {
2320 "accept": "application/vnd.github.squirrel-girl-preview"
2321 },
2322 "params": {
2323 "owner": {
2324 "type": "string",
2325 "required": true
2326 },
2327 "repo": {
2328 "type": "string",
2329 "required": true
2330 },
2331 "milestone": {
2332 "type": "string",
2333 "validation": "^([0-9]+|none|\\*)$"
2334 },
2335 "state": {
2336 "type": "string",
2337 "enum": [
2338 "open",
2339 "closed",
2340 "all"
2341 ],
2342 "default": "open",
2343 "description": "open, closed, or all"
2344 },
2345 "assignee": {
2346 "type": "string",
2347 "description": "String User login, `none` for Issues with no assigned User. `*` for Issues with any assigned User."
2348 },
2349 "creator": {
2350 "type": "string",
2351 "description": "The user that created the issue."
2352 },
2353 "mentioned": {
2354 "type": "string",
2355 "description": "String User login."
2356 },
2357 "labels": {
2358 "type": "string",
2359 "description": "String list of comma separated Label names. Example: bug,ui,@high"
2360 },
2361 "sort": {
2362 "type": "string",
2363 "enum": [
2364 "created",
2365 "updated",
2366 "comments"
2367 ],
2368 "default": "created"
2369 },
2370 "direction": {
2371 "type": "string",
2372 "enum": [
2373 "asc",
2374 "desc"
2375 ],
2376 "default": "desc"
2377 },
2378 "since": {
2379 "type": "date",
2380 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
2381 },
2382 "page": {
2383 "type": "number",
2384 "description": "Page number of the results to fetch."
2385 },
2386 "per_page": {
2387 "type": "number",
2388 "default": "30",
2389 "description": "A custom page size up to 100. Default is 30."
2390 }
2391 },
2392 "description": "List issues for a repository"
2393 },
2394 "getAssignees": {
2395 "url": "/repos/:owner/:repo/assignees",
2396 "method": "GET",
2397 "params": {
2398 "owner": {
2399 "type": "string",
2400 "required": true
2401 },
2402 "repo": {
2403 "type": "string",
2404 "required": true
2405 }
2406 },
2407 "description": "List assignees"
2408 },
2409 "checkAssignee": {
2410 "url": "/repos/:owner/:repo/assignees/:assignee",
2411 "method": "GET",
2412 "params": {
2413 "owner": {
2414 "type": "string",
2415 "required": true
2416 },
2417 "repo": {
2418 "type": "string",
2419 "required": true
2420 },
2421 "assignee": {
2422 "type": "string",
2423 "required": true,
2424 "description": "Login for the user that this issue should be assigned to."
2425 }
2426 },
2427 "description": "Check assignee"
2428 },
2429 "addAssigneesToIssue": {
2430 "url": "/repos/:owner/:repo/issues/:number/assignees",
2431 "method": "POST",
2432 "params": {
2433 "owner": {
2434 "type": "string",
2435 "required": true
2436 },
2437 "repo": {
2438 "type": "string",
2439 "required": true
2440 },
2441 "number": {
2442 "type": "number",
2443 "required": true
2444 },
2445 "assignees": {
2446 "type": "string[]",
2447 "required": true,
2448 "description": "Logins for the users that should be added to the issue."
2449 }
2450 },
2451 "description": "Add assignees to an issue."
2452 },
2453 "removeAssigneesFromIssue": {
2454 "url": "/repos/:owner/:repo/issues/:number/assignees",
2455 "method": "DELETE",
2456 "params": {
2457 "owner": {
2458 "type": "string",
2459 "required": true
2460 },
2461 "repo": {
2462 "type": "string",
2463 "required": true
2464 },
2465 "number": {
2466 "type": "number",
2467 "required": true
2468 },
2469 "body": {
2470 "type": "json",
2471 "required": true
2472 }
2473 },
2474 "description": "Remove assignees from an issue."
2475 },
2476 "getComments": {
2477 "url": "/repos/:owner/:repo/issues/:number/comments",
2478 "method": "GET",
2479 "headers": {
2480 "accept": "application/vnd.github.squirrel-girl-preview"
2481 },
2482 "params": {
2483 "owner": {
2484 "type": "string",
2485 "required": true
2486 },
2487 "repo": {
2488 "type": "string",
2489 "required": true
2490 },
2491 "number": {
2492 "type": "number",
2493 "required": true
2494 },
2495 "since": {
2496 "type": "date",
2497 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
2498 },
2499 "page": {
2500 "type": "number",
2501 "description": "Page number of the results to fetch."
2502 },
2503 "per_page": {
2504 "type": "number",
2505 "default": "30",
2506 "description": "A custom page size up to 100. Default is 30."
2507 }
2508 },
2509 "description": "List comments on an issue"
2510 },
2511 "getCommentsForRepo": {
2512 "url": "/repos/:owner/:repo/issues/comments",
2513 "method": "GET",
2514 "headers": {
2515 "accept": "application/vnd.github.squirrel-girl-preview"
2516 },
2517 "params": {
2518 "owner": {
2519 "type": "string",
2520 "required": true
2521 },
2522 "repo": {
2523 "type": "string",
2524 "required": true
2525 },
2526 "sort": {
2527 "type": "string",
2528 "enum": [
2529 "created",
2530 "updated"
2531 ],
2532 "default": "created"
2533 },
2534 "direction": {
2535 "type": "string",
2536 "enum": [
2537 "asc",
2538 "desc"
2539 ],
2540 "default": "desc"
2541 },
2542 "since": {
2543 "type": "date",
2544 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
2545 },
2546 "page": {
2547 "type": "number",
2548 "description": "Page number of the results to fetch."
2549 },
2550 "per_page": {
2551 "type": "number",
2552 "default": "30",
2553 "description": "A custom page size up to 100. Default is 30."
2554 }
2555 },
2556 "description": "List comments in a repository"
2557 },
2558 "getComment": {
2559 "url": "/repos/:owner/:repo/issues/comments/:id",
2560 "method": "GET",
2561 "headers": {
2562 "accept": "application/vnd.github.squirrel-girl-preview"
2563 },
2564 "params": {
2565 "owner": {
2566 "type": "string",
2567 "required": true
2568 },
2569 "repo": {
2570 "type": "string",
2571 "required": true
2572 },
2573 "id": {
2574 "type": "string",
2575 "required": true
2576 }
2577 },
2578 "description": "Get a single comment"
2579 },
2580 "createComment": {
2581 "url": "/repos/:owner/:repo/issues/:number/comments",
2582 "method": "POST",
2583 "headers": {
2584 "accept": "application/vnd.github.squirrel-girl-preview"
2585 },
2586 "params": {
2587 "owner": {
2588 "type": "string",
2589 "required": true
2590 },
2591 "repo": {
2592 "type": "string",
2593 "required": true
2594 },
2595 "number": {
2596 "type": "number",
2597 "required": true
2598 },
2599 "body": {
2600 "type": "string",
2601 "required": true
2602 }
2603 },
2604 "description": "Create a comment"
2605 },
2606 "editComment": {
2607 "url": "/repos/:owner/:repo/issues/comments/:id",
2608 "method": "PATCH",
2609 "headers": {
2610 "accept": "application/vnd.github.squirrel-girl-preview"
2611 },
2612 "params": {
2613 "owner": {
2614 "type": "string",
2615 "required": true
2616 },
2617 "repo": {
2618 "type": "string",
2619 "required": true
2620 },
2621 "id": {
2622 "type": "string",
2623 "required": true
2624 },
2625 "body": {
2626 "type": "string",
2627 "required": true
2628 }
2629 },
2630 "description": "Edit a comment"
2631 },
2632 "deleteComment": {
2633 "url": "/repos/:owner/:repo/issues/comments/:id",
2634 "method": "DELETE",
2635 "headers": {
2636 "accept": "application/vnd.github.squirrel-girl-preview"
2637 },
2638 "params": {
2639 "owner": {
2640 "type": "string",
2641 "required": true
2642 },
2643 "repo": {
2644 "type": "string",
2645 "required": true
2646 },
2647 "id": {
2648 "type": "string",
2649 "required": true
2650 }
2651 },
2652 "description": "Delete a comment"
2653 },
2654 "getEvents": {
2655 "url": "/repos/:owner/:repo/issues/:issue_number/events",
2656 "method": "GET",
2657 "params": {
2658 "owner": {
2659 "type": "string",
2660 "required": true
2661 },
2662 "repo": {
2663 "type": "string",
2664 "required": true
2665 },
2666 "issue_number": {
2667 "type": "number",
2668 "required": true
2669 },
2670 "page": {
2671 "type": "number",
2672 "description": "Page number of the results to fetch."
2673 },
2674 "per_page": {
2675 "type": "number",
2676 "default": "30",
2677 "description": "A custom page size up to 100. Default is 30."
2678 }
2679 },
2680 "description": "List events for an issue"
2681 },
2682 "getEventsForRepo": {
2683 "url": "/repos/:owner/:repo/issues/events",
2684 "method": "GET",
2685 "params": {
2686 "owner": {
2687 "type": "string",
2688 "required": true
2689 },
2690 "repo": {
2691 "type": "string",
2692 "required": true
2693 },
2694 "page": {
2695 "type": "number",
2696 "description": "Page number of the results to fetch."
2697 },
2698 "per_page": {
2699 "type": "number",
2700 "default": "30",
2701 "description": "A custom page size up to 100. Default is 30."
2702 }
2703 },
2704 "description": "List events for a repository"
2705 },
2706 "getEvent": {
2707 "url": "/repos/:owner/:repo/issues/events/:id",
2708 "method": "GET",
2709 "params": {
2710 "owner": {
2711 "type": "string",
2712 "required": true
2713 },
2714 "repo": {
2715 "type": "string",
2716 "required": true
2717 },
2718 "id": {
2719 "type": "string",
2720 "required": true
2721 }
2722 },
2723 "description": "Get a single event"
2724 },
2725 "getLabels": {
2726 "url": "/repos/:owner/:repo/labels",
2727 "method": "GET",
2728 "params": {
2729 "owner": {
2730 "type": "string",
2731 "required": true
2732 },
2733 "repo": {
2734 "type": "string",
2735 "required": true
2736 },
2737 "page": {
2738 "type": "number",
2739 "description": "Page number of the results to fetch."
2740 },
2741 "per_page": {
2742 "type": "number",
2743 "default": "30",
2744 "description": "A custom page size up to 100. Default is 30."
2745 }
2746 },
2747 "description": "List all labels for this repository"
2748 },
2749 "getLabel": {
2750 "url": "/repos/:owner/:repo/labels/:name",
2751 "method": "GET",
2752 "params": {
2753 "owner": {
2754 "type": "string",
2755 "required": true
2756 },
2757 "repo": {
2758 "type": "string",
2759 "required": true
2760 },
2761 "name": {
2762 "type": "string",
2763 "required": true
2764 }
2765 },
2766 "description": "Get a single label"
2767 },
2768 "createLabel": {
2769 "url": "/repos/:owner/:repo/labels",
2770 "method": "POST",
2771 "params": {
2772 "owner": {
2773 "type": "string",
2774 "required": true
2775 },
2776 "repo": {
2777 "type": "string",
2778 "required": true
2779 },
2780 "name": {
2781 "type": "string",
2782 "required": true
2783 },
2784 "color": {
2785 "type": "string",
2786 "required": true,
2787 "description": "6 character hex code, without a leading #."
2788 }
2789 },
2790 "description": "Create a label"
2791 },
2792 "updateLabel": {
2793 "url": "/repos/:owner/:repo/labels/:oldname",
2794 "method": "PATCH",
2795 "params": {
2796 "owner": {
2797 "type": "string",
2798 "required": true
2799 },
2800 "repo": {
2801 "type": "string",
2802 "required": true
2803 },
2804 "oldname": {
2805 "type": "string",
2806 "required": true,
2807 "description": "The old name of the label."
2808 },
2809 "name": {
2810 "type": "string",
2811 "required": true,
2812 "description": "The new name of the label."
2813 },
2814 "color": {
2815 "type": "string",
2816 "required": true,
2817 "description": "6 character hex code, without a leading #."
2818 }
2819 },
2820 "description": "Update a label"
2821 },
2822 "deleteLabel": {
2823 "url": "/repos/:owner/:repo/labels/:name",
2824 "method": "DELETE",
2825 "params": {
2826 "owner": {
2827 "type": "string",
2828 "required": true
2829 },
2830 "repo": {
2831 "type": "string",
2832 "required": true
2833 },
2834 "name": {
2835 "type": "string",
2836 "required": true
2837 }
2838 },
2839 "description": "Delete a label"
2840 },
2841 "getIssueLabels": {
2842 "url": "/repos/:owner/:repo/issues/:number/labels",
2843 "method": "GET",
2844 "params": {
2845 "owner": {
2846 "type": "string",
2847 "required": true
2848 },
2849 "repo": {
2850 "type": "string",
2851 "required": true
2852 },
2853 "number": {
2854 "type": "number",
2855 "required": true
2856 }
2857 },
2858 "description": "List labels on an issue"
2859 },
2860 "addLabels": {
2861 "url": "/repos/:owner/:repo/issues/:number/labels",
2862 "method": "POST",
2863 "params": {
2864 "owner": {
2865 "type": "string",
2866 "required": true
2867 },
2868 "repo": {
2869 "type": "string",
2870 "required": true
2871 },
2872 "number": {
2873 "type": "number",
2874 "required": true
2875 },
2876 "labels": {
2877 "type": "string[]",
2878 "required": true,
2879 "mapTo": "input"
2880 }
2881 },
2882 "description": "Add labels to an issue"
2883 },
2884 "removeLabel": {
2885 "url": "/repos/:owner/:repo/issues/:number/labels/:name",
2886 "method": "DELETE",
2887 "params": {
2888 "owner": {
2889 "type": "string",
2890 "required": true
2891 },
2892 "repo": {
2893 "type": "string",
2894 "required": true
2895 },
2896 "number": {
2897 "type": "number",
2898 "required": true
2899 },
2900 "name": {
2901 "type": "string",
2902 "required": true
2903 }
2904 },
2905 "description": "Remove a label from an issue"
2906 },
2907 "replaceAllLabels": {
2908 "url": "/repos/:owner/:repo/issues/:number/labels",
2909 "method": "PUT",
2910 "params": {
2911 "owner": {
2912 "type": "string",
2913 "required": true
2914 },
2915 "repo": {
2916 "type": "string",
2917 "required": true
2918 },
2919 "number": {
2920 "type": "number",
2921 "required": true
2922 },
2923 "labels": {
2924 "type": "string[]",
2925 "required": true,
2926 "mapTo": "input",
2927 "description": "Sending an empty array ([]) will remove all Labels from the Issue."
2928 }
2929 },
2930 "description": "Replace all labels for an issue"
2931 },
2932 "removeAllLabels": {
2933 "url": "/repos/:owner/:repo/issues/:number/labels",
2934 "method": "DELETE",
2935 "params": {
2936 "owner": {
2937 "type": "string",
2938 "required": true
2939 },
2940 "repo": {
2941 "type": "string",
2942 "required": true
2943 },
2944 "number": {
2945 "type": "number",
2946 "required": true
2947 }
2948 },
2949 "description": "Remove all labels from an issue"
2950 },
2951 "getMilestoneLabels": {
2952 "url": "/repos/:owner/:repo/milestones/:number/labels",
2953 "method": "GET",
2954 "params": {
2955 "owner": {
2956 "type": "string",
2957 "required": true
2958 },
2959 "repo": {
2960 "type": "string",
2961 "required": true
2962 },
2963 "number": {
2964 "type": "number",
2965 "required": true
2966 }
2967 },
2968 "description": "Get labels for every issue in a milestone"
2969 },
2970 "getMilestones": {
2971 "url": "/repos/:owner/:repo/milestones",
2972 "method": "GET",
2973 "params": {
2974 "owner": {
2975 "type": "string",
2976 "required": true
2977 },
2978 "repo": {
2979 "type": "string",
2980 "required": true
2981 },
2982 "state": {
2983 "type": "string",
2984 "enum": [
2985 "open",
2986 "closed",
2987 "all"
2988 ],
2989 "default": "open"
2990 },
2991 "sort": {
2992 "type": "string",
2993 "enum": [
2994 "due_on",
2995 "completeness"
2996 ],
2997 "default": "due_on",
2998 "description": "due_on, completeness, default: due_on"
2999 },
3000 "direction": {
3001 "type": "string",
3002 "enum": [
3003 "asc",
3004 "desc"
3005 ],
3006 "default": "asc"
3007 },
3008 "page": {
3009 "type": "number",
3010 "description": "Page number of the results to fetch."
3011 },
3012 "per_page": {
3013 "type": "number",
3014 "default": "30",
3015 "description": "A custom page size up to 100. Default is 30."
3016 }
3017 },
3018 "description": "List milestones for a repository"
3019 },
3020 "getMilestone": {
3021 "url": "/repos/:owner/:repo/milestones/:number",
3022 "method": "GET",
3023 "params": {
3024 "owner": {
3025 "type": "string",
3026 "required": true
3027 },
3028 "repo": {
3029 "type": "string",
3030 "required": true
3031 },
3032 "number": {
3033 "type": "number",
3034 "required": true
3035 }
3036 },
3037 "description": "Get a single milestone"
3038 },
3039 "createMilestone": {
3040 "url": "/repos/:owner/:repo/milestones",
3041 "method": "POST",
3042 "params": {
3043 "owner": {
3044 "type": "string",
3045 "required": true
3046 },
3047 "repo": {
3048 "type": "string",
3049 "required": true
3050 },
3051 "title": {
3052 "type": "string",
3053 "required": true
3054 },
3055 "state": {
3056 "type": "string",
3057 "enum": [
3058 "open",
3059 "closed",
3060 "all"
3061 ],
3062 "default": "open"
3063 },
3064 "description": {
3065 "type": "string"
3066 },
3067 "due_on": {
3068 "type": "date",
3069 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
3070 }
3071 },
3072 "description": "Create a milestone"
3073 },
3074 "updateMilestone": {
3075 "url": "/repos/:owner/:repo/milestones/:number",
3076 "method": "PATCH",
3077 "params": {
3078 "owner": {
3079 "type": "string",
3080 "required": true
3081 },
3082 "repo": {
3083 "type": "string",
3084 "required": true
3085 },
3086 "number": {
3087 "type": "number",
3088 "required": true
3089 },
3090 "title": {
3091 "type": "string",
3092 "required": true
3093 },
3094 "state": {
3095 "type": "string",
3096 "enum": [
3097 "open",
3098 "closed",
3099 "all"
3100 ],
3101 "default": "open"
3102 },
3103 "description": {
3104 "type": "string"
3105 },
3106 "due_on": {
3107 "type": "date",
3108 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
3109 }
3110 },
3111 "description": "Update a milestone"
3112 },
3113 "deleteMilestone": {
3114 "url": "/repos/:owner/:repo/milestones/:number",
3115 "method": "DELETE",
3116 "params": {
3117 "owner": {
3118 "type": "string",
3119 "required": true
3120 },
3121 "repo": {
3122 "type": "string",
3123 "required": true
3124 },
3125 "number": {
3126 "type": "number",
3127 "required": true
3128 }
3129 },
3130 "description": "Delete a milestone"
3131 },
3132 "getEventsTimeline": {
3133 "url": "/repos/:owner/:repo/issues/:issue_number/timeline",
3134 "method": "GET",
3135 "headers": {
3136 "accept": "application/vnd.github.mockingbird-preview"
3137 },
3138 "params": {
3139 "owner": {
3140 "type": "string",
3141 "required": true
3142 },
3143 "repo": {
3144 "type": "string",
3145 "required": true
3146 },
3147 "issue_number": {
3148 "type": "number",
3149 "required": true
3150 },
3151 "page": {
3152 "type": "number",
3153 "description": "Page number of the results to fetch."
3154 },
3155 "per_page": {
3156 "type": "number",
3157 "default": "30",
3158 "description": "A custom page size up to 100. Default is 30."
3159 }
3160 },
3161 "description": "List events for an issue. (In preview period. See README.)"
3162 }
3163 },
3164 "migrations": {
3165 "startMigration": {
3166 "url": "/orgs/:org/migrations",
3167 "method": "POST",
3168 "headers": {
3169 "accept": "application/vnd.github.wyandotte-preview+json"
3170 },
3171 "params": {
3172 "org": {
3173 "type": "string",
3174 "required": true
3175 },
3176 "repositories": {
3177 "type": "string[]",
3178 "required": true,
3179 "description": "A list of arrays indicating which repositories should be migrated."
3180 },
3181 "lock_repositories": {
3182 "type": "boolean",
3183 "default": "false",
3184 "description": "Indicates whether repositories should be locked (to prevent manipulation) while migrating data. Default: false."
3185 },
3186 "exclude_attachments": {
3187 "type": "boolean",
3188 "default": "false",
3189 "description": "Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). Default: false."
3190 }
3191 },
3192 "description": "Start a migration. (In preview period. See README.)"
3193 },
3194 "getMigrations": {
3195 "url": "/orgs/:org/migrations",
3196 "method": "GET",
3197 "headers": {
3198 "accept": "application/vnd.github.wyandotte-preview+json"
3199 },
3200 "params": {
3201 "org": {
3202 "type": "string",
3203 "required": true
3204 },
3205 "page": {
3206 "type": "number",
3207 "description": "Page number of the results to fetch."
3208 },
3209 "per_page": {
3210 "type": "number",
3211 "default": "30",
3212 "description": "A custom page size up to 100. Default is 30."
3213 }
3214 },
3215 "description": "Get a list of migrations. (In preview period. See README.)"
3216 },
3217 "getMigrationStatus": {
3218 "url": "/orgs/:org/migrations/:id",
3219 "method": "GET",
3220 "headers": {
3221 "accept": "application/vnd.github.wyandotte-preview+json"
3222 },
3223 "params": {
3224 "org": {
3225 "type": "string",
3226 "required": true
3227 },
3228 "id": {
3229 "type": "string",
3230 "required": true
3231 }
3232 },
3233 "description": "Get the status of a migration. (In preview period. See README.)"
3234 },
3235 "getMigrationArchiveLink": {
3236 "url": "/orgs/:org/migrations/:id/archive",
3237 "method": "GET",
3238 "headers": {
3239 "accept": "application/vnd.github.wyandotte-preview+json"
3240 },
3241 "params": {
3242 "org": {
3243 "type": "string",
3244 "required": true
3245 },
3246 "id": {
3247 "type": "string",
3248 "required": true
3249 }
3250 },
3251 "description": "Get the URL to a migration archive. (In preview period. See README.)"
3252 },
3253 "deleteMigrationArchive": {
3254 "url": "/orgs/:org/migrations/:id/archive",
3255 "method": "DELETE",
3256 "headers": {
3257 "accept": "application/vnd.github.wyandotte-preview+json"
3258 },
3259 "params": {
3260 "org": {
3261 "type": "string",
3262 "required": true
3263 },
3264 "id": {
3265 "type": "string",
3266 "required": true
3267 }
3268 },
3269 "description": "Delete a migration archive. (In preview period. See README.)"
3270 },
3271 "unlockRepoLockedForMigration": {
3272 "url": "/orgs/:org/migrations/:id/repos/:repo_name/lock",
3273 "method": "DELETE",
3274 "headers": {
3275 "accept": "application/vnd.github.wyandotte-preview+json"
3276 },
3277 "params": {
3278 "org": {
3279 "type": "string",
3280 "required": true
3281 },
3282 "id": {
3283 "type": "string",
3284 "required": true
3285 },
3286 "repo_name": {
3287 "type": "string",
3288 "required": true
3289 }
3290 },
3291 "description": "Unlock a repository that was locked for migration. (In preview period. See README.)"
3292 },
3293 "startImport": {
3294 "url": "/repos/:owner/:repo/import",
3295 "method": "PUT",
3296 "headers": {
3297 "accept": "application/vnd.github.barred-rock-preview"
3298 },
3299 "params": {
3300 "owner": {
3301 "type": "string",
3302 "required": true
3303 },
3304 "repo": {
3305 "type": "string",
3306 "required": true
3307 },
3308 "vcs_url": {
3309 "type": "string",
3310 "required": true,
3311 "description": "The URL of the originating repository."
3312 },
3313 "vcs": {
3314 "type": "string",
3315 "enum": [
3316 "subversion",
3317 "git",
3318 "mercurial",
3319 "tfvc"
3320 ],
3321 "description": "The originating VCS type. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response."
3322 },
3323 "vcs_username": {
3324 "type": "string",
3325 "description": "If authentication is required, the username to provide to vcs_url."
3326 },
3327 "vcs_password": {
3328 "type": "string",
3329 "description": "If authentication is required, the password to provide to vcs_url."
3330 },
3331 "tfvc_project": {
3332 "type": "string",
3333 "description": "For a tfvc import, the name of the project that is being imported."
3334 }
3335 },
3336 "description": "Start an import. (In preview period. See README.)"
3337 },
3338 "getImportProgress": {
3339 "url": "/repos/:owner/:repo/import",
3340 "method": "GET",
3341 "headers": {
3342 "accept": "application/vnd.github.barred-rock-preview"
3343 },
3344 "params": {
3345 "owner": {
3346 "type": "string",
3347 "required": true
3348 },
3349 "repo": {
3350 "type": "string",
3351 "required": true
3352 }
3353 },
3354 "description": "Get import progress. (In preview period. See README.)"
3355 },
3356 "updateImport": {
3357 "url": "/repos/:owner/:repo/import",
3358 "method": "PATCH",
3359 "headers": {
3360 "accept": "application/vnd.github.barred-rock-preview"
3361 },
3362 "params": {
3363 "owner": {
3364 "type": "string",
3365 "required": true
3366 },
3367 "repo": {
3368 "type": "string",
3369 "required": true
3370 },
3371 "vcs_username": {
3372 "type": "string",
3373 "description": "The username to provide to the originating repository."
3374 },
3375 "vcs_password": {
3376 "type": "string",
3377 "description": "The password to provide to the originating repository."
3378 }
3379 },
3380 "description": "Update existing import. (In preview period. See README.)"
3381 },
3382 "getImportCommitAuthors": {
3383 "url": "/repos/:owner/:repo/import/authors",
3384 "method": "GET",
3385 "headers": {
3386 "accept": "application/vnd.github.barred-rock-preview"
3387 },
3388 "params": {
3389 "owner": {
3390 "type": "string",
3391 "required": true
3392 },
3393 "repo": {
3394 "type": "string",
3395 "required": true
3396 },
3397 "since": {
3398 "type": "string",
3399 "description": "Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the raw step."
3400 }
3401 },
3402 "description": "Get import commit authors. (In preview period. See README.)"
3403 },
3404 "mapImportCommitAuthor": {
3405 "url": "/repos/:owner/:repo/import/authors/:author_id",
3406 "method": "PATCH",
3407 "headers": {
3408 "accept": "application/vnd.github.barred-rock-preview"
3409 },
3410 "params": {
3411 "owner": {
3412 "type": "string",
3413 "required": true
3414 },
3415 "repo": {
3416 "type": "string",
3417 "required": true
3418 },
3419 "author_id": {
3420 "type": "string",
3421 "required": true,
3422 "description": "The commit author id."
3423 },
3424 "email": {
3425 "type": "string",
3426 "description": "The new Git author email."
3427 },
3428 "name": {
3429 "type": "string",
3430 "description": "The new Git author name."
3431 }
3432 },
3433 "description": "Map a commit author. (In preview period. See README.)"
3434 },
3435 "setImportLfsPreference": {
3436 "url": "/:owner/:name/import/lfs",
3437 "method": "PATCH",
3438 "headers": {
3439 "accept": "application/vnd.github.barred-rock-preview"
3440 },
3441 "params": {
3442 "owner": {
3443 "type": "string",
3444 "required": true
3445 },
3446 "name": {
3447 "type": "string",
3448 "required": true
3449 },
3450 "use_lfs": {
3451 "type": "string",
3452 "required": true,
3453 "description": "Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import)."
3454 }
3455 },
3456 "description": "Set import LFS preference. (In preview period. See README.)"
3457 },
3458 "getLargeImportFiles": {
3459 "url": "/:owner/:name/import/large_files",
3460 "method": "GET",
3461 "headers": {
3462 "accept": "application/vnd.github.barred-rock-preview"
3463 },
3464 "params": {
3465 "owner": {
3466 "type": "string",
3467 "required": true
3468 },
3469 "name": {
3470 "type": "string",
3471 "required": true
3472 }
3473 },
3474 "description": "List files larger than 100MB found during the import. (In preview period. See README.)"
3475 },
3476 "cancelImport": {
3477 "url": "/repos/:owner/:repo/import",
3478 "method": "DELETE",
3479 "headers": {
3480 "accept": "application/vnd.github.barred-rock-preview"
3481 },
3482 "params": {
3483 "owner": {
3484 "type": "string",
3485 "required": true
3486 },
3487 "repo": {
3488 "type": "string",
3489 "required": true
3490 }
3491 },
3492 "description": "Cancel an import. (In preview period. See README.)"
3493 }
3494 },
3495 "misc": {
3496 "getCodesOfConduct": {
3497 "url": "/codes_of_conduct",
3498 "method": "GET",
3499 "headers": {
3500 "accept": "application/vnd.github.scarlet-witch-preview+json"
3501 },
3502 "params": {},
3503 "description": "List all codes of conduct. (In preview period. See README.)"
3504 },
3505 "getCodeOfConduct": {
3506 "url": "/codes_of_conduct/:key",
3507 "method": "GET",
3508 "headers": {
3509 "accept": "application/vnd.github.scarlet-witch-preview+json"
3510 },
3511 "params": {
3512 "key": {
3513 "type": "string",
3514 "required": true,
3515 "description": "Ex: contributor_covenant"
3516 }
3517 },
3518 "description": "Get an code of conduct. (In preview period. See README.)"
3519 },
3520 "getRepoCodeOfConduct": {
3521 "url": "/repos/:owner/:repo/community/code_of_conduct",
3522 "method": "GET",
3523 "headers": {
3524 "accept": "application/vnd.github.scarlet-witch-preview+json"
3525 },
3526 "params": {
3527 "owner": {
3528 "type": "string",
3529 "required": true
3530 },
3531 "repo": {
3532 "type": "string",
3533 "required": true
3534 }
3535 },
3536 "description": "Get the contents of a repository's code of conduct. (In preview period. See README.)"
3537 },
3538 "getEmojis": {
3539 "url": "/emojis",
3540 "method": "GET",
3541 "params": {},
3542 "description": "Lists all the emojis available to use on GitHub."
3543 },
3544 "getGitignoreTemplates": {
3545 "url": "/gitignore/templates",
3546 "method": "GET",
3547 "params": {},
3548 "description": "Lists available gitignore templates"
3549 },
3550 "getGitignoreTemplate": {
3551 "url": "/gitignore/templates/:name",
3552 "method": "GET",
3553 "params": {
3554 "name": {
3555 "type": "string",
3556 "required": true,
3557 "description": "The name of the .gitignore template to get e.g. 'C'"
3558 }
3559 },
3560 "description": "Get a single gitignore template"
3561 },
3562 "getLicenses": {
3563 "url": "/licenses",
3564 "method": "GET",
3565 "headers": {
3566 "accept": "application/vnd.github.drax-preview+json"
3567 },
3568 "params": {},
3569 "description": "List all licenses. (In preview period. See README.)"
3570 },
3571 "getLicense": {
3572 "url": "/licenses/:license",
3573 "method": "GET",
3574 "headers": {
3575 "accept": "application/vnd.github.drax-preview+json"
3576 },
3577 "params": {
3578 "license": {
3579 "type": "string",
3580 "required": true,
3581 "description": "Ex: /licenses/mit"
3582 }
3583 },
3584 "description": "Get an individual license. (In preview period. See README.)"
3585 },
3586 "getRepoLicense": {
3587 "url": "/repos/:owner/:repo/license",
3588 "method": "GET",
3589 "headers": {
3590 "accept": "application/vnd.github.drax-preview+json"
3591 },
3592 "params": {
3593 "owner": {
3594 "type": "string",
3595 "required": true
3596 },
3597 "repo": {
3598 "type": "string",
3599 "required": true
3600 }
3601 },
3602 "description": "Get the contents of a repository's license. (In preview period. See README.)"
3603 },
3604 "renderMarkdown": {
3605 "url": "/markdown",
3606 "method": "POST",
3607 "params": {
3608 "text": {
3609 "type": "string",
3610 "required": true,
3611 "description": "The Markdown text to render"
3612 },
3613 "mode": {
3614 "type": "string",
3615 "enum": [
3616 "markdown",
3617 "gfm"
3618 ],
3619 "default": "markdown",
3620 "description": "The rendering mode, `markdown` to render a document as plain Markdown, just like README files are rendered. `gfm` to render a document as user-content, e.g. like user comments or issues are rendered. In GFM mode, hard line breaks are always taken into account, and issue and user mentions are linked accordingly."
3621 },
3622 "context": {
3623 "type": "string",
3624 "description": "The repository context. Only taken into account when rendering as `gfm`"
3625 }
3626 },
3627 "description": "Render an arbitrary Markdown document"
3628 },
3629 "renderMarkdownRaw": {
3630 "url": "/markdown/raw",
3631 "method": "POST",
3632 "headers": {
3633 "content-type": "text/plain; charset=utf-8"
3634 },
3635 "params": {
3636 "data": {
3637 "type": "string",
3638 "required": true,
3639 "mapTo": "input",
3640 "description": "Raw data to send as the body of the request"
3641 }
3642 },
3643 "description": "Render a Markdown document in raw mode"
3644 },
3645 "getMeta": {
3646 "url": "/meta",
3647 "method": "GET",
3648 "params": {},
3649 "description": "This endpoint provides information about GitHub.com, the service. Or, if you access this endpoint on your organization's GitHub Enterprise installation, this endpoint provides information about that installation."
3650 },
3651 "getRateLimit": {
3652 "url": "/rate_limit",
3653 "method": "GET",
3654 "params": {},
3655 "description": "Get your current rate limit status"
3656 }
3657 },
3658 "orgs": {
3659 "get": {
3660 "url": "/orgs/:org",
3661 "method": "GET",
3662 "params": {
3663 "org": {
3664 "type": "string",
3665 "required": true
3666 },
3667 "page": {
3668 "type": "number",
3669 "description": "Page number of the results to fetch."
3670 },
3671 "per_page": {
3672 "type": "number",
3673 "default": "30",
3674 "description": "A custom page size up to 100. Default is 30."
3675 }
3676 },
3677 "description": "Get an organization"
3678 },
3679 "update": {
3680 "url": "/orgs/:org",
3681 "method": "PATCH",
3682 "params": {
3683 "org": {
3684 "type": "string",
3685 "required": true
3686 },
3687 "billing_email": {
3688 "type": "string",
3689 "description": "Billing email address. This address is not publicized."
3690 },
3691 "company": {
3692 "type": "string",
3693 "description": "The company name."
3694 },
3695 "email": {
3696 "type": "string",
3697 "description": "The publicly visible email address."
3698 },
3699 "location": {
3700 "type": "string",
3701 "description": "The location."
3702 },
3703 "name": {
3704 "type": "string",
3705 "description": "The shorthand name of the company."
3706 },
3707 "description": {
3708 "type": "string",
3709 "description": "The description of the company."
3710 },
3711 "default_repository_permission": {
3712 "type": "string",
3713 "enum": [
3714 "read",
3715 "write",
3716 "admin",
3717 "none"
3718 ],
3719 "default": "read",
3720 "description": "Default permission level members have for organization repositories."
3721 },
3722 "members_can_create_repositories": {
3723 "type": "boolean",
3724 "default": true,
3725 "description": "Toggles ability of non-admin organization members to create repositories."
3726 }
3727 },
3728 "description": "Edit an organization"
3729 },
3730 "getAll": {
3731 "url": "/organizations",
3732 "method": "GET",
3733 "params": {
3734 "since": {
3735 "type": "string",
3736 "description": "The integer ID of the last Organization that you've seen."
3737 },
3738 "page": {
3739 "type": "number",
3740 "description": "Page number of the results to fetch."
3741 },
3742 "per_page": {
3743 "type": "number",
3744 "default": "30",
3745 "description": "A custom page size up to 100. Default is 30."
3746 }
3747 },
3748 "description": "List all organizations"
3749 },
3750 "getForUser": {
3751 "url": "/users/:username/orgs",
3752 "method": "GET",
3753 "params": {
3754 "username": {
3755 "type": "string",
3756 "required": true
3757 },
3758 "page": {
3759 "type": "number",
3760 "description": "Page number of the results to fetch."
3761 },
3762 "per_page": {
3763 "type": "number",
3764 "default": "30",
3765 "description": "A custom page size up to 100. Default is 30."
3766 }
3767 },
3768 "description": "List public organization memberships for the specified user."
3769 },
3770 "getMembers": {
3771 "url": "/orgs/:org/members",
3772 "method": "GET",
3773 "params": {
3774 "org": {
3775 "type": "string",
3776 "required": true
3777 },
3778 "filter": {
3779 "type": "string",
3780 "enum": [
3781 "all",
3782 "2fa_disabled"
3783 ],
3784 "default": "all",
3785 "description": "Filter members returned in the list."
3786 },
3787 "role": {
3788 "type": "string",
3789 "enum": [
3790 "all",
3791 "admin",
3792 "member"
3793 ],
3794 "default": "all",
3795 "description": "Filter members returned by their role."
3796 },
3797 "page": {
3798 "type": "number",
3799 "description": "Page number of the results to fetch."
3800 },
3801 "per_page": {
3802 "type": "number",
3803 "default": "30",
3804 "description": "A custom page size up to 100. Default is 30."
3805 }
3806 },
3807 "description": "Members list"
3808 },
3809 "checkMembership": {
3810 "url": "/orgs/:org/members/:username",
3811 "method": "GET",
3812 "params": {
3813 "org": {
3814 "type": "string",
3815 "required": true
3816 },
3817 "username": {
3818 "type": "string",
3819 "required": true
3820 }
3821 },
3822 "description": "Check membership"
3823 },
3824 "removeMember": {
3825 "url": "/orgs/:org/members/:username",
3826 "method": "DELETE",
3827 "params": {
3828 "org": {
3829 "type": "string",
3830 "required": true
3831 },
3832 "username": {
3833 "type": "string",
3834 "required": true
3835 }
3836 },
3837 "description": "Remove a member"
3838 },
3839 "getPublicMembers": {
3840 "url": "/orgs/:org/public_members",
3841 "method": "GET",
3842 "params": {
3843 "org": {
3844 "type": "string",
3845 "required": true
3846 }
3847 },
3848 "description": "Public members list"
3849 },
3850 "checkPublicMembership": {
3851 "url": "/orgs/:org/public_members/:username",
3852 "method": "GET",
3853 "params": {
3854 "org": {
3855 "type": "string",
3856 "required": true
3857 },
3858 "username": {
3859 "type": "string",
3860 "required": true
3861 }
3862 },
3863 "description": "Check public membership"
3864 },
3865 "publicizeMembership": {
3866 "url": "/orgs/:org/public_members/:username",
3867 "method": "PUT",
3868 "params": {
3869 "org": {
3870 "type": "string",
3871 "required": true
3872 },
3873 "username": {
3874 "type": "string",
3875 "required": true
3876 }
3877 },
3878 "description": "Publicize a user's membership"
3879 },
3880 "concealMembership": {
3881 "url": "/orgs/:org/public_members/:username",
3882 "method": "DELETE",
3883 "params": {
3884 "org": {
3885 "type": "string",
3886 "required": true
3887 },
3888 "username": {
3889 "type": "string",
3890 "required": true
3891 }
3892 },
3893 "description": "Conceal a user's membership"
3894 },
3895 "getOrgMembership": {
3896 "url": "/orgs/:org/memberships/:username",
3897 "method": "GET",
3898 "params": {
3899 "org": {
3900 "type": "string",
3901 "required": true
3902 },
3903 "username": {
3904 "type": "string",
3905 "required": true
3906 }
3907 },
3908 "description": "Get organization membership"
3909 },
3910 "addOrgMembership": {
3911 "url": "/orgs/:org/memberships/:username",
3912 "method": "PUT",
3913 "params": {
3914 "org": {
3915 "type": "string",
3916 "required": true
3917 },
3918 "username": {
3919 "type": "string",
3920 "required": true
3921 },
3922 "role": {
3923 "type": "string",
3924 "required": true,
3925 "enum": [
3926 "admin",
3927 "member"
3928 ],
3929 "default": "member",
3930 "description": "The role to give the user in the organization."
3931 }
3932 },
3933 "description": "Add or update organization membership"
3934 },
3935 "removeOrgMembership": {
3936 "url": "/orgs/:org/memberships/:username",
3937 "method": "DELETE",
3938 "params": {
3939 "org": {
3940 "type": "string",
3941 "required": true
3942 },
3943 "username": {
3944 "type": "string",
3945 "required": true
3946 }
3947 },
3948 "description": "Remove organization membership"
3949 },
3950 "getPendingOrgInvites": {
3951 "url": "/orgs/:org/invitations",
3952 "method": "GET",
3953 "params": {
3954 "org": {
3955 "type": "string",
3956 "required": true
3957 }
3958 },
3959 "description": "List pending organization invites."
3960 },
3961 "getOutsideCollaborators": {
3962 "url": "/orgs/:org/outside_collaborators",
3963 "method": "GET",
3964 "params": {
3965 "org": {
3966 "type": "string",
3967 "required": true
3968 },
3969 "filter": {
3970 "type": "string",
3971 "enum": [
3972 "all",
3973 "2fa_disabled"
3974 ],
3975 "default": "all",
3976 "description": "Filter the list of outside collaborators."
3977 },
3978 "page": {
3979 "type": "number",
3980 "description": "Page number of the results to fetch."
3981 },
3982 "per_page": {
3983 "type": "number",
3984 "default": "30",
3985 "description": "A custom page size up to 100. Default is 30."
3986 }
3987 },
3988 "description": "List all users who are outside collaborators of an organization."
3989 },
3990 "removeOutsideCollaborator": {
3991 "url": "/orgs/:org/outside_collaborators/:username",
3992 "method": "DELETE",
3993 "params": {
3994 "org": {
3995 "type": "string",
3996 "required": true
3997 },
3998 "username": {
3999 "type": "string",
4000 "required": true
4001 }
4002 },
4003 "description": "Remove outside collaborator."
4004 },
4005 "convertMemberToOutsideCollaborator": {
4006 "url": "/orgs/:org/outside_collaborators/:username",
4007 "method": "PUT",
4008 "params": {
4009 "org": {
4010 "type": "string",
4011 "required": true
4012 },
4013 "username": {
4014 "type": "string",
4015 "required": true
4016 }
4017 },
4018 "description": "Convert member to outside collaborator."
4019 },
4020 "getTeams": {
4021 "url": "/orgs/:org/teams",
4022 "method": "GET",
4023 "headers": {
4024 "accept": "application/vnd.github.hellcat-preview+json"
4025 },
4026 "params": {
4027 "org": {
4028 "type": "string",
4029 "required": true
4030 },
4031 "page": {
4032 "type": "number",
4033 "description": "Page number of the results to fetch."
4034 },
4035 "per_page": {
4036 "type": "number",
4037 "default": "30",
4038 "description": "A custom page size up to 100. Default is 30."
4039 }
4040 },
4041 "description": "List teams"
4042 },
4043 "getTeam": {
4044 "url": "/teams/:id",
4045 "method": "GET",
4046 "headers": {
4047 "accept": "application/vnd.github.hellcat-preview+json"
4048 },
4049 "params": {
4050 "id": {
4051 "type": "string",
4052 "required": true
4053 }
4054 },
4055 "description": "Get team"
4056 },
4057 "createTeam": {
4058 "url": "/orgs/:org/teams",
4059 "method": "POST",
4060 "headers": {
4061 "accept": "application/vnd.github.hellcat-preview+json"
4062 },
4063 "params": {
4064 "org": {
4065 "type": "string",
4066 "required": true
4067 },
4068 "name": {
4069 "type": "string",
4070 "required": true
4071 },
4072 "description": {
4073 "type": "string",
4074 "description": "The description of the team."
4075 },
4076 "maintainers": {
4077 "type": "string[]",
4078 "description": "The logins of organization members to add as maintainers of the team."
4079 },
4080 "repo_names": {
4081 "type": "string[]",
4082 "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to."
4083 },
4084 "privacy": {
4085 "type": "string",
4086 "enum": [
4087 "secret",
4088 "closed"
4089 ],
4090 "default": "secret",
4091 "description": "The level of privacy this team should have."
4092 },
4093 "parent_team_id": {
4094 "type": "string",
4095 "description": "The ID of a team to set as the parent team."
4096 }
4097 },
4098 "description": "Create team"
4099 },
4100 "editTeam": {
4101 "url": "/teams/:id",
4102 "method": "PATCH",
4103 "headers": {
4104 "accept": "application/vnd.github.hellcat-preview+json"
4105 },
4106 "params": {
4107 "id": {
4108 "type": "string",
4109 "required": true
4110 },
4111 "name": {
4112 "type": "string",
4113 "required": true
4114 },
4115 "description": {
4116 "type": "string",
4117 "description": "The description of the team."
4118 },
4119 "privacy": {
4120 "type": "string",
4121 "enum": [
4122 "secret",
4123 "closed"
4124 ],
4125 "default": "secret",
4126 "description": "The level of privacy this team should have."
4127 },
4128 "parent_team_id": {
4129 "type": "string",
4130 "description": "The ID of a team to set as the parent team."
4131 }
4132 },
4133 "description": "Edit team"
4134 },
4135 "deleteTeam": {
4136 "url": "/teams/:id",
4137 "method": "DELETE",
4138 "headers": {
4139 "accept": "application/vnd.github.hellcat-preview+json"
4140 },
4141 "params": {
4142 "id": {
4143 "type": "string",
4144 "required": true
4145 }
4146 },
4147 "description": "Delete team"
4148 },
4149 "getTeamMembers": {
4150 "url": "/teams/:id/members",
4151 "method": "GET",
4152 "headers": {
4153 "accept": "application/vnd.github.hellcat-preview+json"
4154 },
4155 "params": {
4156 "id": {
4157 "type": "string",
4158 "required": true
4159 },
4160 "role": {
4161 "type": "string",
4162 "enum": [
4163 "member",
4164 "maintainer",
4165 "all"
4166 ],
4167 "default": "all",
4168 "description": "Filters members returned by their role in the team."
4169 },
4170 "page": {
4171 "type": "number",
4172 "description": "Page number of the results to fetch."
4173 },
4174 "per_page": {
4175 "type": "number",
4176 "default": "30",
4177 "description": "A custom page size up to 100. Default is 30."
4178 }
4179 },
4180 "description": "List team members"
4181 },
4182 "getChildTeams": {
4183 "url": "/teams/:id/teams",
4184 "method": "GET",
4185 "headers": {
4186 "accept": "application/vnd.github.hellcat-preview+json"
4187 },
4188 "params": {
4189 "id": {
4190 "type": "string",
4191 "required": true
4192 },
4193 "page": {
4194 "type": "number",
4195 "description": "Page number of the results to fetch."
4196 },
4197 "per_page": {
4198 "type": "number",
4199 "default": "30",
4200 "description": "A custom page size up to 100. Default is 30."
4201 }
4202 },
4203 "description": "List child teams"
4204 },
4205 "getTeamMembership": {
4206 "url": "/teams/:id/memberships/:username",
4207 "method": "GET",
4208 "headers": {
4209 "accept": "application/vnd.github.hellcat-preview+json"
4210 },
4211 "params": {
4212 "id": {
4213 "type": "string",
4214 "required": true
4215 },
4216 "username": {
4217 "type": "string",
4218 "required": true
4219 }
4220 },
4221 "description": "Get team membership"
4222 },
4223 "addTeamMembership": {
4224 "url": "/teams/:id/memberships/:username",
4225 "method": "PUT",
4226 "headers": {
4227 "accept": "application/vnd.github.hellcat-preview+json"
4228 },
4229 "params": {
4230 "id": {
4231 "type": "string",
4232 "required": true
4233 },
4234 "username": {
4235 "type": "string",
4236 "required": true
4237 },
4238 "role": {
4239 "type": "string",
4240 "enum": [
4241 "member",
4242 "maintainer"
4243 ],
4244 "default": "member",
4245 "description": "The role that this user should have in the team."
4246 }
4247 },
4248 "description": "Add team membership"
4249 },
4250 "removeTeamMembership": {
4251 "url": "/teams/:id/memberships/:username",
4252 "method": "DELETE",
4253 "headers": {
4254 "accept": "application/vnd.github.hellcat-preview+json"
4255 },
4256 "params": {
4257 "id": {
4258 "type": "string",
4259 "required": true
4260 },
4261 "username": {
4262 "type": "string",
4263 "required": true
4264 }
4265 },
4266 "description": "Remove team membership"
4267 },
4268 "getTeamRepos": {
4269 "url": "/teams/:id/repos",
4270 "method": "GET",
4271 "headers": {
4272 "accept": "application/vnd.github.hellcat-preview+json"
4273 },
4274 "params": {
4275 "id": {
4276 "type": "string",
4277 "required": true
4278 },
4279 "page": {
4280 "type": "number",
4281 "description": "Page number of the results to fetch."
4282 },
4283 "per_page": {
4284 "type": "number",
4285 "default": "30",
4286 "description": "A custom page size up to 100. Default is 30."
4287 }
4288 },
4289 "description": "Get team repos"
4290 },
4291 "getPendingTeamInvites": {
4292 "url": "/teams/:id/invitations",
4293 "method": "GET",
4294 "params": {
4295 "id": {
4296 "type": "string",
4297 "required": true
4298 },
4299 "page": {
4300 "type": "number",
4301 "description": "Page number of the results to fetch."
4302 },
4303 "per_page": {
4304 "type": "number",
4305 "default": "30",
4306 "description": "A custom page size up to 100. Default is 30."
4307 }
4308 },
4309 "description": "List pending team invitations."
4310 },
4311 "checkTeamRepo": {
4312 "url": "/teams/:id/repos/:owner/:repo",
4313 "method": "GET",
4314 "headers": {
4315 "accept": "application/vnd.github.hellcat-preview+json"
4316 },
4317 "params": {
4318 "id": {
4319 "type": "string",
4320 "required": true
4321 },
4322 "owner": {
4323 "type": "string",
4324 "required": true
4325 },
4326 "repo": {
4327 "type": "string",
4328 "required": true
4329 }
4330 },
4331 "description": "Check if a team manages a repository"
4332 },
4333 "addTeamRepo": {
4334 "url": "/teams/:id/repos/:org/:repo",
4335 "method": "PUT",
4336 "headers": {
4337 "accept": "application/vnd.github.hellcat-preview+json"
4338 },
4339 "params": {
4340 "id": {
4341 "type": "string",
4342 "required": true
4343 },
4344 "org": {
4345 "type": "string",
4346 "required": true
4347 },
4348 "repo": {
4349 "type": "string",
4350 "required": true
4351 },
4352 "permission": {
4353 "type": "string",
4354 "enum": [
4355 "pull",
4356 "push",
4357 "admin"
4358 ],
4359 "description": "`pull` - team members can pull, but not push or administer this repository, `push` - team members can pull and push, but not administer this repository, `admin` - team members can pull, push and administer this repository."
4360 }
4361 },
4362 "description": "Add team repository"
4363 },
4364 "deleteTeamRepo": {
4365 "url": "/teams/:id/repos/:owner/:repo",
4366 "method": "DELETE",
4367 "headers": {
4368 "accept": "application/vnd.github.hellcat-preview+json"
4369 },
4370 "params": {
4371 "id": {
4372 "type": "string",
4373 "required": true
4374 },
4375 "owner": {
4376 "type": "string",
4377 "required": true
4378 },
4379 "repo": {
4380 "type": "string",
4381 "required": true
4382 }
4383 },
4384 "description": "Remove team repository"
4385 },
4386 "getHooks": {
4387 "url": "/orgs/:org/hooks",
4388 "method": "GET",
4389 "params": {
4390 "org": {
4391 "type": "string",
4392 "required": true
4393 },
4394 "page": {
4395 "type": "number",
4396 "description": "Page number of the results to fetch."
4397 },
4398 "per_page": {
4399 "type": "number",
4400 "default": "30",
4401 "description": "A custom page size up to 100. Default is 30."
4402 }
4403 },
4404 "description": "List hooks"
4405 },
4406 "getHook": {
4407 "url": "/orgs/:org/hooks/:id",
4408 "method": "GET",
4409 "params": {
4410 "org": {
4411 "type": "string",
4412 "required": true
4413 },
4414 "id": {
4415 "type": "string",
4416 "required": true
4417 }
4418 },
4419 "description": "Get single hook"
4420 },
4421 "createHook": {
4422 "url": "/orgs/:org/hooks",
4423 "method": "POST",
4424 "params": {
4425 "org": {
4426 "type": "string",
4427 "required": true
4428 },
4429 "name": {
4430 "type": "string",
4431 "required": true,
4432 "description": "Must be passed as \"web\"."
4433 },
4434 "config": {
4435 "type": "json",
4436 "required": true,
4437 "description": "Key/value pairs to provide settings for this webhook"
4438 },
4439 "events": {
4440 "type": "string[]",
4441 "default": "[\"push\"]",
4442 "description": "Determines what events the hook is triggered for. Default: [\"push\"]."
4443 },
4444 "active": {
4445 "type": "boolean",
4446 "description": "Determines whether the hook is actually triggered on pushes."
4447 }
4448 },
4449 "description": "Create a hook"
4450 },
4451 "editHook": {
4452 "url": "/orgs/:org/hooks/:id",
4453 "method": "PATCH",
4454 "params": {
4455 "org": {
4456 "type": "string",
4457 "required": true
4458 },
4459 "id": {
4460 "type": "string",
4461 "required": true
4462 },
4463 "config": {
4464 "type": "json",
4465 "required": true,
4466 "description": "Key/value pairs to provide settings for this webhook"
4467 },
4468 "events": {
4469 "type": "string[]",
4470 "default": "[\"push\"]",
4471 "description": "Determines what events the hook is triggered for. Default: [\"push\"]."
4472 },
4473 "active": {
4474 "type": "boolean",
4475 "description": "Determines whether the hook is actually triggered on pushes."
4476 }
4477 },
4478 "description": "Edit a hook"
4479 },
4480 "pingHook": {
4481 "url": "/orgs/:org/hooks/:id/pings",
4482 "method": "POST",
4483 "params": {
4484 "org": {
4485 "type": "string",
4486 "required": true
4487 },
4488 "id": {
4489 "type": "string",
4490 "required": true
4491 }
4492 },
4493 "description": "Ping a hook"
4494 },
4495 "deleteHook": {
4496 "url": "/orgs/:org/hooks/:id",
4497 "method": "DELETE",
4498 "params": {
4499 "org": {
4500 "type": "string",
4501 "required": true
4502 },
4503 "id": {
4504 "type": "string",
4505 "required": true
4506 }
4507 },
4508 "description": "Delete a hook"
4509 },
4510 "getBlockedUsers": {
4511 "url": "/orgs/:org/blocks",
4512 "method": "GET",
4513 "headers": {
4514 "accept": "application/vnd.github.giant-sentry-fist-preview+json"
4515 },
4516 "params": {
4517 "org": {
4518 "type": "string",
4519 "required": true
4520 },
4521 "page": {
4522 "type": "number",
4523 "description": "Page number of the results to fetch."
4524 },
4525 "per_page": {
4526 "type": "number",
4527 "default": "30",
4528 "description": "A custom page size up to 100. Default is 30."
4529 }
4530 },
4531 "description": "List blocked users. (In preview period. See README.)"
4532 },
4533 "checkBlockedUser": {
4534 "url": "/orgs/:org/blocks/:username",
4535 "method": "GET",
4536 "headers": {
4537 "accept": "application/vnd.github.giant-sentry-fist-preview+json"
4538 },
4539 "params": {
4540 "org": {
4541 "type": "string",
4542 "required": true
4543 },
4544 "username": {
4545 "type": "string",
4546 "required": true
4547 }
4548 },
4549 "description": "Check whether you've blocked a user. (In preview period. See README.)"
4550 },
4551 "blockUser": {
4552 "url": "/orgs/:org/blocks/:username",
4553 "method": "PUT",
4554 "headers": {
4555 "accept": "application/vnd.github.giant-sentry-fist-preview+json"
4556 },
4557 "params": {
4558 "org": {
4559 "type": "string",
4560 "required": true
4561 },
4562 "username": {
4563 "type": "string",
4564 "required": true
4565 }
4566 },
4567 "description": "Block a user. (In preview period. See README.)"
4568 },
4569 "unblockUser": {
4570 "url": "/orgs/:org/blocks/:username",
4571 "method": "DELETE",
4572 "headers": {
4573 "accept": "application/vnd.github.giant-sentry-fist-preview+json"
4574 },
4575 "params": {
4576 "org": {
4577 "type": "string",
4578 "required": true
4579 },
4580 "username": {
4581 "type": "string",
4582 "required": true
4583 }
4584 },
4585 "description": "Unblock a user. (In preview period. See README.)"
4586 }
4587 },
4588 "projects": {
4589 "getRepoProjects": {
4590 "url": "/repos/:owner/:repo/projects",
4591 "method": "GET",
4592 "headers": {
4593 "accept": "application/vnd.github.inertia-preview+json"
4594 },
4595 "params": {
4596 "owner": {
4597 "type": "string",
4598 "required": true
4599 },
4600 "repo": {
4601 "type": "string",
4602 "required": true
4603 },
4604 "state": {
4605 "type": "string",
4606 "enum": [
4607 "open",
4608 "closed",
4609 "all"
4610 ],
4611 "default": "open"
4612 }
4613 },
4614 "description": "List repository projects. (In preview period. See README.)"
4615 },
4616 "getOrgProjects": {
4617 "url": "/orgs/:org/projects",
4618 "method": "GET",
4619 "headers": {
4620 "accept": "application/vnd.github.inertia-preview+json"
4621 },
4622 "params": {
4623 "org": {
4624 "type": "string",
4625 "required": true
4626 },
4627 "state": {
4628 "type": "string",
4629 "enum": [
4630 "open",
4631 "closed",
4632 "all"
4633 ],
4634 "default": "open"
4635 }
4636 },
4637 "description": "List organization projects. (In preview period. See README.)"
4638 },
4639 "getProject": {
4640 "url": "/projects/:id",
4641 "method": "GET",
4642 "headers": {
4643 "accept": "application/vnd.github.inertia-preview+json"
4644 },
4645 "params": {
4646 "id": {
4647 "type": "string",
4648 "required": true
4649 }
4650 },
4651 "description": "Get a project. (In preview period. See README.)"
4652 },
4653 "createRepoProject": {
4654 "url": "/repos/:owner/:repo/projects",
4655 "method": "POST",
4656 "headers": {
4657 "accept": "application/vnd.github.inertia-preview+json"
4658 },
4659 "params": {
4660 "owner": {
4661 "type": "string",
4662 "required": true
4663 },
4664 "repo": {
4665 "type": "string",
4666 "required": true
4667 },
4668 "name": {
4669 "type": "string",
4670 "required": true
4671 },
4672 "body": {
4673 "type": "string"
4674 }
4675 },
4676 "description": "Create a repository project. (In preview period. See README.)"
4677 },
4678 "createOrgProject": {
4679 "url": "/orgs/:org/projects",
4680 "method": "POST",
4681 "headers": {
4682 "accept": "application/vnd.github.inertia-preview+json"
4683 },
4684 "params": {
4685 "org": {
4686 "type": "string",
4687 "required": true
4688 },
4689 "name": {
4690 "type": "string",
4691 "required": true
4692 },
4693 "body": {
4694 "type": "string"
4695 }
4696 },
4697 "description": "Create an organization project. (In preview period. See README.)"
4698 },
4699 "updateProject": {
4700 "url": "/projects/:id",
4701 "method": "PATCH",
4702 "headers": {
4703 "accept": "application/vnd.github.inertia-preview+json"
4704 },
4705 "params": {
4706 "id": {
4707 "type": "string",
4708 "required": true
4709 },
4710 "name": {
4711 "type": "string",
4712 "required": true
4713 },
4714 "body": {
4715 "type": "string"
4716 },
4717 "state": {
4718 "type": "string",
4719 "enum": [
4720 "open",
4721 "closed",
4722 "all"
4723 ],
4724 "default": "open"
4725 }
4726 },
4727 "description": "Update a project. (In preview period. See README.)"
4728 },
4729 "deleteProject": {
4730 "url": "/projects/:id",
4731 "method": "DELETE",
4732 "headers": {
4733 "accept": "application/vnd.github.inertia-preview+json"
4734 },
4735 "params": {
4736 "id": {
4737 "type": "string",
4738 "required": true
4739 }
4740 },
4741 "description": "Delete a project. (In preview period. See README.)"
4742 },
4743 "getProjectCards": {
4744 "url": "/projects/columns/:column_id/cards",
4745 "method": "GET",
4746 "headers": {
4747 "accept": "application/vnd.github.inertia-preview+json"
4748 },
4749 "params": {
4750 "column_id": {
4751 "type": "string",
4752 "required": true
4753 }
4754 },
4755 "description": "List project cards. (In preview period. See README.)"
4756 },
4757 "getProjectCard": {
4758 "url": "/projects/columns/cards/:id",
4759 "method": "GET",
4760 "headers": {
4761 "accept": "application/vnd.github.inertia-preview+json"
4762 },
4763 "params": {
4764 "id": {
4765 "type": "string",
4766 "required": true
4767 }
4768 },
4769 "description": "Get project card. (In preview period. See README.)"
4770 },
4771 "createProjectCard": {
4772 "url": "/projects/columns/:column_id/cards",
4773 "method": "POST",
4774 "headers": {
4775 "accept": "application/vnd.github.inertia-preview+json"
4776 },
4777 "params": {
4778 "column_id": {
4779 "type": "string",
4780 "required": true
4781 },
4782 "note": {
4783 "type": "string",
4784 "description": "The note of the card."
4785 },
4786 "content_id": {
4787 "type": "string",
4788 "description": "The id of the Issue or Pull Request to associate with this card."
4789 },
4790 "content_type": {
4791 "type": "string",
4792 "description": "The type of content to associate with this card. Can be either 'Issue' or 'PullRequest'."
4793 }
4794 },
4795 "description": "Create a project card. (In preview period. See README.)"
4796 },
4797 "updateProjectCard": {
4798 "url": "/projects/columns/cards/:id",
4799 "method": "PATCH",
4800 "headers": {
4801 "accept": "application/vnd.github.inertia-preview+json"
4802 },
4803 "params": {
4804 "id": {
4805 "type": "string",
4806 "required": true
4807 },
4808 "note": {
4809 "type": "string",
4810 "description": "The note of the card."
4811 }
4812 },
4813 "description": "Update a project card. (In preview period. See README.)"
4814 },
4815 "deleteProjectCard": {
4816 "url": "/projects/columns/cards/:id",
4817 "method": "DELETE",
4818 "headers": {
4819 "accept": "application/vnd.github.inertia-preview+json"
4820 },
4821 "params": {
4822 "id": {
4823 "type": "string",
4824 "required": true
4825 }
4826 },
4827 "description": "Delete a project card. (In preview period. See README.)"
4828 },
4829 "moveProjectCard": {
4830 "url": "/projects/columns/cards/:id/moves",
4831 "method": "POST",
4832 "headers": {
4833 "accept": "application/vnd.github.inertia-preview+json"
4834 },
4835 "params": {
4836 "id": {
4837 "type": "string",
4838 "required": true
4839 },
4840 "position": {
4841 "type": "string",
4842 "required": true,
4843 "validation": "^(top|bottom|after:\\d+)$",
4844 "description": "Can be one of top, bottom, or after:<card-id>, where <card-id> is the id value of a card in the same project."
4845 },
4846 "column_id": {
4847 "type": "string",
4848 "description": "The id value of a column in the same project."
4849 }
4850 },
4851 "description": "Move a project card. (In preview period. See README.)"
4852 },
4853 "getProjectColumns": {
4854 "url": "/projects/:project_id/columns",
4855 "method": "GET",
4856 "headers": {
4857 "accept": "application/vnd.github.inertia-preview+json"
4858 },
4859 "params": {
4860 "project_id": {
4861 "type": "string",
4862 "required": true
4863 }
4864 },
4865 "description": "List project columns. (In preview period. See README.)"
4866 },
4867 "getProjectColumn": {
4868 "url": "/projects/columns/:id",
4869 "method": "GET",
4870 "headers": {
4871 "accept": "application/vnd.github.inertia-preview+json"
4872 },
4873 "params": {
4874 "id": {
4875 "type": "string",
4876 "required": true
4877 }
4878 },
4879 "description": "Get a project column. (In preview period. See README.)"
4880 },
4881 "createProjectColumn": {
4882 "url": "/projects/:project_id/columns",
4883 "method": "POST",
4884 "headers": {
4885 "accept": "application/vnd.github.inertia-preview+json"
4886 },
4887 "params": {
4888 "project_id": {
4889 "type": "string",
4890 "required": true
4891 },
4892 "name": {
4893 "type": "string",
4894 "required": true
4895 }
4896 },
4897 "description": "Create a project column. (In preview period. See README.)"
4898 },
4899 "updateProjectColumn": {
4900 "url": "/projects/columns/:id",
4901 "method": "PATCH",
4902 "headers": {
4903 "accept": "application/vnd.github.inertia-preview+json"
4904 },
4905 "params": {
4906 "id": {
4907 "type": "string",
4908 "required": true
4909 },
4910 "name": {
4911 "type": "string",
4912 "required": true
4913 }
4914 },
4915 "description": "Update a project column. (In preview period. See README.)"
4916 },
4917 "deleteProjectColumn": {
4918 "url": "/projects/columns/:id",
4919 "method": "DELETE",
4920 "headers": {
4921 "accept": "application/vnd.github.inertia-preview+json"
4922 },
4923 "params": {
4924 "id": {
4925 "type": "string",
4926 "required": true
4927 }
4928 },
4929 "description": "Delete a project column. (In preview period. See README.)"
4930 },
4931 "moveProjectColumn": {
4932 "url": "/projects/columns/:id/moves",
4933 "method": "POST",
4934 "headers": {
4935 "accept": "application/vnd.github.inertia-preview+json"
4936 },
4937 "params": {
4938 "id": {
4939 "type": "string",
4940 "required": true
4941 },
4942 "position": {
4943 "type": "string",
4944 "required": true,
4945 "validation": "^(first|last|after:\\d+)$",
4946 "description": "Can be one of first, last, or after:<column-id>, where <column-id> is the id value of a column in the same project."
4947 }
4948 },
4949 "description": "Move a project column. (In preview period. See README.)"
4950 }
4951 },
4952 "pullRequests": {
4953 "get": {
4954 "url": "/repos/:owner/:repo/pulls/:number",
4955 "method": "GET",
4956 "params": {
4957 "owner": {
4958 "type": "string",
4959 "required": true
4960 },
4961 "repo": {
4962 "type": "string",
4963 "required": true
4964 },
4965 "number": {
4966 "type": "number",
4967 "required": true
4968 }
4969 },
4970 "description": "Get a single pull request"
4971 },
4972 "create": {
4973 "url": "/repos/:owner/:repo/pulls",
4974 "method": "POST",
4975 "params": {
4976 "owner": {
4977 "type": "string",
4978 "required": true
4979 },
4980 "repo": {
4981 "type": "string",
4982 "required": true
4983 },
4984 "head": {
4985 "type": "string",
4986 "required": true,
4987 "description": "The branch (or git ref) where your changes are implemented."
4988 },
4989 "base": {
4990 "type": "string",
4991 "required": true,
4992 "description": "The branch (or git ref) you want your changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repo that requests a merge to a base of another repo."
4993 }
4994 },
4995 "description": "Create a pull request"
4996 },
4997 "update": {
4998 "url": "/repos/:owner/:repo/pulls/:number",
4999 "method": "PATCH",
5000 "params": {
5001 "owner": {
5002 "type": "string",
5003 "required": true
5004 },
5005 "repo": {
5006 "type": "string",
5007 "required": true
5008 },
5009 "number": {
5010 "type": "number",
5011 "required": true
5012 },
5013 "title": {
5014 "type": "string",
5015 "description": "The title of the pull request."
5016 },
5017 "body": {
5018 "type": "string",
5019 "description": "The contents of the pull request."
5020 },
5021 "state": {
5022 "type": "string",
5023 "enum": [
5024 "open",
5025 "closed"
5026 ],
5027 "description": "open or closed"
5028 },
5029 "base": {
5030 "type": "string",
5031 "description": "The branch (or git ref) you want your changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repo that requests a merge to a base of another repo."
5032 },
5033 "maintainer_can_modify": {
5034 "type": "boolean",
5035 "default": "true",
5036 "description": "Indicates whether maintainers can modify the pull request."
5037 }
5038 },
5039 "description": "Update a pull request"
5040 },
5041 "merge": {
5042 "url": "/repos/:owner/:repo/pulls/:number/merge",
5043 "method": "PUT",
5044 "headers": {
5045 "accept": "application/vnd.github.polaris-preview"
5046 },
5047 "params": {
5048 "owner": {
5049 "type": "string",
5050 "required": true
5051 },
5052 "repo": {
5053 "type": "string",
5054 "required": true
5055 },
5056 "number": {
5057 "type": "number",
5058 "required": true
5059 },
5060 "commit_title": {
5061 "type": "string",
5062 "description": "Title for the automatic commit message. (In preview period. See README.)"
5063 },
5064 "commit_message": {
5065 "type": "string",
5066 "description": "Extra detail to append to automatic commit message."
5067 },
5068 "sha": {
5069 "type": "string",
5070 "description": "SHA that pull request head must match to allow merge"
5071 },
5072 "merge_method": {
5073 "type": "string",
5074 "enum": [
5075 "merge",
5076 "squash",
5077 "rebase"
5078 ],
5079 "default": "merge",
5080 "description": "Merge method to use. Possible values are `merge`, `squash`, or `rebase`. (In preview period. See README.)"
5081 }
5082 },
5083 "description": "Merge a pull request (Merge Button)"
5084 },
5085 "getAll": {
5086 "url": "/repos/:owner/:repo/pulls",
5087 "method": "GET",
5088 "params": {
5089 "owner": {
5090 "type": "string",
5091 "required": true
5092 },
5093 "repo": {
5094 "type": "string",
5095 "required": true
5096 },
5097 "state": {
5098 "type": "string",
5099 "enum": [
5100 "open",
5101 "closed",
5102 "all"
5103 ],
5104 "default": "open"
5105 },
5106 "head": {
5107 "type": "string",
5108 "description": "Filter pulls by head user and branch name in the format of user:ref-name. Example: github:new-script-format."
5109 },
5110 "base": {
5111 "type": "string",
5112 "description": "Filter pulls by base branch name. Example: gh-pages."
5113 },
5114 "sort": {
5115 "type": "string",
5116 "enum": [
5117 "created",
5118 "updated",
5119 "popularity",
5120 "long-running"
5121 ],
5122 "default": "created",
5123 "description": "Possible values are: `created`, `updated`, `popularity`, `long-running`, Default: `created`"
5124 },
5125 "direction": {
5126 "type": "string",
5127 "enum": [
5128 "asc",
5129 "desc"
5130 ],
5131 "default": "desc"
5132 },
5133 "page": {
5134 "type": "number",
5135 "description": "Page number of the results to fetch."
5136 },
5137 "per_page": {
5138 "type": "number",
5139 "default": "30",
5140 "description": "A custom page size up to 100. Default is 30."
5141 }
5142 },
5143 "description": "List pull requests"
5144 },
5145 "createFromIssue": {
5146 "url": "/repos/:owner/:repo/pulls",
5147 "method": "POST",
5148 "params": {
5149 "owner": {
5150 "type": "string",
5151 "required": true
5152 },
5153 "repo": {
5154 "type": "string",
5155 "required": true
5156 },
5157 "issue": {
5158 "type": "number",
5159 "required": true,
5160 "description": "The issue number in this repository to turn into a Pull Request."
5161 },
5162 "head": {
5163 "type": "string",
5164 "required": true,
5165 "description": "The branch (or git ref) where your changes are implemented."
5166 },
5167 "base": {
5168 "type": "string",
5169 "required": true,
5170 "description": "The branch (or git ref) you want your changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repo that requests a merge to a base of another repo."
5171 }
5172 },
5173 "description": "Create a pull request from an existing issue"
5174 },
5175 "getCommits": {
5176 "url": "/repos/:owner/:repo/pulls/:number/commits",
5177 "method": "GET",
5178 "params": {
5179 "owner": {
5180 "type": "string",
5181 "required": true
5182 },
5183 "repo": {
5184 "type": "string",
5185 "required": true
5186 },
5187 "number": {
5188 "type": "number",
5189 "required": true
5190 },
5191 "page": {
5192 "type": "number",
5193 "description": "Page number of the results to fetch."
5194 },
5195 "per_page": {
5196 "type": "number",
5197 "default": "30",
5198 "description": "A custom page size up to 100. Default is 30."
5199 }
5200 },
5201 "description": "List commits on a pull request"
5202 },
5203 "getFiles": {
5204 "url": "/repos/:owner/:repo/pulls/:number/files",
5205 "method": "GET",
5206 "params": {
5207 "owner": {
5208 "type": "string",
5209 "required": true
5210 },
5211 "repo": {
5212 "type": "string",
5213 "required": true
5214 },
5215 "number": {
5216 "type": "number",
5217 "required": true
5218 },
5219 "page": {
5220 "type": "number",
5221 "description": "Page number of the results to fetch."
5222 },
5223 "per_page": {
5224 "type": "number",
5225 "default": "30",
5226 "description": "A custom page size up to 100. Default is 30."
5227 }
5228 },
5229 "description": "List pull requests files"
5230 },
5231 "checkMerged": {
5232 "url": "/repos/:owner/:repo/pulls/:number/merge",
5233 "method": "GET",
5234 "headers": {
5235 "accept": "application/vnd.github.polaris-preview"
5236 },
5237 "params": {
5238 "owner": {
5239 "type": "string",
5240 "required": true
5241 },
5242 "repo": {
5243 "type": "string",
5244 "required": true
5245 },
5246 "number": {
5247 "type": "number",
5248 "required": true
5249 },
5250 "page": {
5251 "type": "number",
5252 "description": "Page number of the results to fetch."
5253 },
5254 "per_page": {
5255 "type": "number",
5256 "default": "30",
5257 "description": "A custom page size up to 100. Default is 30."
5258 }
5259 },
5260 "description": "Get if a pull request has been merged"
5261 },
5262 "getReviews": {
5263 "url": "/repos/:owner/:repo/pulls/:number/reviews",
5264 "method": "GET",
5265 "params": {
5266 "owner": {
5267 "type": "string",
5268 "required": true
5269 },
5270 "repo": {
5271 "type": "string",
5272 "required": true
5273 },
5274 "number": {
5275 "type": "number",
5276 "required": true
5277 },
5278 "page": {
5279 "type": "number",
5280 "description": "Page number of the results to fetch."
5281 },
5282 "per_page": {
5283 "type": "number",
5284 "default": "30",
5285 "description": "A custom page size up to 100. Default is 30."
5286 }
5287 },
5288 "description": "List reviews on a pull request."
5289 },
5290 "getReview": {
5291 "url": "/repos/:owner/:repo/pulls/:number/reviews/:id",
5292 "method": "GET",
5293 "params": {
5294 "owner": {
5295 "type": "string",
5296 "required": true
5297 },
5298 "repo": {
5299 "type": "string",
5300 "required": true
5301 },
5302 "number": {
5303 "type": "number",
5304 "required": true
5305 },
5306 "id": {
5307 "type": "string",
5308 "required": true
5309 }
5310 },
5311 "description": "Get a single pull request review."
5312 },
5313 "deletePendingReview": {
5314 "url": "/repos/:owner/:repo/pulls/:number/reviews/:id",
5315 "method": "DELETE",
5316 "params": {
5317 "owner": {
5318 "type": "string",
5319 "required": true
5320 },
5321 "repo": {
5322 "type": "string",
5323 "required": true
5324 },
5325 "number": {
5326 "type": "number",
5327 "required": true
5328 },
5329 "id": {
5330 "type": "string",
5331 "required": true
5332 }
5333 },
5334 "description": "Delete a pending pull request review."
5335 },
5336 "getReviewComments": {
5337 "url": "/repos/:owner/:repo/pulls/:number/reviews/:id/comments",
5338 "method": "GET",
5339 "params": {
5340 "owner": {
5341 "type": "string",
5342 "required": true
5343 },
5344 "repo": {
5345 "type": "string",
5346 "required": true
5347 },
5348 "number": {
5349 "type": "number",
5350 "required": true
5351 },
5352 "id": {
5353 "type": "string",
5354 "required": true
5355 },
5356 "page": {
5357 "type": "number",
5358 "description": "Page number of the results to fetch."
5359 },
5360 "per_page": {
5361 "type": "number",
5362 "default": "30",
5363 "description": "A custom page size up to 100. Default is 30."
5364 }
5365 },
5366 "description": "Get comments for a pull request review."
5367 },
5368 "createReview": {
5369 "url": "/repos/:owner/:repo/pulls/:number/reviews",
5370 "method": "POST",
5371 "params": {
5372 "owner": {
5373 "type": "string",
5374 "required": true
5375 },
5376 "repo": {
5377 "type": "string",
5378 "required": true
5379 },
5380 "number": {
5381 "type": "number",
5382 "required": true
5383 },
5384 "commit_id": {
5385 "type": "string",
5386 "description": "Sha of the commit to comment on."
5387 },
5388 "body": {
5389 "type": "string",
5390 "description": "The body text of the pull request review."
5391 },
5392 "event": {
5393 "type": "string",
5394 "enum": [
5395 "APPROVE",
5396 "REQUEST_CHANGES",
5397 "COMMENT",
5398 "PENDING"
5399 ],
5400 "default": "PENDING",
5401 "description": "The event to perform on the review upon submission, can be one of APPROVE, REQUEST_CHANGES, or COMMENT. If left blank, the review will be in the PENDING state."
5402 },
5403 "comments": {
5404 "type": "string[]",
5405 "description": "An array of draft review comment objects. Draft review comments must include a `path`, `position`, and `body`."
5406 }
5407 },
5408 "description": "Create a pull request review."
5409 },
5410 "submitReview": {
5411 "url": "/repos/:owner/:repo/pulls/:number/reviews/:id/events",
5412 "method": "POST",
5413 "params": {
5414 "owner": {
5415 "type": "string",
5416 "required": true
5417 },
5418 "repo": {
5419 "type": "string",
5420 "required": true
5421 },
5422 "number": {
5423 "type": "number",
5424 "required": true
5425 },
5426 "id": {
5427 "type": "string",
5428 "required": true
5429 },
5430 "body": {
5431 "type": "string",
5432 "description": "The body text of the pull request review."
5433 },
5434 "event": {
5435 "type": "string",
5436 "enum": [
5437 "APPROVE",
5438 "REQUEST_CHANGES",
5439 "COMMENT",
5440 "PENDING"
5441 ],
5442 "default": "PENDING",
5443 "description": "The event to perform on the review upon submission, can be one of APPROVE, REQUEST_CHANGES, or COMMENT. If left blank, the review will be in the PENDING state."
5444 }
5445 },
5446 "description": "Submit a pull request review."
5447 },
5448 "dismissReview": {
5449 "url": "/repos/:owner/:repo/pulls/:number/reviews/:id/dismissals",
5450 "method": "PUT",
5451 "params": {
5452 "owner": {
5453 "type": "string",
5454 "required": true
5455 },
5456 "repo": {
5457 "type": "string",
5458 "required": true
5459 },
5460 "number": {
5461 "type": "number",
5462 "required": true
5463 },
5464 "id": {
5465 "type": "string",
5466 "required": true
5467 },
5468 "message": {
5469 "type": "string",
5470 "description": "The message for the pull request review dismissal."
5471 },
5472 "page": {
5473 "type": "number",
5474 "description": "Page number of the results to fetch."
5475 },
5476 "per_page": {
5477 "type": "number",
5478 "default": "30",
5479 "description": "A custom page size up to 100. Default is 30."
5480 }
5481 },
5482 "description": "Dismiss a pull request review."
5483 },
5484 "getComments": {
5485 "url": "/repos/:owner/:repo/pulls/:number/comments",
5486 "method": "GET",
5487 "headers": {
5488 "accept": "application/vnd.github.squirrel-girl-preview"
5489 },
5490 "params": {
5491 "owner": {
5492 "type": "string",
5493 "required": true
5494 },
5495 "repo": {
5496 "type": "string",
5497 "required": true
5498 },
5499 "number": {
5500 "type": "number",
5501 "required": true
5502 },
5503 "page": {
5504 "type": "number",
5505 "description": "Page number of the results to fetch."
5506 },
5507 "per_page": {
5508 "type": "number",
5509 "default": "30",
5510 "description": "A custom page size up to 100. Default is 30."
5511 }
5512 },
5513 "description": "List comments on a pull request"
5514 },
5515 "getCommentsForRepo": {
5516 "url": "/repos/:owner/:repo/pulls/comments",
5517 "method": "GET",
5518 "headers": {
5519 "accept": "application/vnd.github.squirrel-girl-preview"
5520 },
5521 "params": {
5522 "owner": {
5523 "type": "string",
5524 "required": true
5525 },
5526 "repo": {
5527 "type": "string",
5528 "required": true
5529 },
5530 "sort": {
5531 "type": "string",
5532 "enum": [
5533 "created",
5534 "updated"
5535 ],
5536 "default": "created",
5537 "description": "Possible values are: `created`, `updated`, Default: `created`"
5538 },
5539 "direction": {
5540 "type": "string",
5541 "enum": [
5542 "asc",
5543 "desc"
5544 ],
5545 "default": "desc"
5546 },
5547 "since": {
5548 "type": "date",
5549 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
5550 },
5551 "page": {
5552 "type": "number",
5553 "description": "Page number of the results to fetch."
5554 },
5555 "per_page": {
5556 "type": "number",
5557 "default": "30",
5558 "description": "A custom page size up to 100. Default is 30."
5559 }
5560 },
5561 "description": "List comments in a repository"
5562 },
5563 "getComment": {
5564 "url": "/repos/:owner/:repo/pulls/comments/:id",
5565 "method": "GET",
5566 "headers": {
5567 "accept": "application/vnd.github.squirrel-girl-preview"
5568 },
5569 "params": {
5570 "owner": {
5571 "type": "string",
5572 "required": true
5573 },
5574 "repo": {
5575 "type": "string",
5576 "required": true
5577 },
5578 "id": {
5579 "type": "string",
5580 "required": true
5581 }
5582 },
5583 "description": "Get a single comment"
5584 },
5585 "createComment": {
5586 "url": "/repos/:owner/:repo/pulls/:number/comments",
5587 "method": "POST",
5588 "headers": {
5589 "accept": "application/vnd.github.squirrel-girl-preview"
5590 },
5591 "params": {
5592 "owner": {
5593 "type": "string",
5594 "required": true
5595 },
5596 "repo": {
5597 "type": "string",
5598 "required": true
5599 },
5600 "number": {
5601 "type": "number",
5602 "required": true
5603 },
5604 "body": {
5605 "type": "string",
5606 "required": true
5607 }
5608 },
5609 "description": "Create a comment"
5610 },
5611 "createCommentReply": {
5612 "url": "/repos/:owner/:repo/pulls/:number/comments",
5613 "method": "POST",
5614 "headers": {
5615 "accept": "application/vnd.github.squirrel-girl-preview"
5616 },
5617 "params": {
5618 "owner": {
5619 "type": "string",
5620 "required": true
5621 },
5622 "repo": {
5623 "type": "string",
5624 "required": true
5625 },
5626 "number": {
5627 "type": "number",
5628 "required": true
5629 },
5630 "body": {
5631 "type": "string",
5632 "required": true
5633 },
5634 "in_reply_to": {
5635 "type": "number",
5636 "required": true,
5637 "description": "The comment id to reply to."
5638 }
5639 },
5640 "description": "Reply to existing pull request comment"
5641 },
5642 "editComment": {
5643 "url": "/repos/:owner/:repo/pulls/comments/:id",
5644 "method": "PATCH",
5645 "headers": {
5646 "accept": "application/vnd.github.squirrel-girl-preview"
5647 },
5648 "params": {
5649 "owner": {
5650 "type": "string",
5651 "required": true
5652 },
5653 "repo": {
5654 "type": "string",
5655 "required": true
5656 },
5657 "id": {
5658 "type": "string",
5659 "required": true
5660 },
5661 "body": {
5662 "type": "string",
5663 "required": true
5664 }
5665 },
5666 "description": "Edit a comment"
5667 },
5668 "deleteComment": {
5669 "url": "/repos/:owner/:repo/pulls/comments/:id",
5670 "method": "DELETE",
5671 "headers": {
5672 "accept": "application/vnd.github.squirrel-girl-preview"
5673 },
5674 "params": {
5675 "owner": {
5676 "type": "string",
5677 "required": true
5678 },
5679 "repo": {
5680 "type": "string",
5681 "required": true
5682 },
5683 "id": {
5684 "type": "string",
5685 "required": true
5686 }
5687 },
5688 "description": "Delete a comment"
5689 },
5690 "getReviewRequests": {
5691 "url": "/repos/:owner/:repo/pulls/:number/requested_reviewers",
5692 "method": "GET",
5693 "headers": {
5694 "accept": "application/vnd.github.thor-preview+json"
5695 },
5696 "params": {
5697 "owner": {
5698 "type": "string",
5699 "required": true
5700 },
5701 "repo": {
5702 "type": "string",
5703 "required": true
5704 },
5705 "number": {
5706 "type": "number",
5707 "required": true
5708 },
5709 "page": {
5710 "type": "number",
5711 "description": "Page number of the results to fetch."
5712 },
5713 "per_page": {
5714 "type": "number",
5715 "default": "30",
5716 "description": "A custom page size up to 100. Default is 30."
5717 }
5718 },
5719 "description": "List review requests. (In preview period. See README.)"
5720 },
5721 "createReviewRequest": {
5722 "url": "/repos/:owner/:repo/pulls/:number/requested_reviewers",
5723 "method": "POST",
5724 "headers": {
5725 "accept": "application/vnd.github.thor-preview+json"
5726 },
5727 "params": {
5728 "owner": {
5729 "type": "string",
5730 "required": true
5731 },
5732 "repo": {
5733 "type": "string",
5734 "required": true
5735 },
5736 "number": {
5737 "type": "number",
5738 "required": true
5739 },
5740 "reviewers": {
5741 "type": "string[]",
5742 "description": "An array of user logins that will be requested."
5743 },
5744 "team_reviewers": {
5745 "type": "string[]",
5746 "description": "An array of team slugs that will be requested."
5747 }
5748 },
5749 "description": "Create a review request. (In preview period. See README.)"
5750 },
5751 "deleteReviewRequest": {
5752 "url": "/repos/:owner/:repo/pulls/:number/requested_reviewers",
5753 "method": "DELETE",
5754 "headers": {
5755 "accept": "application/vnd.github.thor-preview+json"
5756 },
5757 "params": {
5758 "owner": {
5759 "type": "string",
5760 "required": true
5761 },
5762 "repo": {
5763 "type": "string",
5764 "required": true
5765 },
5766 "number": {
5767 "type": "number",
5768 "required": true
5769 },
5770 "reviewers": {
5771 "type": "string[]",
5772 "description": "An array of user logins that will be requested."
5773 },
5774 "team_reviewers": {
5775 "type": "string[]",
5776 "description": "An array of team slugs that will be requested."
5777 }
5778 },
5779 "description": "Delete a review request. (In preview period. See README.)"
5780 }
5781 },
5782 "reactions": {
5783 "delete": {
5784 "url": "/reactions/:id",
5785 "method": "DELETE",
5786 "headers": {
5787 "accept": "application/vnd.github.squirrel-girl-preview"
5788 },
5789 "params": {
5790 "id": {
5791 "type": "string",
5792 "required": true
5793 }
5794 },
5795 "description": "Delete a reaction. (In preview period. See README.)"
5796 },
5797 "getForCommitComment": {
5798 "url": "/repos/:owner/:repo/comments/:id/reactions",
5799 "method": "GET",
5800 "headers": {
5801 "accept": "application/vnd.github.squirrel-girl-preview"
5802 },
5803 "params": {
5804 "owner": {
5805 "type": "string",
5806 "required": true
5807 },
5808 "repo": {
5809 "type": "string",
5810 "required": true
5811 },
5812 "id": {
5813 "type": "string",
5814 "required": true
5815 },
5816 "content": {
5817 "type": "string",
5818 "enum": [
5819 "+1",
5820 "-1",
5821 "laugh",
5822 "confused",
5823 "heart",
5824 "hooray"
5825 ],
5826 "description": "Indicates which type of reaction to return."
5827 }
5828 },
5829 "description": "List reactions for a commit comment. (In preview period. See README.)"
5830 },
5831 "createForCommitComment": {
5832 "url": "/repos/:owner/:repo/comments/:id/reactions",
5833 "method": "POST",
5834 "headers": {
5835 "accept": "application/vnd.github.squirrel-girl-preview"
5836 },
5837 "params": {
5838 "owner": {
5839 "type": "string",
5840 "required": true
5841 },
5842 "repo": {
5843 "type": "string",
5844 "required": true
5845 },
5846 "id": {
5847 "type": "string",
5848 "required": true
5849 },
5850 "content": {
5851 "type": "string",
5852 "required": true,
5853 "enum": [
5854 "+1",
5855 "-1",
5856 "laugh",
5857 "confused",
5858 "heart",
5859 "hooray"
5860 ],
5861 "description": "The reaction type."
5862 }
5863 },
5864 "description": "Create reaction for a commit comment. (In preview period. See README.)"
5865 },
5866 "getForIssue": {
5867 "url": "/repos/:owner/:repo/issues/:number/reactions",
5868 "method": "GET",
5869 "headers": {
5870 "accept": "application/vnd.github.squirrel-girl-preview"
5871 },
5872 "params": {
5873 "owner": {
5874 "type": "string",
5875 "required": true
5876 },
5877 "repo": {
5878 "type": "string",
5879 "required": true
5880 },
5881 "number": {
5882 "type": "number",
5883 "required": true
5884 },
5885 "content": {
5886 "type": "string",
5887 "enum": [
5888 "+1",
5889 "-1",
5890 "laugh",
5891 "confused",
5892 "heart",
5893 "hooray"
5894 ],
5895 "description": "Indicates which type of reaction to return."
5896 }
5897 },
5898 "description": "List reactions for an issue. (In preview period. See README.)"
5899 },
5900 "createForIssue": {
5901 "url": "/repos/:owner/:repo/issues/:number/reactions",
5902 "method": "POST",
5903 "headers": {
5904 "accept": "application/vnd.github.squirrel-girl-preview"
5905 },
5906 "params": {
5907 "owner": {
5908 "type": "string",
5909 "required": true
5910 },
5911 "repo": {
5912 "type": "string",
5913 "required": true
5914 },
5915 "number": {
5916 "type": "number",
5917 "required": true
5918 },
5919 "content": {
5920 "type": "string",
5921 "required": true,
5922 "enum": [
5923 "+1",
5924 "-1",
5925 "laugh",
5926 "confused",
5927 "heart",
5928 "hooray"
5929 ],
5930 "description": "The reaction type."
5931 }
5932 },
5933 "description": "Create reaction for an issue. (In preview period. See README.)"
5934 },
5935 "getForIssueComment": {
5936 "url": "/repos/:owner/:repo/issues/comments/:id/reactions",
5937 "method": "GET",
5938 "headers": {
5939 "accept": "application/vnd.github.squirrel-girl-preview"
5940 },
5941 "params": {
5942 "owner": {
5943 "type": "string",
5944 "required": true
5945 },
5946 "repo": {
5947 "type": "string",
5948 "required": true
5949 },
5950 "id": {
5951 "type": "string",
5952 "required": true
5953 },
5954 "content": {
5955 "type": "string",
5956 "enum": [
5957 "+1",
5958 "-1",
5959 "laugh",
5960 "confused",
5961 "heart",
5962 "hooray"
5963 ],
5964 "description": "Indicates which type of reaction to return."
5965 }
5966 },
5967 "description": "List reactions for an issue comment. (In preview period. See README.)"
5968 },
5969 "createForIssueComment": {
5970 "url": "/repos/:owner/:repo/issues/comments/:id/reactions",
5971 "method": "POST",
5972 "headers": {
5973 "accept": "application/vnd.github.squirrel-girl-preview"
5974 },
5975 "params": {
5976 "owner": {
5977 "type": "string",
5978 "required": true
5979 },
5980 "repo": {
5981 "type": "string",
5982 "required": true
5983 },
5984 "id": {
5985 "type": "string",
5986 "required": true
5987 },
5988 "content": {
5989 "type": "string",
5990 "required": true,
5991 "enum": [
5992 "+1",
5993 "-1",
5994 "laugh",
5995 "confused",
5996 "heart",
5997 "hooray"
5998 ],
5999 "description": "The reaction type."
6000 }
6001 },
6002 "description": "Create reaction for an issue comment. (In preview period. See README.)"
6003 },
6004 "getForPullRequestReviewComment": {
6005 "url": "/repos/:owner/:repo/pulls/comments/:id/reactions",
6006 "method": "GET",
6007 "headers": {
6008 "accept": "application/vnd.github.squirrel-girl-preview"
6009 },
6010 "params": {
6011 "owner": {
6012 "type": "string",
6013 "required": true
6014 },
6015 "repo": {
6016 "type": "string",
6017 "required": true
6018 },
6019 "id": {
6020 "type": "string",
6021 "required": true
6022 },
6023 "content": {
6024 "type": "string",
6025 "enum": [
6026 "+1",
6027 "-1",
6028 "laugh",
6029 "confused",
6030 "heart",
6031 "hooray"
6032 ],
6033 "description": "Indicates which type of reaction to return."
6034 }
6035 },
6036 "description": "List reactions for a pull request review comment. (In preview period. See README.)"
6037 },
6038 "createForPullRequestReviewComment": {
6039 "url": "/repos/:owner/:repo/pulls/comments/:id/reactions",
6040 "method": "POST",
6041 "headers": {
6042 "accept": "application/vnd.github.squirrel-girl-preview"
6043 },
6044 "params": {
6045 "owner": {
6046 "type": "string",
6047 "required": true
6048 },
6049 "repo": {
6050 "type": "string",
6051 "required": true
6052 },
6053 "id": {
6054 "type": "string",
6055 "required": true
6056 },
6057 "content": {
6058 "type": "string",
6059 "required": true,
6060 "enum": [
6061 "+1",
6062 "-1",
6063 "laugh",
6064 "confused",
6065 "heart",
6066 "hooray"
6067 ],
6068 "description": "The reaction type."
6069 }
6070 },
6071 "description": "Create reaction for a pull request review comment. (In preview period. See README.)"
6072 }
6073 },
6074 "repos": {
6075 "create": {
6076 "url": "/user/repos",
6077 "method": "POST",
6078 "params": {
6079 "name": {
6080 "type": "string",
6081 "required": true
6082 },
6083 "description": {
6084 "type": "string"
6085 },
6086 "homepage": {
6087 "type": "string"
6088 },
6089 "private": {
6090 "type": "boolean",
6091 "default": "false",
6092 "description": "True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account. Default is false."
6093 },
6094 "has_issues": {
6095 "type": "boolean",
6096 "default": "true",
6097 "description": "True to enable issues for this repository, false to disable them. Default is true."
6098 },
6099 "has_projects": {
6100 "type": "boolean",
6101 "default": "true",
6102 "description": "True to enable projects for this repository, false to disable them. Default is true."
6103 },
6104 "has_wiki": {
6105 "type": "boolean",
6106 "default": "true",
6107 "description": "True to enable the wiki for this repository, false to disable it. Default is true."
6108 },
6109 "team_id": {
6110 "type": "number",
6111 "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization."
6112 },
6113 "auto_init": {
6114 "type": "boolean",
6115 "default": "false",
6116 "description": "True to create an initial commit with empty README. Default is false"
6117 },
6118 "gitignore_template": {
6119 "type": "string",
6120 "description": "Desired language or platform .gitignore template to apply. Ignored if auto_init parameter is not provided."
6121 },
6122 "license_template": {
6123 "type": "string",
6124 "description": "Desired LICENSE template to apply. Use the name of the template without the extension. For example, \"mit\" or \"mozilla\"."
6125 },
6126 "allow_squash_merge": {
6127 "type": "boolean",
6128 "default": "true",
6129 "description": "Either true to allow squash-merging pull requests, or false to prevent squash-merging. Default: true. (In preview period. See README.)"
6130 },
6131 "allow_merge_commit": {
6132 "type": "boolean",
6133 "default": "true",
6134 "description": "Either true to allow merging pull requests with a merge commit, or false to prevent merging pull requests with merge commits. Default: true. (In preview period. See README.)"
6135 },
6136 "allow_rebase_merge": {
6137 "type": "boolean",
6138 "default": "true",
6139 "description": "Either true to allow rebase-merging pull requests, or false to prevent rebase-merging. Default: true. (In preview period. See README.)"
6140 }
6141 },
6142 "description": "Create a new repository for the authenticated user."
6143 },
6144 "get": {
6145 "url": "/repos/:owner/:repo",
6146 "method": "GET",
6147 "headers": {
6148 "accept": "application/vnd.github.drax-preview+json"
6149 },
6150 "params": {
6151 "owner": {
6152 "type": "string",
6153 "required": true
6154 },
6155 "repo": {
6156 "type": "string",
6157 "required": true
6158 }
6159 },
6160 "description": "Get a repo for a user."
6161 },
6162 "edit": {
6163 "url": "/repos/:owner/:repo",
6164 "method": "PATCH",
6165 "headers": {
6166 "accept": "application/vnd.github.drax-preview+json"
6167 },
6168 "params": {
6169 "owner": {
6170 "type": "string",
6171 "required": true
6172 },
6173 "repo": {
6174 "type": "string",
6175 "required": true
6176 },
6177 "name": {
6178 "type": "string",
6179 "required": true
6180 },
6181 "description": {
6182 "type": "string"
6183 },
6184 "homepage": {
6185 "type": "string"
6186 },
6187 "private": {
6188 "type": "boolean",
6189 "default": "false",
6190 "description": "True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account. Default is false."
6191 },
6192 "has_issues": {
6193 "type": "boolean",
6194 "default": "true",
6195 "description": "True to enable issues for this repository, false to disable them. Default is true."
6196 },
6197 "has_projects": {
6198 "type": "boolean",
6199 "default": "true",
6200 "description": "True to enable projects for this repository, false to disable them. Default is true."
6201 },
6202 "has_wiki": {
6203 "type": "boolean",
6204 "default": "true",
6205 "description": "True to enable the wiki for this repository, false to disable it. Default is true."
6206 },
6207 "default_branch": {
6208 "type": "string",
6209 "description": "Updates the default branch for this repository."
6210 },
6211 "allow_squash_merge": {
6212 "type": "boolean",
6213 "default": "true",
6214 "description": "Either true to allow squash-merging pull requests, or false to prevent squash-merging. Default: true. (In preview period. See README.)"
6215 },
6216 "allow_merge_commit": {
6217 "type": "boolean",
6218 "default": "true",
6219 "description": "Either true to allow merging pull requests with a merge commit, or false to prevent merging pull requests with merge commits. Default: true. (In preview period. See README.)"
6220 },
6221 "allow_rebase_merge": {
6222 "type": "boolean",
6223 "default": "true",
6224 "description": "Either true to allow rebase-merging pull requests, or false to prevent rebase-merging. Default: true. (In preview period. See README.)"
6225 }
6226 },
6227 "description": "Update a repo."
6228 },
6229 "delete": {
6230 "url": "/repos/:owner/:repo",
6231 "method": "DELETE",
6232 "headers": {
6233 "accept": "application/vnd.github.drax-preview+json"
6234 },
6235 "params": {
6236 "owner": {
6237 "type": "string",
6238 "required": true
6239 },
6240 "repo": {
6241 "type": "string",
6242 "required": true
6243 }
6244 },
6245 "description": "Delete a repository."
6246 },
6247 "fork": {
6248 "url": "/repos/:owner/:repo/forks",
6249 "method": "POST",
6250 "params": {
6251 "owner": {
6252 "type": "string",
6253 "required": true
6254 },
6255 "repo": {
6256 "type": "string",
6257 "required": true
6258 },
6259 "organization": {
6260 "type": "string",
6261 "description": "Optional parameter to specify the organization name if forking into an organization."
6262 }
6263 },
6264 "description": "Create a fork."
6265 },
6266 "merge": {
6267 "url": "/repos/:owner/:repo/merges",
6268 "method": "POST",
6269 "params": {
6270 "owner": {
6271 "type": "string",
6272 "required": true
6273 },
6274 "repo": {
6275 "type": "string",
6276 "required": true
6277 },
6278 "base": {
6279 "type": "string",
6280 "required": true,
6281 "description": "The branch (or git ref) you want your changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repo that requests a merge to a base of another repo."
6282 },
6283 "head": {
6284 "type": "string",
6285 "required": true,
6286 "description": "The branch (or git ref) where your changes are implemented."
6287 },
6288 "commit_message": {
6289 "type": "string",
6290 "description": "Commit message to use for the merge commit. If omitted, a default message will be used."
6291 }
6292 },
6293 "description": "Perform a merge."
6294 },
6295 "getAll": {
6296 "url": "/user/repos",
6297 "method": "GET",
6298 "params": {
6299 "visibility": {
6300 "type": "string",
6301 "enum": [
6302 "all",
6303 "public",
6304 "private"
6305 ],
6306 "default": "all",
6307 "description": "Can be one of `all`, `public`, or `private`. Default: `all`."
6308 },
6309 "affiliation": {
6310 "type": "string",
6311 "default": "owner,collaborator,organization_member",
6312 "description": "Comma-separated list of values. Can include: `owner`, `collaborator`, `organization_member`."
6313 },
6314 "type": {
6315 "type": "string",
6316 "enum": [
6317 "all",
6318 "owner",
6319 "public",
6320 "private",
6321 "member"
6322 ],
6323 "default": "all",
6324 "description": "Possible values: `all`, `owner`, `public`, `private`, `member`. Default: `all`."
6325 },
6326 "sort": {
6327 "type": "string",
6328 "enum": [
6329 "created",
6330 "updated",
6331 "pushed",
6332 "full_name"
6333 ],
6334 "default": "full_name",
6335 "description": "Possible values: `created`, `updated`, `pushed`, `full_name`. Default: `full_name`."
6336 },
6337 "direction": {
6338 "type": "string",
6339 "enum": [
6340 "asc",
6341 "desc"
6342 ],
6343 "default": "desc"
6344 },
6345 "page": {
6346 "type": "number",
6347 "description": "Page number of the results to fetch."
6348 },
6349 "per_page": {
6350 "type": "number",
6351 "default": "30",
6352 "description": "A custom page size up to 100. Default is 30."
6353 }
6354 },
6355 "description": "List your repositories"
6356 },
6357 "getForUser": {
6358 "url": "/users/:username/repos",
6359 "method": "GET",
6360 "params": {
6361 "username": {
6362 "type": "string",
6363 "required": true
6364 },
6365 "type": {
6366 "type": "string",
6367 "enum": [
6368 "all",
6369 "owner",
6370 "member"
6371 ],
6372 "default": "owner",
6373 "description": "Possible values: `all`, `owner`, `member`. Default: `owner`."
6374 },
6375 "sort": {
6376 "type": "string",
6377 "enum": [
6378 "created",
6379 "updated",
6380 "pushed",
6381 "full_name"
6382 ],
6383 "default": "full_name",
6384 "description": "Possible values: `created`, `updated`, `pushed`, `full_name`. Default: `full_name`."
6385 },
6386 "direction": {
6387 "type": "string",
6388 "enum": [
6389 "asc",
6390 "desc"
6391 ],
6392 "default": "desc"
6393 },
6394 "page": {
6395 "type": "number",
6396 "description": "Page number of the results to fetch."
6397 },
6398 "per_page": {
6399 "type": "number",
6400 "default": "30",
6401 "description": "A custom page size up to 100. Default is 30."
6402 }
6403 },
6404 "description": "List public repositories for the specified user."
6405 },
6406 "getForOrg": {
6407 "url": "/orgs/:org/repos",
6408 "method": "GET",
6409 "params": {
6410 "org": {
6411 "type": "string",
6412 "required": true
6413 },
6414 "type": {
6415 "type": "string",
6416 "enum": [
6417 "all",
6418 "public",
6419 "private",
6420 "forks",
6421 "sources",
6422 "member"
6423 ],
6424 "default": "all",
6425 "description": "Possible values: `all`, `public`, `private`, `forks`, `sources`, `member`. Default: `all`."
6426 },
6427 "page": {
6428 "type": "number",
6429 "description": "Page number of the results to fetch."
6430 },
6431 "per_page": {
6432 "type": "number",
6433 "default": "30",
6434 "description": "A custom page size up to 100. Default is 30."
6435 }
6436 },
6437 "description": "List repositories for the specified org."
6438 },
6439 "getPublic": {
6440 "url": "/repositories",
6441 "method": "GET",
6442 "params": {
6443 "since": {
6444 "type": "string",
6445 "description": "The integer ID of the last Repository that you've seen."
6446 },
6447 "page": {
6448 "type": "number",
6449 "description": "Page number of the results to fetch."
6450 },
6451 "per_page": {
6452 "type": "number",
6453 "default": "30",
6454 "description": "A custom page size up to 100. Default is 30."
6455 }
6456 },
6457 "description": "List all public repositories"
6458 },
6459 "createForOrg": {
6460 "url": "/orgs/:org/repos",
6461 "method": "POST",
6462 "params": {
6463 "org": {
6464 "type": "string",
6465 "required": true
6466 },
6467 "name": {
6468 "type": "string",
6469 "required": true
6470 },
6471 "description": {
6472 "type": "string"
6473 },
6474 "homepage": {
6475 "type": "string"
6476 },
6477 "private": {
6478 "type": "boolean",
6479 "default": "false",
6480 "description": "True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account. Default is false."
6481 },
6482 "has_issues": {
6483 "type": "boolean",
6484 "default": "true",
6485 "description": "True to enable issues for this repository, false to disable them. Default is true."
6486 },
6487 "has_projects": {
6488 "type": "boolean",
6489 "default": "true",
6490 "description": "True to enable projects for this repository, false to disable them. Default is true."
6491 },
6492 "has_wiki": {
6493 "type": "boolean",
6494 "default": "true",
6495 "description": "True to enable the wiki for this repository, false to disable it. Default is true."
6496 },
6497 "team_id": {
6498 "type": "number",
6499 "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization."
6500 },
6501 "auto_init": {
6502 "type": "boolean",
6503 "default": "false",
6504 "description": "True to create an initial commit with empty README. Default is false"
6505 },
6506 "gitignore_template": {
6507 "type": "string",
6508 "description": "Desired language or platform .gitignore template to apply. Ignored if auto_init parameter is not provided."
6509 },
6510 "license_template": {
6511 "type": "string",
6512 "description": "Desired LICENSE template to apply. Use the name of the template without the extension. For example, \"mit\" or \"mozilla\"."
6513 },
6514 "allow_squash_merge": {
6515 "type": "boolean",
6516 "default": "true",
6517 "description": "Either true to allow squash-merging pull requests, or false to prevent squash-merging. Default: true. (In preview period. See README.)"
6518 },
6519 "allow_merge_commit": {
6520 "type": "boolean",
6521 "default": "true",
6522 "description": "Either true to allow merging pull requests with a merge commit, or false to prevent merging pull requests with merge commits. Default: true. (In preview period. See README.)"
6523 },
6524 "allow_rebase_merge": {
6525 "type": "boolean",
6526 "default": "true",
6527 "description": "Either true to allow rebase-merging pull requests, or false to prevent rebase-merging. Default: true. (In preview period. See README.)"
6528 }
6529 },
6530 "description": "Create a new repository for an organization."
6531 },
6532 "getById": {
6533 "url": "/repositories/:id",
6534 "method": "GET",
6535 "params": {
6536 "id": {
6537 "type": "string",
6538 "required": true,
6539 "description": "Numerical ID of the repository."
6540 }
6541 },
6542 "description": "Get a single repo by id."
6543 },
6544 "getTopics": {
6545 "url": "/repos/:owner/:repo/topics",
6546 "method": "GET",
6547 "headers": {
6548 "accept": "application/vnd.github.mercy-preview+json"
6549 },
6550 "params": {
6551 "owner": {
6552 "type": "string",
6553 "required": true
6554 },
6555 "repo": {
6556 "type": "string",
6557 "required": true
6558 },
6559 "page": {
6560 "type": "number",
6561 "description": "Page number of the results to fetch."
6562 },
6563 "per_page": {
6564 "type": "number",
6565 "default": "30",
6566 "description": "A custom page size up to 100. Default is 30."
6567 }
6568 },
6569 "description": "List all topics for a repository. (In preview period. See README.)"
6570 },
6571 "replaceTopics": {
6572 "url": "/repos/:owner/:repo/topics",
6573 "method": "PUT",
6574 "headers": {
6575 "accept": "application/vnd.github.mercy-preview+json"
6576 },
6577 "params": {
6578 "owner": {
6579 "type": "string",
6580 "required": true
6581 },
6582 "repo": {
6583 "type": "string",
6584 "required": true
6585 },
6586 "names": {
6587 "type": "string[]",
6588 "required": true,
6589 "description": "An array of topics to add to the repository. Pass one or more topics to replace the set of existing topics. Send an empty array ([]) to clear all topics from the repository."
6590 }
6591 },
6592 "description": "Replace all topics for a repository. (In preview period. See README.)"
6593 },
6594 "getContributors": {
6595 "url": "/repos/:owner/:repo/contributors",
6596 "method": "GET",
6597 "params": {
6598 "owner": {
6599 "type": "string",
6600 "required": true
6601 },
6602 "repo": {
6603 "type": "string",
6604 "required": true
6605 },
6606 "anon": {
6607 "type": "boolean",
6608 "description": "Set to 1 or true to include anonymous contributors in results."
6609 },
6610 "page": {
6611 "type": "number",
6612 "description": "Page number of the results to fetch."
6613 },
6614 "per_page": {
6615 "type": "number",
6616 "default": "30",
6617 "description": "A custom page size up to 100. Default is 30."
6618 }
6619 },
6620 "description": "Get contributors for the specified repository."
6621 },
6622 "getLanguages": {
6623 "url": "/repos/:owner/:repo/languages",
6624 "method": "GET",
6625 "params": {
6626 "owner": {
6627 "type": "string",
6628 "required": true
6629 },
6630 "repo": {
6631 "type": "string",
6632 "required": true
6633 },
6634 "page": {
6635 "type": "number",
6636 "description": "Page number of the results to fetch."
6637 },
6638 "per_page": {
6639 "type": "number",
6640 "default": "30",
6641 "description": "A custom page size up to 100. Default is 30."
6642 }
6643 },
6644 "description": "Get languages for the specified repository."
6645 },
6646 "getTeams": {
6647 "url": "/repos/:owner/:repo/teams",
6648 "method": "GET",
6649 "params": {
6650 "owner": {
6651 "type": "string",
6652 "required": true
6653 },
6654 "repo": {
6655 "type": "string",
6656 "required": true
6657 },
6658 "page": {
6659 "type": "number",
6660 "description": "Page number of the results to fetch."
6661 },
6662 "per_page": {
6663 "type": "number",
6664 "default": "30",
6665 "description": "A custom page size up to 100. Default is 30."
6666 }
6667 },
6668 "description": "Get teams for the specified repository."
6669 },
6670 "getTags": {
6671 "url": "/repos/:owner/:repo/tags",
6672 "method": "GET",
6673 "params": {
6674 "owner": {
6675 "type": "string",
6676 "required": true
6677 },
6678 "repo": {
6679 "type": "string",
6680 "required": true
6681 },
6682 "page": {
6683 "type": "number",
6684 "description": "Page number of the results to fetch."
6685 },
6686 "per_page": {
6687 "type": "number",
6688 "default": "30",
6689 "description": "A custom page size up to 100. Default is 30."
6690 }
6691 },
6692 "description": "Get tags for the specified repository."
6693 },
6694 "getBranches": {
6695 "url": "/repos/:owner/:repo/branches",
6696 "method": "GET",
6697 "params": {
6698 "owner": {
6699 "type": "string",
6700 "required": true
6701 },
6702 "repo": {
6703 "type": "string",
6704 "required": true
6705 },
6706 "protected": {
6707 "type": "boolean",
6708 "description": "Set to true to only return protected branches"
6709 },
6710 "page": {
6711 "type": "number",
6712 "description": "Page number of the results to fetch."
6713 },
6714 "per_page": {
6715 "type": "number",
6716 "default": "30",
6717 "description": "A custom page size up to 100. Default is 30."
6718 }
6719 },
6720 "description": "List branches."
6721 },
6722 "getBranch": {
6723 "url": "/repos/:owner/:repo/branches/:branch",
6724 "method": "GET",
6725 "params": {
6726 "owner": {
6727 "type": "string",
6728 "required": true
6729 },
6730 "repo": {
6731 "type": "string",
6732 "required": true
6733 },
6734 "branch": {
6735 "type": "string",
6736 "required": true
6737 },
6738 "page": {
6739 "type": "number",
6740 "description": "Page number of the results to fetch."
6741 },
6742 "per_page": {
6743 "type": "number",
6744 "default": "30",
6745 "description": "A custom page size up to 100. Default is 30."
6746 }
6747 },
6748 "description": "Get branch."
6749 },
6750 "getBranchProtection": {
6751 "url": "/repos/:owner/:repo/branches/:branch/protection",
6752 "method": "GET",
6753 "params": {
6754 "owner": {
6755 "type": "string",
6756 "required": true
6757 },
6758 "repo": {
6759 "type": "string",
6760 "required": true
6761 },
6762 "branch": {
6763 "type": "string",
6764 "required": true
6765 },
6766 "page": {
6767 "type": "number",
6768 "description": "Page number of the results to fetch."
6769 },
6770 "per_page": {
6771 "type": "number",
6772 "default": "30",
6773 "description": "A custom page size up to 100. Default is 30."
6774 }
6775 },
6776 "description": "Get branch protection."
6777 },
6778 "updateBranchProtection": {
6779 "url": "/repos/:owner/:repo/branches/:branch/protection",
6780 "method": "PUT",
6781 "params": {
6782 "owner": {
6783 "type": "string",
6784 "required": true
6785 },
6786 "repo": {
6787 "type": "string",
6788 "required": true
6789 },
6790 "branch": {
6791 "type": "string",
6792 "required": true
6793 },
6794 "required_status_checks": {
6795 "type": "json",
6796 "required": true,
6797 "allow-null": true,
6798 "description": "JSON object that contains the following keys: `include_admins` - Enforce required status checks for repository administrators, `strict` - Require branches to be up to date before merging, `contexts` - The list of status checks to require in order to merge into this branch. This object can have the value of `null` for disabled."
6799 },
6800 "required_pull_request_reviews": {
6801 "type": "json",
6802 "required": true,
6803 "allow-null": true,
6804 "description": "JSON object that contains the following keys: `include_admins` - Enforce required status checks for repository administrators."
6805 },
6806 "dismissal_restrictions": {
6807 "type": "json",
6808 "allow-null": true,
6809 "description": "JSON object that contains the following keys: `users` - The list of user logins with dismissal access, `teams` - The list of team slugs with dismissal access. This object can have the value of `null` for disabled."
6810 },
6811 "restrictions": {
6812 "type": "json",
6813 "required": true,
6814 "allow-null": true,
6815 "description": "JSON object that contains the following keys: `users` - The list of user logins with push access, `teams` - The list of team slugs with push access. This object can have the value of `null` for disabled."
6816 },
6817 "enforce_admins": {
6818 "type": "boolean",
6819 "required": true,
6820 "allow-null": false,
6821 "description": "Enforces required status checks for repository administrators."
6822 },
6823 "page": {
6824 "type": "number",
6825 "description": "Page number of the results to fetch."
6826 },
6827 "per_page": {
6828 "type": "number",
6829 "default": "30",
6830 "description": "A custom page size up to 100. Default is 30."
6831 }
6832 },
6833 "description": "Update branch protection."
6834 },
6835 "removeBranchProtection": {
6836 "url": "/repos/:owner/:repo/branches/:branch/protection",
6837 "method": "DELETE",
6838 "params": {
6839 "owner": {
6840 "type": "string",
6841 "required": true
6842 },
6843 "repo": {
6844 "type": "string",
6845 "required": true
6846 },
6847 "branch": {
6848 "type": "string",
6849 "required": true
6850 }
6851 },
6852 "description": "Remove branch protection."
6853 },
6854 "getProtectedBranchRequiredStatusChecks": {
6855 "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks",
6856 "method": "GET",
6857 "params": {
6858 "owner": {
6859 "type": "string",
6860 "required": true
6861 },
6862 "repo": {
6863 "type": "string",
6864 "required": true
6865 },
6866 "branch": {
6867 "type": "string",
6868 "required": true
6869 },
6870 "page": {
6871 "type": "number",
6872 "description": "Page number of the results to fetch."
6873 },
6874 "per_page": {
6875 "type": "number",
6876 "default": "30",
6877 "description": "A custom page size up to 100. Default is 30."
6878 }
6879 },
6880 "description": "Get required status checks of protected branch."
6881 },
6882 "updateProtectedBranchRequiredStatusChecks": {
6883 "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks",
6884 "method": "PATCH",
6885 "params": {
6886 "owner": {
6887 "type": "string",
6888 "required": true
6889 },
6890 "repo": {
6891 "type": "string",
6892 "required": true
6893 },
6894 "branch": {
6895 "type": "string",
6896 "required": true
6897 },
6898 "strict": {
6899 "type": "boolean",
6900 "description": "Require branches to be up to date before merging."
6901 },
6902 "contexts": {
6903 "type": "string[]",
6904 "description": "The list of status checks to require in order to merge into this branch."
6905 }
6906 },
6907 "description": "Update required status checks of protected branch."
6908 },
6909 "removeProtectedBranchRequiredStatusChecks": {
6910 "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks",
6911 "method": "DELETE",
6912 "params": {
6913 "owner": {
6914 "type": "string",
6915 "required": true
6916 },
6917 "repo": {
6918 "type": "string",
6919 "required": true
6920 },
6921 "branch": {
6922 "type": "string",
6923 "required": true
6924 }
6925 },
6926 "description": "Remove required status checks of protected branch."
6927 },
6928 "getProtectedBranchRequiredStatusChecksContexts": {
6929 "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts",
6930 "method": "GET",
6931 "params": {
6932 "owner": {
6933 "type": "string",
6934 "required": true
6935 },
6936 "repo": {
6937 "type": "string",
6938 "required": true
6939 },
6940 "branch": {
6941 "type": "string",
6942 "required": true
6943 },
6944 "page": {
6945 "type": "number",
6946 "description": "Page number of the results to fetch."
6947 },
6948 "per_page": {
6949 "type": "number",
6950 "default": "30",
6951 "description": "A custom page size up to 100. Default is 30."
6952 }
6953 },
6954 "description": "List required status checks contexts of protected branch."
6955 },
6956 "replaceProtectedBranchRequiredStatusChecksContexts": {
6957 "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts",
6958 "method": "PUT",
6959 "params": {
6960 "owner": {
6961 "type": "string",
6962 "required": true
6963 },
6964 "repo": {
6965 "type": "string",
6966 "required": true
6967 },
6968 "branch": {
6969 "type": "string",
6970 "required": true
6971 },
6972 "contexts": {
6973 "type": "string[]",
6974 "required": true,
6975 "mapTo": "input",
6976 "description": "An array of protected branch required status checks contexts (e.g. continuous-integration/jenkins)."
6977 }
6978 },
6979 "description": "Replace required status checks contexts of protected branch."
6980 },
6981 "addProtectedBranchRequiredStatusChecksContexts": {
6982 "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts",
6983 "method": "POST",
6984 "params": {
6985 "owner": {
6986 "type": "string",
6987 "required": true
6988 },
6989 "repo": {
6990 "type": "string",
6991 "required": true
6992 },
6993 "branch": {
6994 "type": "string",
6995 "required": true
6996 },
6997 "contexts": {
6998 "type": "string[]",
6999 "required": true,
7000 "mapTo": "input",
7001 "description": "An array of protected branch required status checks contexts (e.g. continuous-integration/jenkins)."
7002 }
7003 },
7004 "description": "Add required status checks contexts of protected branch."
7005 },
7006 "removeProtectedBranchRequiredStatusChecksContexts": {
7007 "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts",
7008 "method": "DELETE",
7009 "params": {
7010 "owner": {
7011 "type": "string",
7012 "required": true
7013 },
7014 "repo": {
7015 "type": "string",
7016 "required": true
7017 },
7018 "branch": {
7019 "type": "string",
7020 "required": true
7021 },
7022 "contexts": {
7023 "type": "string[]",
7024 "required": true,
7025 "mapTo": "input",
7026 "description": "An array of protected branch required status checks contexts (e.g. continuous-integration/jenkins)."
7027 }
7028 },
7029 "description": "Remove required status checks contexts of protected branch."
7030 },
7031 "getProtectedBranchPullRequestReviewEnforcement": {
7032 "url": "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews",
7033 "method": "GET",
7034 "params": {
7035 "owner": {
7036 "type": "string",
7037 "required": true
7038 },
7039 "repo": {
7040 "type": "string",
7041 "required": true
7042 },
7043 "branch": {
7044 "type": "string",
7045 "required": true
7046 },
7047 "page": {
7048 "type": "number",
7049 "description": "Page number of the results to fetch."
7050 },
7051 "per_page": {
7052 "type": "number",
7053 "default": "30",
7054 "description": "A custom page size up to 100. Default is 30."
7055 }
7056 },
7057 "description": "Get pull request review enforcement of protected branch."
7058 },
7059 "updateProtectedBranchPullRequestReviewEnforcement": {
7060 "url": "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews",
7061 "method": "PATCH",
7062 "params": {
7063 "owner": {
7064 "type": "string",
7065 "required": true
7066 },
7067 "repo": {
7068 "type": "string",
7069 "required": true
7070 },
7071 "branch": {
7072 "type": "string",
7073 "required": true
7074 },
7075 "dismissal_restrictions": {
7076 "type": "json",
7077 "allow-null": true,
7078 "description": "JSON object that contains the following keys: `users` - The list of user logins with dismissal access, `teams` - The list of team slugs with dismissal access. This object can have the value of `null` for disabled."
7079 },
7080 "dismiss_stale_reviews": {
7081 "type": "boolean",
7082 "description": "Dismiss approved reviews automatically when a new commit is pushed."
7083 },
7084 "require_code_owner_reviews": {
7085 "type": "boolean",
7086 "description": "Blocks merge until code owners have reviewed."
7087 }
7088 },
7089 "description": "Update pull request review enforcement of protected branch."
7090 },
7091 "removeProtectedBranchPullRequestReviewEnforcement": {
7092 "url": "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews",
7093 "method": "DELETE",
7094 "params": {
7095 "owner": {
7096 "type": "string",
7097 "required": true
7098 },
7099 "repo": {
7100 "type": "string",
7101 "required": true
7102 },
7103 "branch": {
7104 "type": "string",
7105 "required": true
7106 }
7107 },
7108 "description": "Remove pull request review enforcement of protected branch."
7109 },
7110 "getProtectedBranchAdminEnforcement": {
7111 "url": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins",
7112 "method": "GET",
7113 "params": {
7114 "owner": {
7115 "type": "string",
7116 "required": true
7117 },
7118 "repo": {
7119 "type": "string",
7120 "required": true
7121 },
7122 "branch": {
7123 "type": "string",
7124 "required": true
7125 },
7126 "page": {
7127 "type": "number",
7128 "description": "Page number of the results to fetch."
7129 },
7130 "per_page": {
7131 "type": "number",
7132 "default": "30",
7133 "description": "A custom page size up to 100. Default is 30."
7134 }
7135 },
7136 "description": "Get admin enforcement of protected branch."
7137 },
7138 "addProtectedBranchAdminEnforcement": {
7139 "url": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins",
7140 "method": "POST",
7141 "params": {
7142 "owner": {
7143 "type": "string",
7144 "required": true
7145 },
7146 "repo": {
7147 "type": "string",
7148 "required": true
7149 },
7150 "branch": {
7151 "type": "string",
7152 "required": true
7153 },
7154 "page": {
7155 "type": "number",
7156 "description": "Page number of the results to fetch."
7157 },
7158 "per_page": {
7159 "type": "number",
7160 "default": "30",
7161 "description": "A custom page size up to 100. Default is 30."
7162 }
7163 },
7164 "description": "Add admin enforcement of protected branch."
7165 },
7166 "removeProtectedBranchAdminEnforcement": {
7167 "url": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins",
7168 "method": "DELETE",
7169 "params": {
7170 "owner": {
7171 "type": "string",
7172 "required": true
7173 },
7174 "repo": {
7175 "type": "string",
7176 "required": true
7177 },
7178 "branch": {
7179 "type": "string",
7180 "required": true
7181 }
7182 },
7183 "description": "Remove admin enforcement of protected branch."
7184 },
7185 "getProtectedBranchRestrictions": {
7186 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions",
7187 "method": "GET",
7188 "params": {
7189 "owner": {
7190 "type": "string",
7191 "required": true
7192 },
7193 "repo": {
7194 "type": "string",
7195 "required": true
7196 },
7197 "branch": {
7198 "type": "string",
7199 "required": true
7200 },
7201 "page": {
7202 "type": "number",
7203 "description": "Page number of the results to fetch."
7204 },
7205 "per_page": {
7206 "type": "number",
7207 "default": "30",
7208 "description": "A custom page size up to 100. Default is 30."
7209 }
7210 },
7211 "description": "Get restrictions of protected branch."
7212 },
7213 "removeProtectedBranchRestrictions": {
7214 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions",
7215 "method": "DELETE",
7216 "params": {
7217 "owner": {
7218 "type": "string",
7219 "required": true
7220 },
7221 "repo": {
7222 "type": "string",
7223 "required": true
7224 },
7225 "branch": {
7226 "type": "string",
7227 "required": true
7228 }
7229 },
7230 "description": "Remove restrictions of protected branch."
7231 },
7232 "getProtectedBranchTeamRestrictions": {
7233 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams",
7234 "method": "GET",
7235 "params": {
7236 "owner": {
7237 "type": "string",
7238 "required": true
7239 },
7240 "repo": {
7241 "type": "string",
7242 "required": true
7243 },
7244 "branch": {
7245 "type": "string",
7246 "required": true
7247 },
7248 "page": {
7249 "type": "number",
7250 "description": "Page number of the results to fetch."
7251 },
7252 "per_page": {
7253 "type": "number",
7254 "default": "30",
7255 "description": "A custom page size up to 100. Default is 30."
7256 }
7257 },
7258 "description": "List team restrictions of protected branch."
7259 },
7260 "replaceProtectedBranchTeamRestrictions": {
7261 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams",
7262 "method": "PUT",
7263 "params": {
7264 "owner": {
7265 "type": "string",
7266 "required": true
7267 },
7268 "repo": {
7269 "type": "string",
7270 "required": true
7271 },
7272 "branch": {
7273 "type": "string",
7274 "required": true
7275 },
7276 "teams": {
7277 "type": "string[]",
7278 "required": true,
7279 "mapTo": "input",
7280 "description": "An array of team slugs (e.g. justice-league)."
7281 }
7282 },
7283 "description": "Replace team restrictions of protected branch."
7284 },
7285 "addProtectedBranchTeamRestrictions": {
7286 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams",
7287 "method": "POST",
7288 "params": {
7289 "owner": {
7290 "type": "string",
7291 "required": true
7292 },
7293 "repo": {
7294 "type": "string",
7295 "required": true
7296 },
7297 "branch": {
7298 "type": "string",
7299 "required": true
7300 },
7301 "teams": {
7302 "type": "string[]",
7303 "required": true,
7304 "mapTo": "input",
7305 "description": "An array of team slugs (e.g. justice-league)."
7306 }
7307 },
7308 "description": "Add team restrictions of protected branch."
7309 },
7310 "removeProtectedBranchTeamRestrictions": {
7311 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams",
7312 "method": "DELETE",
7313 "params": {
7314 "owner": {
7315 "type": "string",
7316 "required": true
7317 },
7318 "repo": {
7319 "type": "string",
7320 "required": true
7321 },
7322 "branch": {
7323 "type": "string",
7324 "required": true
7325 },
7326 "teams": {
7327 "type": "string[]",
7328 "required": true,
7329 "mapTo": "input",
7330 "description": "An array of team slugs (e.g. justice-league)."
7331 }
7332 },
7333 "description": "Remove team restrictions of protected branch."
7334 },
7335 "getProtectedBranchUserRestrictions": {
7336 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users",
7337 "method": "GET",
7338 "params": {
7339 "owner": {
7340 "type": "string",
7341 "required": true
7342 },
7343 "repo": {
7344 "type": "string",
7345 "required": true
7346 },
7347 "branch": {
7348 "type": "string",
7349 "required": true
7350 },
7351 "page": {
7352 "type": "number",
7353 "description": "Page number of the results to fetch."
7354 },
7355 "per_page": {
7356 "type": "number",
7357 "default": "30",
7358 "description": "A custom page size up to 100. Default is 30."
7359 }
7360 },
7361 "description": "List user restrictions of protected branch."
7362 },
7363 "replaceProtectedBranchUserRestrictions": {
7364 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users",
7365 "method": "PUT",
7366 "params": {
7367 "owner": {
7368 "type": "string",
7369 "required": true
7370 },
7371 "repo": {
7372 "type": "string",
7373 "required": true
7374 },
7375 "branch": {
7376 "type": "string",
7377 "required": true
7378 },
7379 "users": {
7380 "type": "string[]",
7381 "required": true,
7382 "mapTo": "input",
7383 "description": "An array of team slugs (e.g. justice-league)."
7384 }
7385 },
7386 "description": "Replace user restrictions of protected branch."
7387 },
7388 "addProtectedBranchUserRestrictions": {
7389 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users",
7390 "method": "POST",
7391 "params": {
7392 "owner": {
7393 "type": "string",
7394 "required": true
7395 },
7396 "repo": {
7397 "type": "string",
7398 "required": true
7399 },
7400 "branch": {
7401 "type": "string",
7402 "required": true
7403 },
7404 "users": {
7405 "type": "string[]",
7406 "required": true,
7407 "mapTo": "input",
7408 "description": "An array of team slugs (e.g. justice-league)."
7409 }
7410 },
7411 "description": "Add user restrictions of protected branch."
7412 },
7413 "removeProtectedBranchUserRestrictions": {
7414 "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users",
7415 "method": "DELETE",
7416 "params": {
7417 "owner": {
7418 "type": "string",
7419 "required": true
7420 },
7421 "repo": {
7422 "type": "string",
7423 "required": true
7424 },
7425 "branch": {
7426 "type": "string",
7427 "required": true
7428 },
7429 "users": {
7430 "type": "string[]",
7431 "required": true,
7432 "mapTo": "input",
7433 "description": "An array of team slugs (e.g. justice-league)."
7434 }
7435 },
7436 "description": "Remove user restrictions of protected branch."
7437 },
7438 "getCollaborators": {
7439 "url": "/repos/:owner/:repo/collaborators",
7440 "method": "GET",
7441 "params": {
7442 "owner": {
7443 "type": "string",
7444 "required": true
7445 },
7446 "repo": {
7447 "type": "string",
7448 "required": true
7449 },
7450 "affiliation": {
7451 "type": "string",
7452 "enum": [
7453 "outside",
7454 "all",
7455 "direct"
7456 ],
7457 "default": "all",
7458 "description": "Filter collaborators returned by their affiliation."
7459 },
7460 "page": {
7461 "type": "number",
7462 "description": "Page number of the results to fetch."
7463 },
7464 "per_page": {
7465 "type": "number",
7466 "default": "30",
7467 "description": "A custom page size up to 100. Default is 30."
7468 }
7469 },
7470 "description": "List collaborators"
7471 },
7472 "checkCollaborator": {
7473 "url": "/repos/:owner/:repo/collaborators/:username",
7474 "method": "GET",
7475 "params": {
7476 "owner": {
7477 "type": "string",
7478 "required": true
7479 },
7480 "repo": {
7481 "type": "string",
7482 "required": true
7483 },
7484 "username": {
7485 "type": "string",
7486 "required": true
7487 }
7488 },
7489 "description": "Check if user is a collaborator."
7490 },
7491 "reviewUserPermissionLevel": {
7492 "url": "/repos/:owner/:repo/collaborators/:username/permission",
7493 "method": "GET",
7494 "params": {
7495 "owner": {
7496 "type": "string",
7497 "required": true
7498 },
7499 "repo": {
7500 "type": "string",
7501 "required": true
7502 },
7503 "username": {
7504 "type": "string",
7505 "required": true
7506 }
7507 },
7508 "description": "Review a user's permission level."
7509 },
7510 "addCollaborator": {
7511 "url": "/repos/:owner/:repo/collaborators/:username",
7512 "method": "PUT",
7513 "params": {
7514 "owner": {
7515 "type": "string",
7516 "required": true
7517 },
7518 "repo": {
7519 "type": "string",
7520 "required": true
7521 },
7522 "username": {
7523 "type": "string",
7524 "required": true
7525 },
7526 "permission": {
7527 "type": "string",
7528 "enum": [
7529 "pull",
7530 "push",
7531 "admin"
7532 ],
7533 "default": "push",
7534 "description": "`pull` - can pull, but not push to or administer this repository, `push` - can pull and push, but not administer this repository, `admin` - can pull, push and administer this repository."
7535 }
7536 },
7537 "description": "Add user as a collaborator"
7538 },
7539 "removeCollaborator": {
7540 "url": "/repos/:owner/:repo/collaborators/:username",
7541 "method": "DELETE",
7542 "params": {
7543 "owner": {
7544 "type": "string",
7545 "required": true
7546 },
7547 "repo": {
7548 "type": "string",
7549 "required": true
7550 },
7551 "username": {
7552 "type": "string",
7553 "required": true
7554 }
7555 },
7556 "description": "Remove user as a collaborator."
7557 },
7558 "getAllCommitComments": {
7559 "url": "/repos/:owner/:repo/comments",
7560 "method": "GET",
7561 "params": {
7562 "owner": {
7563 "type": "string",
7564 "required": true
7565 },
7566 "repo": {
7567 "type": "string",
7568 "required": true
7569 },
7570 "page": {
7571 "type": "number",
7572 "description": "Page number of the results to fetch."
7573 },
7574 "per_page": {
7575 "type": "number",
7576 "default": "30",
7577 "description": "A custom page size up to 100. Default is 30."
7578 }
7579 },
7580 "description": "List commit comments for a repository."
7581 },
7582 "getCommitComments": {
7583 "url": "/repos/:owner/:repo/commits/:ref/comments",
7584 "method": "GET",
7585 "params": {
7586 "owner": {
7587 "type": "string",
7588 "required": true
7589 },
7590 "repo": {
7591 "type": "string",
7592 "required": true
7593 },
7594 "ref": {
7595 "type": "string",
7596 "required": true
7597 },
7598 "page": {
7599 "type": "number",
7600 "description": "Page number of the results to fetch."
7601 },
7602 "per_page": {
7603 "type": "number",
7604 "default": "30",
7605 "description": "A custom page size up to 100. Default is 30."
7606 }
7607 },
7608 "description": "List comments for a single commit."
7609 },
7610 "createCommitComment": {
7611 "url": "/repos/:owner/:repo/commits/:sha/comments",
7612 "method": "POST",
7613 "params": {
7614 "owner": {
7615 "type": "string",
7616 "required": true
7617 },
7618 "repo": {
7619 "type": "string",
7620 "required": true
7621 },
7622 "sha": {
7623 "type": "string",
7624 "required": true
7625 },
7626 "body": {
7627 "type": "string",
7628 "required": true
7629 },
7630 "path": {
7631 "type": "string",
7632 "description": "Relative path of the file to comment on."
7633 },
7634 "position": {
7635 "type": "number",
7636 "description": "Line index in the diff to comment on."
7637 }
7638 },
7639 "description": "Create a commit comment."
7640 },
7641 "getCommitComment": {
7642 "url": "/repos/:owner/:repo/comments/:id",
7643 "method": "GET",
7644 "params": {
7645 "owner": {
7646 "type": "string",
7647 "required": true
7648 },
7649 "repo": {
7650 "type": "string",
7651 "required": true
7652 },
7653 "id": {
7654 "type": "string",
7655 "required": true
7656 }
7657 },
7658 "description": "Get a single commit comment."
7659 },
7660 "updateCommitComment": {
7661 "url": "/repos/:owner/:repo/comments/:id",
7662 "method": "PATCH",
7663 "params": {
7664 "owner": {
7665 "type": "string",
7666 "required": true
7667 },
7668 "repo": {
7669 "type": "string",
7670 "required": true
7671 },
7672 "id": {
7673 "type": "string",
7674 "required": true
7675 },
7676 "body": {
7677 "type": "string",
7678 "required": true
7679 }
7680 },
7681 "description": "Update a commit comment."
7682 },
7683 "deleteCommitComment": {
7684 "url": "/repos/:owner/:repo/comments/:id",
7685 "method": "DELETE",
7686 "params": {
7687 "owner": {
7688 "type": "string",
7689 "required": true
7690 },
7691 "repo": {
7692 "type": "string",
7693 "required": true
7694 },
7695 "id": {
7696 "type": "string",
7697 "required": true
7698 }
7699 },
7700 "description": "Delete a commit comment."
7701 },
7702 "getCommunityProfileMetrics": {
7703 "url": "/repos/:owner/:name/community/profile",
7704 "method": "GET",
7705 "headers": {
7706 "accept": "application/vnd.github.black-panther-preview+json"
7707 },
7708 "params": {
7709 "owner": {
7710 "type": "string",
7711 "required": true
7712 },
7713 "name": {
7714 "type": "string",
7715 "required": true
7716 }
7717 },
7718 "description": "Retrieve community profile metrics."
7719 },
7720 "getCommits": {
7721 "url": "/repos/:owner/:repo/commits",
7722 "method": "GET",
7723 "params": {
7724 "owner": {
7725 "type": "string",
7726 "required": true
7727 },
7728 "repo": {
7729 "type": "string",
7730 "required": true
7731 },
7732 "sha": {
7733 "type": "string",
7734 "description": "Sha or branch to start listing commits from."
7735 },
7736 "path": {
7737 "type": "string",
7738 "description": "Only commits containing this file path will be returned."
7739 },
7740 "author": {
7741 "type": "string",
7742 "description": "GitHub login or email address by which to filter by commit author."
7743 },
7744 "since": {
7745 "type": "date",
7746 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
7747 },
7748 "until": {
7749 "type": "date",
7750 "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ"
7751 },
7752 "page": {
7753 "type": "number",
7754 "description": "Page number of the results to fetch."
7755 },
7756 "per_page": {
7757 "type": "number",
7758 "default": "30",
7759 "description": "A custom page size up to 100. Default is 30."
7760 }
7761 },
7762 "description": "List commits on a repository."
7763 },
7764 "getCommit": {
7765 "url": "/repos/:owner/:repo/commits/:sha",
7766 "method": "GET",
7767 "headers": {
7768 "accept": "application/vnd.github.cryptographer-preview"
7769 },
7770 "params": {
7771 "owner": {
7772 "type": "string",
7773 "required": true
7774 },
7775 "repo": {
7776 "type": "string",
7777 "required": true
7778 },
7779 "sha": {
7780 "type": "string",
7781 "required": true
7782 }
7783 },
7784 "description": "Get a single commit."
7785 },
7786 "getShaOfCommitRef": {
7787 "url": "/repos/:owner/:repo/commits/:ref",
7788 "method": "GET",
7789 "params": {
7790 "owner": {
7791 "type": "string",
7792 "required": true
7793 },
7794 "repo": {
7795 "type": "string",
7796 "required": true
7797 },
7798 "ref": {
7799 "type": "string",
7800 "required": true,
7801 "allow-empty": true,
7802 "description": "String of the name of the fully qualified reference (ie: heads/master). If it doesn’t have at least one slash, it will be rejected."
7803 }
7804 },
7805 "description": "Get the SHA-1 of a commit reference."
7806 },
7807 "compareCommits": {
7808 "url": "/repos/:owner/:repo/compare/:base...:head",
7809 "method": "GET",
7810 "params": {
7811 "owner": {
7812 "type": "string",
7813 "required": true
7814 },
7815 "repo": {
7816 "type": "string",
7817 "required": true
7818 },
7819 "base": {
7820 "type": "string",
7821 "required": true,
7822 "description": "The branch (or git ref) you want your changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repo that requests a merge to a base of another repo."
7823 },
7824 "head": {
7825 "type": "string",
7826 "required": true,
7827 "description": "The branch (or git ref) where your changes are implemented."
7828 }
7829 },
7830 "description": "Compare two commits."
7831 },
7832 "getReadme": {
7833 "url": "/repos/:owner/:repo/readme",
7834 "method": "GET",
7835 "params": {
7836 "owner": {
7837 "type": "string",
7838 "required": true
7839 },
7840 "repo": {
7841 "type": "string",
7842 "required": true
7843 },
7844 "ref": {
7845 "type": "string",
7846 "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually master)"
7847 }
7848 },
7849 "description": "Get the README for the given repository."
7850 },
7851 "getContent": {
7852 "url": "/repos/:owner/:repo/contents/:path",
7853 "method": "GET",
7854 "params": {
7855 "owner": {
7856 "type": "string",
7857 "required": true
7858 },
7859 "repo": {
7860 "type": "string",
7861 "required": true
7862 },
7863 "path": {
7864 "type": "string",
7865 "required": true,
7866 "allow-empty": true,
7867 "description": "The content path."
7868 },
7869 "ref": {
7870 "type": "string",
7871 "description": "The String name of the Commit/Branch/Tag. Defaults to master."
7872 }
7873 },
7874 "description": "Get the contents of a file or directory in a repository."
7875 },
7876 "createFile": {
7877 "url": "/repos/:owner/:repo/contents/:path",
7878 "method": "PUT",
7879 "params": {
7880 "owner": {
7881 "type": "string",
7882 "required": true
7883 },
7884 "repo": {
7885 "type": "string",
7886 "required": true
7887 },
7888 "path": {
7889 "type": "string",
7890 "required": true,
7891 "description": "The content path."
7892 },
7893 "message": {
7894 "type": "string",
7895 "required": true,
7896 "description": "The commit message."
7897 },
7898 "content": {
7899 "type": "string",
7900 "required": true,
7901 "description": "The new file content, Base64 encoded."
7902 },
7903 "branch": {
7904 "type": "string",
7905 "description": "The branch name. If not provided, uses the repository’s default branch (usually master)."
7906 },
7907 "committer": {
7908 "type": "json"
7909 },
7910 "author": {
7911 "type": "json"
7912 }
7913 },
7914 "description": "Create a new file in the given repository."
7915 },
7916 "updateFile": {
7917 "url": "/repos/:owner/:repo/contents/:path",
7918 "method": "PUT",
7919 "params": {
7920 "owner": {
7921 "type": "string",
7922 "required": true
7923 },
7924 "repo": {
7925 "type": "string",
7926 "required": true
7927 },
7928 "path": {
7929 "type": "string",
7930 "required": true,
7931 "description": "The content path."
7932 },
7933 "message": {
7934 "type": "string",
7935 "required": true,
7936 "description": "The commit message."
7937 },
7938 "content": {
7939 "type": "string",
7940 "required": true,
7941 "description": "The updated file content, Base64 encoded."
7942 },
7943 "sha": {
7944 "type": "string",
7945 "required": true,
7946 "description": "The blob SHA of the file being replaced."
7947 },
7948 "branch": {
7949 "type": "string",
7950 "description": "The branch name. If not provided, uses the repository’s default branch (usually master)."
7951 },
7952 "committer": {
7953 "type": "json"
7954 },
7955 "author": {
7956 "type": "json"
7957 }
7958 },
7959 "description": "Update a file."
7960 },
7961 "deleteFile": {
7962 "url": "/repos/:owner/:repo/contents/:path",
7963 "method": "DELETE",
7964 "params": {
7965 "owner": {
7966 "type": "string",
7967 "required": true
7968 },
7969 "repo": {
7970 "type": "string",
7971 "required": true
7972 },
7973 "path": {
7974 "type": "string",
7975 "required": true,
7976 "description": "The content path."
7977 },
7978 "message": {
7979 "type": "string",
7980 "required": true,
7981 "description": "The commit message."
7982 },
7983 "sha": {
7984 "type": "string",
7985 "required": true,
7986 "description": "The blob SHA of the file being removed."
7987 },
7988 "branch": {
7989 "type": "string",
7990 "description": "The branch name. If not provided, uses the repository’s default branch (usually master)."
7991 },
7992 "committer": {
7993 "type": "json"
7994 },
7995 "author": {
7996 "type": "json"
7997 }
7998 },
7999 "description": "Delete a file."
8000 },
8001 "getArchiveLink": {
8002 "url": "/repos/:owner/:repo/:archive_format/:ref",
8003 "method": "GET",
8004 "params": {
8005 "owner": {
8006 "type": "string",
8007 "required": true
8008 },
8009 "repo": {
8010 "type": "string",
8011 "required": true
8012 },
8013 "archive_format": {
8014 "type": "string",
8015 "required": true,
8016 "enum": [
8017 "tarball",
8018 "zipball"
8019 ],
8020 "default": "tarball",
8021 "description": "Either tarball or zipball, Deafult: tarball."
8022 },
8023 "ref": {
8024 "type": "string",
8025 "description": "A valid Git reference. Default: the repository’s default branch (usually master)."
8026 }
8027 },
8028 "description": "Get archive link."
8029 },
8030 "getDeployKeys": {
8031 "url": "/repos/:owner/:repo/keys",
8032 "method": "GET",
8033 "params": {
8034 "owner": {
8035 "type": "string",
8036 "required": true
8037 },
8038 "repo": {
8039 "type": "string",
8040 "required": true
8041 },
8042 "page": {
8043 "type": "number",
8044 "description": "Page number of the results to fetch."
8045 },
8046 "per_page": {
8047 "type": "number",
8048 "default": "30",
8049 "description": "A custom page size up to 100. Default is 30."
8050 }
8051 },
8052 "description": "List deploy keys."
8053 },
8054 "getDeployKey": {
8055 "url": "/repos/:owner/:repo/keys/:id",
8056 "method": "GET",
8057 "params": {
8058 "owner": {
8059 "type": "string",
8060 "required": true
8061 },
8062 "repo": {
8063 "type": "string",
8064 "required": true
8065 },
8066 "id": {
8067 "type": "string",
8068 "required": true
8069 }
8070 },
8071 "description": "Get a deploy key."
8072 },
8073 "addDeployKey": {
8074 "url": "/repos/:owner/:repo/keys",
8075 "method": "POST",
8076 "params": {
8077 "owner": {
8078 "type": "string",
8079 "required": true
8080 },
8081 "repo": {
8082 "type": "string",
8083 "required": true
8084 },
8085 "title": {
8086 "type": "string",
8087 "required": true
8088 },
8089 "key": {
8090 "type": "string",
8091 "required": true
8092 },
8093 "read_only": {
8094 "type": "boolean",
8095 "description": "If true, the key will only be able to read repository contents. Otherwise, the key will be able to read and write."
8096 }
8097 },
8098 "description": "Add a new deploy key."
8099 },
8100 "deleteDeployKey": {
8101 "url": "/repos/:owner/:repo/keys/:id",
8102 "method": "DELETE",
8103 "params": {
8104 "owner": {
8105 "type": "string",
8106 "required": true
8107 },
8108 "repo": {
8109 "type": "string",
8110 "required": true
8111 },
8112 "id": {
8113 "type": "string",
8114 "required": true
8115 }
8116 },
8117 "description": "Remove a deploy key."
8118 },
8119 "getDeployments": {
8120 "url": "/repos/:owner/:repo/deployments",
8121 "method": "GET",
8122 "headers": {
8123 "accept": "application/vnd.github.ant-man-preview+json"
8124 },
8125 "params": {
8126 "owner": {
8127 "type": "string",
8128 "required": true
8129 },
8130 "repo": {
8131 "type": "string",
8132 "required": true
8133 },
8134 "sha": {
8135 "type": "string",
8136 "default": "none",
8137 "description": "The short or long sha that was recorded at creation time. Default: none."
8138 },
8139 "ref": {
8140 "type": "string",
8141 "default": "none",
8142 "description": "The name of the ref. This can be a branch, tag, or sha. Default: none."
8143 },
8144 "task": {
8145 "type": "string",
8146 "default": "none",
8147 "description": "The name of the task for the deployment. e.g. deploy or deploy:migrations. Default: none."
8148 },
8149 "environment": {
8150 "type": "string",
8151 "default": "none",
8152 "description": "The name of the environment that was deployed to. e.g. staging or production. Default: none."
8153 },
8154 "page": {
8155 "type": "number",
8156 "description": "Page number of the results to fetch."
8157 },
8158 "per_page": {
8159 "type": "number",
8160 "default": "30",
8161 "description": "A custom page size up to 100. Default is 30."
8162 }
8163 },
8164 "description": "List deployments."
8165 },
8166 "getDeployment": {
8167 "url": "/repos/:owner/:repo/deployments/:deployment_id",
8168 "method": "GET",
8169 "params": {
8170 "owner": {
8171 "type": "string",
8172 "required": true
8173 },
8174 "repo": {
8175 "type": "string",
8176 "required": true
8177 },
8178 "deployment_id": {
8179 "type": "string",
8180 "required": true,
8181 "description": "The deployment id."
8182 }
8183 },
8184 "description": "Get a single Deployment. (In preview period. See README.)"
8185 },
8186 "createDeployment": {
8187 "url": "/repos/:owner/:repo/deployments",
8188 "method": "POST",
8189 "headers": {
8190 "accept": "application/vnd.github.ant-man-preview+json"
8191 },
8192 "params": {
8193 "owner": {
8194 "type": "string",
8195 "required": true
8196 },
8197 "repo": {
8198 "type": "string",
8199 "required": true
8200 },
8201 "ref": {
8202 "type": "string",
8203 "required": true,
8204 "description": "The ref to deploy. This can be a branch, tag, or sha."
8205 },
8206 "task": {
8207 "type": "string",
8208 "default": "deploy",
8209 "description": "The named task to execute. e.g. deploy or deploy:migrations. Default: deploy"
8210 },
8211 "auto_merge": {
8212 "type": "boolean",
8213 "default": "true",
8214 "description": "Optional parameter to merge the default branch into the requested ref if it is behind the default branch. Default: true"
8215 },
8216 "required_contexts": {
8217 "type": "string[]",
8218 "description": "Optional array of status contexts verified against commit status checks. If this parameter is omitted from the parameters then all unique contexts will be verified before a deployment is created. To bypass checking entirely pass an empty array. Defaults to all unique contexts."
8219 },
8220 "payload": {
8221 "type": "string",
8222 "default": "\"\"",
8223 "description": "Optional JSON payload with extra information about the deployment. Default: \"\""
8224 },
8225 "environment": {
8226 "type": "string",
8227 "default": "none",
8228 "description": "The name of the environment that was deployed to. e.g. staging or production. Default: none."
8229 },
8230 "description": {
8231 "type": "string",
8232 "default": "\"\"",
8233 "description": "Optional short description. Default: \"\""
8234 },
8235 "transient_environment": {
8236 "type": "boolean",
8237 "default": false,
8238 "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: false. (In preview period. See README.)"
8239 },
8240 "production_environment": {
8241 "type": "boolean",
8242 "description": "Specifies if the given environment is a one that end-users directly interact with. Default: true when environment is `production` and false otherwise. (In preview period. See README.)"
8243 }
8244 },
8245 "description": "Create a deployment. (In preview period. See README.)"
8246 },
8247 "getDeploymentStatuses": {
8248 "url": "/repos/:owner/:repo/deployments/:id/statuses",
8249 "method": "GET",
8250 "headers": {
8251 "accept": "application/vnd.github.ant-man-preview+json"
8252 },
8253 "params": {
8254 "owner": {
8255 "type": "string",
8256 "required": true
8257 },
8258 "repo": {
8259 "type": "string",
8260 "required": true
8261 },
8262 "id": {
8263 "type": "string",
8264 "required": true
8265 }
8266 },
8267 "description": "List deployment statuses. (In preview period. See README.)"
8268 },
8269 "getDeploymentStatus": {
8270 "url": "/repos/:owner/:repo/deployments/:id/statuses/:status_id",
8271 "method": "GET",
8272 "params": {
8273 "owner": {
8274 "type": "string",
8275 "required": true
8276 },
8277 "repo": {
8278 "type": "string",
8279 "required": true
8280 },
8281 "id": {
8282 "type": "string",
8283 "required": true,
8284 "description": "The Deployment ID to list the statuses from."
8285 },
8286 "status_id": {
8287 "type": "string",
8288 "required": true,
8289 "description": "The Deployment Status ID."
8290 }
8291 },
8292 "description": "List deployment statuses. (In preview period. See README.)"
8293 },
8294 "createDeploymentStatus": {
8295 "url": "/repos/:owner/:repo/deployments/:id/statuses",
8296 "method": "POST",
8297 "headers": {
8298 "accept": "application/vnd.github.ant-man-preview+json"
8299 },
8300 "params": {
8301 "owner": {
8302 "type": "string",
8303 "required": true
8304 },
8305 "repo": {
8306 "type": "string",
8307 "required": true
8308 },
8309 "id": {
8310 "type": "string",
8311 "required": true
8312 },
8313 "state": {
8314 "type": "string",
8315 "description": "The state of the status. Can be one of pending, success, error, or failure."
8316 },
8317 "target_url": {
8318 "type": "string",
8319 "default": "\"\"",
8320 "description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. Default: \"\""
8321 },
8322 "log_url": {
8323 "type": "string",
8324 "default": "\"\"",
8325 "description": "Functionally equivalent to target_url. Default: \"\". (In preview period. See README.)"
8326 },
8327 "description": {
8328 "type": "string",
8329 "default": "\"\"",
8330 "description": "A short description of the status. Default: \"\""
8331 },
8332 "environment_url": {
8333 "type": "string",
8334 "default": "\"\"",
8335 "description": "URL for accessing the deployment environment. Default: \"\". (In preview period. See README.)"
8336 },
8337 "auto_inactive": {
8338 "type": "boolean",
8339 "default": true,
8340 "description": "When true the new `inactive` status is added to all other non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. Default: true. (In preview period. See README.)"
8341 }
8342 },
8343 "description": "Create a deployment status. (In preview period. See README.)"
8344 },
8345 "getDownloads": {
8346 "url": "/repos/:owner/:repo/downloads",
8347 "method": "GET",
8348 "params": {
8349 "owner": {
8350 "type": "string",
8351 "required": true
8352 },
8353 "repo": {
8354 "type": "string",
8355 "required": true
8356 },
8357 "page": {
8358 "type": "number",
8359 "description": "Page number of the results to fetch."
8360 },
8361 "per_page": {
8362 "type": "number",
8363 "default": "30",
8364 "description": "A custom page size up to 100. Default is 30."
8365 }
8366 },
8367 "description": "List downloads for a repository."
8368 },
8369 "getDownload": {
8370 "url": "/repos/:owner/:repo/downloads/:id",
8371 "method": "GET",
8372 "params": {
8373 "owner": {
8374 "type": "string",
8375 "required": true
8376 },
8377 "repo": {
8378 "type": "string",
8379 "required": true
8380 },
8381 "id": {
8382 "type": "string",
8383 "required": true
8384 }
8385 },
8386 "description": "Get a single download."
8387 },
8388 "deleteDownload": {
8389 "url": "/repos/:owner/:repo/downloads/:id",
8390 "method": "DELETE",
8391 "params": {
8392 "owner": {
8393 "type": "string",
8394 "required": true
8395 },
8396 "repo": {
8397 "type": "string",
8398 "required": true
8399 },
8400 "id": {
8401 "type": "string",
8402 "required": true
8403 }
8404 },
8405 "description": "Delete a download."
8406 },
8407 "getForks": {
8408 "url": "/repos/:owner/:repo/forks",
8409 "method": "GET",
8410 "params": {
8411 "owner": {
8412 "type": "string",
8413 "required": true
8414 },
8415 "repo": {
8416 "type": "string",
8417 "required": true
8418 },
8419 "sort": {
8420 "type": "string",
8421 "enum": [
8422 "newest",
8423 "oldest",
8424 "stargazers"
8425 ],
8426 "default": "newest",
8427 "description": "Possible values: `newest`, `oldest`, `stargazers`, default: `newest`."
8428 },
8429 "page": {
8430 "type": "number",
8431 "description": "Page number of the results to fetch."
8432 },
8433 "per_page": {
8434 "type": "number",
8435 "default": "30",
8436 "description": "A custom page size up to 100. Default is 30."
8437 }
8438 },
8439 "description": "List forks."
8440 },
8441 "getInvites": {
8442 "url": "/repos/:owner/:repo/invitations",
8443 "method": "GET",
8444 "params": {
8445 "owner": {
8446 "type": "string",
8447 "required": true
8448 },
8449 "repo": {
8450 "type": "string",
8451 "required": true
8452 }
8453 },
8454 "description": "List invitations for a repository."
8455 },
8456 "deleteInvite": {
8457 "url": "/repos/:owner/:repo/invitations/:invitation_id",
8458 "method": "DELETE",
8459 "params": {
8460 "owner": {
8461 "type": "string",
8462 "required": true
8463 },
8464 "repo": {
8465 "type": "string",
8466 "required": true
8467 },
8468 "invitation_id": {
8469 "type": "string",
8470 "required": true
8471 }
8472 },
8473 "description": "Delete a repository invitation."
8474 },
8475 "updateInvite": {
8476 "url": "/repos/:owner/:repo/invitations/:invitation_id",
8477 "method": "PATCH",
8478 "params": {
8479 "owner": {
8480 "type": "string",
8481 "required": true
8482 },
8483 "repo": {
8484 "type": "string",
8485 "required": true
8486 },
8487 "invitation_id": {
8488 "type": "string",
8489 "required": true
8490 },
8491 "permissions": {
8492 "type": "string",
8493 "enum": [
8494 "read",
8495 "write",
8496 "admin"
8497 ],
8498 "description": "The permissions that the associated user will have on the repository."
8499 }
8500 },
8501 "description": "Update a repository invitation."
8502 },
8503 "getPages": {
8504 "url": "/repos/:owner/:repo/pages",
8505 "method": "GET",
8506 "headers": {
8507 "accept": "application/vnd.github.mister-fantastic-preview+json"
8508 },
8509 "params": {
8510 "owner": {
8511 "type": "string",
8512 "required": true
8513 },
8514 "repo": {
8515 "type": "string",
8516 "required": true
8517 },
8518 "page": {
8519 "type": "number",
8520 "description": "Page number of the results to fetch."
8521 },
8522 "per_page": {
8523 "type": "number",
8524 "default": "30",
8525 "description": "A custom page size up to 100. Default is 30."
8526 }
8527 },
8528 "description": "Get information about a Pages site. (In preview period. See README.)"
8529 },
8530 "requestPageBuild": {
8531 "url": "/repos/:owner/:repo/pages/builds",
8532 "method": "POST",
8533 "headers": {
8534 "accept": "application/vnd.github.mister-fantastic-preview+json"
8535 },
8536 "params": {
8537 "owner": {
8538 "type": "string",
8539 "required": true
8540 },
8541 "repo": {
8542 "type": "string",
8543 "required": true
8544 }
8545 },
8546 "description": "Request a page build. (In preview period. See README.)"
8547 },
8548 "getPagesBuilds": {
8549 "url": "/repos/:owner/:repo/pages/builds",
8550 "method": "GET",
8551 "headers": {
8552 "accept": "application/vnd.github.mister-fantastic-preview+json"
8553 },
8554 "params": {
8555 "owner": {
8556 "type": "string",
8557 "required": true
8558 },
8559 "repo": {
8560 "type": "string",
8561 "required": true
8562 },
8563 "page": {
8564 "type": "number",
8565 "description": "Page number of the results to fetch."
8566 },
8567 "per_page": {
8568 "type": "number",
8569 "default": "30",
8570 "description": "A custom page size up to 100. Default is 30."
8571 }
8572 },
8573 "description": "List Pages builds. (In preview period. See README.)"
8574 },
8575 "getLatestPagesBuild": {
8576 "url": "/repos/:owner/:repo/pages/builds/latest",
8577 "method": "GET",
8578 "headers": {
8579 "accept": "application/vnd.github.mister-fantastic-preview+json"
8580 },
8581 "params": {
8582 "owner": {
8583 "type": "string",
8584 "required": true
8585 },
8586 "repo": {
8587 "type": "string",
8588 "required": true
8589 }
8590 },
8591 "description": "Get latest Pages build. (In preview period. See README.)"
8592 },
8593 "getPagesBuild": {
8594 "url": "/repos/:owner/:repo/pages/builds/:id",
8595 "method": "GET",
8596 "headers": {
8597 "accept": "application/vnd.github.mister-fantastic-preview+json"
8598 },
8599 "params": {
8600 "owner": {
8601 "type": "string",
8602 "required": true
8603 },
8604 "repo": {
8605 "type": "string",
8606 "required": true
8607 },
8608 "id": {
8609 "type": "string",
8610 "required": true
8611 }
8612 },
8613 "description": "Get a specific Pages build. (In preview period. See README.)"
8614 },
8615 "getReleases": {
8616 "url": "/repos/:owner/:repo/releases",
8617 "method": "GET",
8618 "params": {
8619 "owner": {
8620 "type": "string",
8621 "required": true
8622 },
8623 "repo": {
8624 "type": "string",
8625 "required": true
8626 },
8627 "page": {
8628 "type": "number",
8629 "description": "Page number of the results to fetch."
8630 },
8631 "per_page": {
8632 "type": "number",
8633 "default": "30",
8634 "description": "A custom page size up to 100. Default is 30."
8635 }
8636 },
8637 "description": "List releases for a repository."
8638 },
8639 "getRelease": {
8640 "url": "/repos/:owner/:repo/releases/:id",
8641 "method": "GET",
8642 "params": {
8643 "owner": {
8644 "type": "string",
8645 "required": true
8646 },
8647 "repo": {
8648 "type": "string",
8649 "required": true
8650 },
8651 "id": {
8652 "type": "string",
8653 "required": true
8654 }
8655 },
8656 "description": "Get a single release."
8657 },
8658 "getLatestRelease": {
8659 "url": "/repos/:owner/:repo/releases/latest",
8660 "method": "GET",
8661 "params": {
8662 "owner": {
8663 "type": "string",
8664 "required": true
8665 },
8666 "repo": {
8667 "type": "string",
8668 "required": true
8669 }
8670 },
8671 "description": "Get the latest release."
8672 },
8673 "getReleaseByTag": {
8674 "url": "/repos/:owner/:repo/releases/tags/:tag",
8675 "method": "GET",
8676 "params": {
8677 "owner": {
8678 "type": "string",
8679 "required": true
8680 },
8681 "repo": {
8682 "type": "string",
8683 "required": true
8684 },
8685 "tag": {
8686 "type": "string",
8687 "required": true,
8688 "description": "String of the tag"
8689 }
8690 },
8691 "description": "Get a release by tag name."
8692 },
8693 "createRelease": {
8694 "url": "/repos/:owner/:repo/releases",
8695 "method": "POST",
8696 "params": {
8697 "owner": {
8698 "type": "string",
8699 "required": true
8700 },
8701 "repo": {
8702 "type": "string",
8703 "required": true
8704 },
8705 "tag_name": {
8706 "type": "string",
8707 "required": true,
8708 "description": "String of the tag"
8709 },
8710 "target_commitish": {
8711 "type": "string",
8712 "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master)."
8713 },
8714 "name": {
8715 "type": "string"
8716 },
8717 "body": {
8718 "type": "string"
8719 },
8720 "draft": {
8721 "type": "boolean",
8722 "default": "false",
8723 "description": "true to create a draft (unpublished) release, false to create a published one. Default: false"
8724 },
8725 "prerelease": {
8726 "type": "boolean",
8727 "default": "false",
8728 "description": "true to identify the release as a prerelease. false to identify the release as a full release. Default: false"
8729 }
8730 },
8731 "description": "Create a release."
8732 },
8733 "editRelease": {
8734 "url": "/repos/:owner/:repo/releases/:id",
8735 "method": "PATCH",
8736 "params": {
8737 "owner": {
8738 "type": "string",
8739 "required": true
8740 },
8741 "repo": {
8742 "type": "string",
8743 "required": true
8744 },
8745 "id": {
8746 "type": "string",
8747 "required": true
8748 },
8749 "tag_name": {
8750 "type": "string",
8751 "required": true,
8752 "description": "String of the tag"
8753 },
8754 "target_commitish": {
8755 "type": "string",
8756 "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master)."
8757 },
8758 "name": {
8759 "type": "string"
8760 },
8761 "body": {
8762 "type": "string"
8763 },
8764 "draft": {
8765 "type": "boolean",
8766 "default": "false",
8767 "description": "true to create a draft (unpublished) release, false to create a published one. Default: false"
8768 },
8769 "prerelease": {
8770 "type": "boolean",
8771 "default": "false",
8772 "description": "true to identify the release as a prerelease. false to identify the release as a full release. Default: false"
8773 }
8774 },
8775 "description": "Edit a release."
8776 },
8777 "deleteRelease": {
8778 "url": "/repos/:owner/:repo/releases/:id",
8779 "method": "DELETE",
8780 "params": {
8781 "owner": {
8782 "type": "string",
8783 "required": true
8784 },
8785 "repo": {
8786 "type": "string",
8787 "required": true
8788 },
8789 "id": {
8790 "type": "string",
8791 "required": true
8792 }
8793 },
8794 "description": "Delete a release"
8795 },
8796 "getAssets": {
8797 "url": "/repos/:owner/:repo/releases/:id/assets",
8798 "method": "GET",
8799 "params": {
8800 "owner": {
8801 "type": "string",
8802 "required": true
8803 },
8804 "repo": {
8805 "type": "string",
8806 "required": true
8807 },
8808 "id": {
8809 "type": "string",
8810 "required": true
8811 }
8812 },
8813 "description": "List assets for a release."
8814 },
8815 "uploadAsset": {
8816 "method": "POST",
8817 "url": ":url",
8818 "params": {
8819 "url": {
8820 "type": "string",
8821 "required": true,
8822 "description": "This endpoint makes use of a Hypermedia relation (https://developer.github.com/v3/#hypermedia) to determine which URL to access. This endpoint is provided by a URI template in the release's API response (https://developer.github.com/v3/repos/releases/#get-a-single-release). You need to use an HTTP client which supports SNI (https://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint."
8823 },
8824 "file": {
8825 "type": "object",
8826 "required": true,
8827 "mapTo": "input",
8828 "description": "A file read stream, a String or a Buffer."
8829 },
8830 "contentType": {
8831 "type": "string",
8832 "required": true,
8833 "mapTo": "headers.content-type",
8834 "description": "The content type of the asset. This should be set in the Header. Example: 'application/zip'. For a list of acceptable types, refer this list of media types (https://www.iana.org/assignments/media-types/media-types.xhtml)"
8835 },
8836 "contentLength": {
8837 "type": "number",
8838 "required": true,
8839 "mapTo": "headers.content-length",
8840 "description": "File size in bytes."
8841 },
8842 "name": {
8843 "type": "string",
8844 "required": true,
8845 "description": "The file name of the asset. This should be set in a URI query parameter."
8846 },
8847 "label": {
8848 "type": "string",
8849 "description": "An alternate short description of the asset. Used in place of the filename. This should be set in a URI query parameter."
8850 }
8851 },
8852 "description": "Upload a release asset."
8853 },
8854 "getAsset": {
8855 "url": "/repos/:owner/:repo/releases/assets/:id",
8856 "method": "GET",
8857 "params": {
8858 "owner": {
8859 "type": "string",
8860 "required": true
8861 },
8862 "repo": {
8863 "type": "string",
8864 "required": true
8865 },
8866 "id": {
8867 "type": "string",
8868 "required": true
8869 }
8870 },
8871 "description": "Get a single release asset."
8872 },
8873 "editAsset": {
8874 "url": "/repos/:owner/:repo/releases/assets/:id",
8875 "method": "PATCH",
8876 "params": {
8877 "owner": {
8878 "type": "string",
8879 "required": true
8880 },
8881 "repo": {
8882 "type": "string",
8883 "required": true
8884 },
8885 "id": {
8886 "type": "string",
8887 "required": true
8888 },
8889 "name": {
8890 "type": "string",
8891 "required": true
8892 },
8893 "label": {
8894 "type": "string",
8895 "description": "An alternate short description of the asset. Used in place of the filename."
8896 }
8897 },
8898 "description": "Edit a release asset."
8899 },
8900 "deleteAsset": {
8901 "url": "/repos/:owner/:repo/releases/assets/:id",
8902 "method": "DELETE",
8903 "params": {
8904 "owner": {
8905 "type": "string",
8906 "required": true
8907 },
8908 "repo": {
8909 "type": "string",
8910 "required": true
8911 },
8912 "id": {
8913 "type": "string",
8914 "required": true
8915 }
8916 },
8917 "description": "Delete a release asset."
8918 },
8919 "getStatsContributors": {
8920 "url": "/repos/:owner/:repo/stats/contributors",
8921 "method": "GET",
8922 "params": {
8923 "owner": {
8924 "type": "string",
8925 "required": true
8926 },
8927 "repo": {
8928 "type": "string",
8929 "required": true
8930 }
8931 },
8932 "description": "Get contributors list with additions, deletions, and commit counts."
8933 },
8934 "getStatsCommitActivity": {
8935 "url": "/repos/:owner/:repo/stats/commit_activity",
8936 "method": "GET",
8937 "params": {
8938 "owner": {
8939 "type": "string",
8940 "required": true
8941 },
8942 "repo": {
8943 "type": "string",
8944 "required": true
8945 }
8946 },
8947 "description": "Get the last year of commit activity data."
8948 },
8949 "getStatsCodeFrequency": {
8950 "url": "/repos/:owner/:repo/stats/code_frequency",
8951 "method": "GET",
8952 "params": {
8953 "owner": {
8954 "type": "string",
8955 "required": true
8956 },
8957 "repo": {
8958 "type": "string",
8959 "required": true
8960 }
8961 },
8962 "description": "Get the number of additions and deletions per week."
8963 },
8964 "getStatsParticipation": {
8965 "url": "/repos/:owner/:repo/stats/participation",
8966 "method": "GET",
8967 "params": {
8968 "owner": {
8969 "type": "string",
8970 "required": true
8971 },
8972 "repo": {
8973 "type": "string",
8974 "required": true
8975 }
8976 },
8977 "description": "Get the weekly commit count for the repository owner and everyone else."
8978 },
8979 "getStatsPunchCard": {
8980 "url": "/repos/:owner/:repo/stats/punch_card",
8981 "method": "GET",
8982 "params": {
8983 "owner": {
8984 "type": "string",
8985 "required": true
8986 },
8987 "repo": {
8988 "type": "string",
8989 "required": true
8990 }
8991 },
8992 "description": "Get the number of commits per hour in each day."
8993 },
8994 "createStatus": {
8995 "url": "/repos/:owner/:repo/statuses/:sha",
8996 "method": "POST",
8997 "params": {
8998 "owner": {
8999 "type": "string",
9000 "required": true
9001 },
9002 "repo": {
9003 "type": "string",
9004 "required": true
9005 },
9006 "sha": {
9007 "type": "string",
9008 "required": true
9009 },
9010 "state": {
9011 "type": "string",
9012 "required": true,
9013 "enum": [
9014 "pending",
9015 "success",
9016 "error",
9017 "failure"
9018 ],
9019 "description": "State of the status - can be one of pending, success, error, or failure."
9020 },
9021 "target_url": {
9022 "type": "string",
9023 "description": "Target url to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the ‘source’ of the Status."
9024 },
9025 "description": {
9026 "type": "string",
9027 "description": "Short description of the status."
9028 },
9029 "context": {
9030 "type": "string",
9031 "description": "A string label to differentiate this status from the status of other systems."
9032 }
9033 },
9034 "description": "Create a status."
9035 },
9036 "getStatuses": {
9037 "url": "/repos/:owner/:repo/commits/:ref/statuses",
9038 "method": "GET",
9039 "params": {
9040 "owner": {
9041 "type": "string",
9042 "required": true
9043 },
9044 "repo": {
9045 "type": "string",
9046 "required": true
9047 },
9048 "ref": {
9049 "type": "string",
9050 "required": true,
9051 "description": "Ref to list the statuses from. It can be a SHA, a branch name, or a tag name."
9052 },
9053 "page": {
9054 "type": "number",
9055 "description": "Page number of the results to fetch."
9056 },
9057 "per_page": {
9058 "type": "number",
9059 "default": "30",
9060 "description": "A custom page size up to 100. Default is 30."
9061 }
9062 },
9063 "description": "List statuses for a specfic ref."
9064 },
9065 "getCombinedStatusForRef": {
9066 "url": "/repos/:owner/:repo/commits/:ref/status",
9067 "method": "GET",
9068 "params": {
9069 "owner": {
9070 "type": "string",
9071 "required": true
9072 },
9073 "repo": {
9074 "type": "string",
9075 "required": true
9076 },
9077 "ref": {
9078 "type": "string",
9079 "required": true,
9080 "description": "Ref to fetch the status for. It can be a SHA, a branch name, or a tag name."
9081 },
9082 "page": {
9083 "type": "number",
9084 "description": "Page number of the results to fetch."
9085 },
9086 "per_page": {
9087 "type": "number",
9088 "default": "30",
9089 "description": "A custom page size up to 100. Default is 30."
9090 }
9091 },
9092 "description": "Get the combined status for a specific ref."
9093 },
9094 "getReferrers": {
9095 "url": "/repos/:owner/:repo/traffic/popular/referrers",
9096 "method": "GET",
9097 "params": {
9098 "owner": {
9099 "type": "string",
9100 "required": true
9101 },
9102 "repo": {
9103 "type": "string",
9104 "required": true
9105 },
9106 "page": {
9107 "type": "number",
9108 "description": "Page number of the results to fetch."
9109 },
9110 "per_page": {
9111 "type": "number",
9112 "default": "30",
9113 "description": "A custom page size up to 100. Default is 30."
9114 }
9115 },
9116 "description": "Get the top 10 referrers over the last 14 days."
9117 },
9118 "getPaths": {
9119 "url": "/repos/:owner/:repo/traffic/popular/paths",
9120 "method": "GET",
9121 "params": {
9122 "owner": {
9123 "type": "string",
9124 "required": true
9125 },
9126 "repo": {
9127 "type": "string",
9128 "required": true
9129 },
9130 "page": {
9131 "type": "number",
9132 "description": "Page number of the results to fetch."
9133 },
9134 "per_page": {
9135 "type": "number",
9136 "default": "30",
9137 "description": "A custom page size up to 100. Default is 30."
9138 }
9139 },
9140 "description": "Get the top 10 popular contents over the last 14 days."
9141 },
9142 "getViews": {
9143 "url": "/repos/:owner/:repo/traffic/views",
9144 "method": "GET",
9145 "params": {
9146 "owner": {
9147 "type": "string",
9148 "required": true
9149 },
9150 "repo": {
9151 "type": "string",
9152 "required": true
9153 },
9154 "page": {
9155 "type": "number",
9156 "description": "Page number of the results to fetch."
9157 },
9158 "per_page": {
9159 "type": "number",
9160 "default": "30",
9161 "description": "A custom page size up to 100. Default is 30."
9162 }
9163 },
9164 "description": "Get the total number of views and breakdown per day or week for the last 14 days."
9165 },
9166 "getClones": {
9167 "url": "/repos/:owner/:repo/traffic/clones",
9168 "method": "GET",
9169 "params": {
9170 "owner": {
9171 "type": "string",
9172 "required": true
9173 },
9174 "repo": {
9175 "type": "string",
9176 "required": true
9177 },
9178 "page": {
9179 "type": "number",
9180 "description": "Page number of the results to fetch."
9181 },
9182 "per_page": {
9183 "type": "number",
9184 "default": "30",
9185 "description": "A custom page size up to 100. Default is 30."
9186 }
9187 },
9188 "description": "Get the total number of clones and breakdown per day or week for the last 14 days."
9189 },
9190 "getHooks": {
9191 "url": "/repos/:owner/:repo/hooks",
9192 "method": "GET",
9193 "params": {
9194 "owner": {
9195 "type": "string",
9196 "required": true
9197 },
9198 "repo": {
9199 "type": "string",
9200 "required": true
9201 },
9202 "page": {
9203 "type": "number",
9204 "description": "Page number of the results to fetch."
9205 },
9206 "per_page": {
9207 "type": "number",
9208 "default": "30",
9209 "description": "A custom page size up to 100. Default is 30."
9210 }
9211 },
9212 "description": "List hooks."
9213 },
9214 "getHook": {
9215 "url": "/repos/:owner/:repo/hooks/:id",
9216 "method": "GET",
9217 "params": {
9218 "owner": {
9219 "type": "string",
9220 "required": true
9221 },
9222 "repo": {
9223 "type": "string",
9224 "required": true
9225 },
9226 "id": {
9227 "type": "string",
9228 "required": true
9229 }
9230 },
9231 "description": "Get single hook."
9232 },
9233 "createHook": {
9234 "url": "/repos/:owner/:repo/hooks",
9235 "method": "POST",
9236 "params": {
9237 "owner": {
9238 "type": "string",
9239 "required": true
9240 },
9241 "repo": {
9242 "type": "string",
9243 "required": true
9244 },
9245 "name": {
9246 "type": "string",
9247 "required": true
9248 },
9249 "config": {
9250 "type": "json",
9251 "required": true,
9252 "description": "A Hash containing key/value pairs to provide settings for this hook. These settings vary between the services and are defined in the github-services repo. Booleans are stored internally as `1` for true, and `0` for false. Any JSON true/false values will be converted automatically."
9253 },
9254 "events": {
9255 "type": "string[]",
9256 "default": "[\"push\"]",
9257 "description": "Determines what events the hook is triggered for. Default: `['push']`."
9258 },
9259 "active": {
9260 "type": "boolean",
9261 "description": "Determines whether the hook is actually triggered on pushes."
9262 }
9263 },
9264 "description": "Create a hook."
9265 },
9266 "editHook": {
9267 "url": "/repos/:owner/:repo/hooks/:id",
9268 "method": "PATCH",
9269 "params": {
9270 "owner": {
9271 "type": "string",
9272 "required": true
9273 },
9274 "repo": {
9275 "type": "string",
9276 "required": true
9277 },
9278 "id": {
9279 "type": "string",
9280 "required": true
9281 },
9282 "name": {
9283 "type": "string",
9284 "required": true
9285 },
9286 "config": {
9287 "type": "json",
9288 "required": true,
9289 "description": "A Hash containing key/value pairs to provide settings for this hook. Modifying this will replace the entire config object. These settings vary between the services and are defined in the github-services repo. Booleans are stored internally as `1` for true, and `0` for false. Any JSON true/false values will be converted automatically."
9290 },
9291 "events": {
9292 "type": "string[]",
9293 "default": "[\"push\"]",
9294 "description": "Determines what events the hook is triggered for. This replaces the entire array of events. Default: `['push']`."
9295 },
9296 "add_events": {
9297 "type": "string[]",
9298 "description": "Determines a list of events to be added to the list of events that the Hook triggers for."
9299 },
9300 "remove_events": {
9301 "type": "string[]",
9302 "description": "Determines a list of events to be removed from the list of events that the Hook triggers for."
9303 },
9304 "active": {
9305 "type": "boolean",
9306 "description": "Determines whether the hook is actually triggered on pushes."
9307 }
9308 },
9309 "description": "Edit a hook."
9310 },
9311 "testHook": {
9312 "url": "/repos/:owner/:repo/hooks/:id/tests",
9313 "method": "POST",
9314 "params": {
9315 "owner": {
9316 "type": "string",
9317 "required": true
9318 },
9319 "repo": {
9320 "type": "string",
9321 "required": true
9322 },
9323 "id": {
9324 "type": "string",
9325 "required": true
9326 }
9327 },
9328 "description": "Test a [push] hook."
9329 },
9330 "pingHook": {
9331 "url": "/repos/:owner/:repo/hooks/:id/pings",
9332 "method": "POST",
9333 "params": {
9334 "owner": {
9335 "type": "string",
9336 "required": true
9337 },
9338 "repo": {
9339 "type": "string",
9340 "required": true
9341 },
9342 "id": {
9343 "type": "string",
9344 "required": true
9345 }
9346 },
9347 "description": "Ping a hook."
9348 },
9349 "deleteHook": {
9350 "url": "/repos/:owner/:repo/hooks/:id",
9351 "method": "DELETE",
9352 "params": {
9353 "owner": {
9354 "type": "string",
9355 "required": true
9356 },
9357 "repo": {
9358 "type": "string",
9359 "required": true
9360 },
9361 "id": {
9362 "type": "string",
9363 "required": true
9364 }
9365 },
9366 "description": "Deleate a hook."
9367 }
9368 },
9369 "search": {
9370 "repos": {
9371 "url": "/search/repositories",
9372 "method": "GET",
9373 "headers": {
9374 "accept": "application/vnd.github.mercy-preview+json"
9375 },
9376 "params": {
9377 "q": {
9378 "type": "string",
9379 "required": true,
9380 "description": "Search Term"
9381 },
9382 "sort": {
9383 "type": "string",
9384 "enum": [
9385 "stars",
9386 "forks",
9387 "updated"
9388 ],
9389 "description": "stars, forks, or updated"
9390 },
9391 "order": {
9392 "type": "string",
9393 "enum": [
9394 "asc",
9395 "desc"
9396 ],
9397 "default": "desc",
9398 "description": "asc or desc"
9399 },
9400 "page": {
9401 "type": "number",
9402 "description": "Page number of the results to fetch."
9403 },
9404 "per_page": {
9405 "type": "number",
9406 "default": "30",
9407 "description": "A custom page size up to 100. Default is 30."
9408 }
9409 },
9410 "description": "Search repositories."
9411 },
9412 "code": {
9413 "url": "/search/code",
9414 "method": "GET",
9415 "params": {
9416 "q": {
9417 "type": "string",
9418 "required": true,
9419 "description": "Search Term"
9420 },
9421 "sort": {
9422 "type": "string",
9423 "enum": [
9424 "indexed"
9425 ],
9426 "description": "The sort field. Can only be indexed, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: results are sorted by best match."
9427 },
9428 "order": {
9429 "type": "string",
9430 "enum": [
9431 "asc",
9432 "desc"
9433 ],
9434 "default": "desc",
9435 "description": "asc or desc"
9436 },
9437 "page": {
9438 "type": "number",
9439 "description": "Page number of the results to fetch."
9440 },
9441 "per_page": {
9442 "type": "number",
9443 "default": "30",
9444 "description": "A custom page size up to 100. Default is 30."
9445 }
9446 },
9447 "description": "Search code."
9448 },
9449 "commits": {
9450 "url": "/search/commits",
9451 "method": "GET",
9452 "headers": {
9453 "accept": "application/vnd.github.cloak-preview+json"
9454 },
9455 "params": {
9456 "q": {
9457 "type": "string",
9458 "required": true,
9459 "description": "Search Term"
9460 },
9461 "sort": {
9462 "type": "string",
9463 "enum": [
9464 "author-date",
9465 "committer-date"
9466 ],
9467 "description": "The sort field. Can be author-date or committer-date. Default: best match."
9468 },
9469 "order": {
9470 "type": "string",
9471 "enum": [
9472 "asc",
9473 "desc"
9474 ],
9475 "default": "desc",
9476 "description": "asc or desc"
9477 },
9478 "page": {
9479 "type": "number",
9480 "description": "Page number of the results to fetch."
9481 },
9482 "per_page": {
9483 "type": "number",
9484 "default": "30",
9485 "description": "A custom page size up to 100. Default is 30."
9486 }
9487 },
9488 "description": "Search commits. (In preview period. See README.)"
9489 },
9490 "issues": {
9491 "url": "/search/issues",
9492 "method": "GET",
9493 "params": {
9494 "q": {
9495 "type": "string",
9496 "required": true,
9497 "description": "Search Term"
9498 },
9499 "sort": {
9500 "type": "string",
9501 "enum": [
9502 "comments",
9503 "created",
9504 "updated"
9505 ],
9506 "description": "The sort field. Can be comments, created, or updated. Default: results are sorted by best match."
9507 },
9508 "order": {
9509 "type": "string",
9510 "enum": [
9511 "asc",
9512 "desc"
9513 ],
9514 "default": "desc",
9515 "description": "asc or desc"
9516 },
9517 "page": {
9518 "type": "number",
9519 "description": "Page number of the results to fetch."
9520 },
9521 "per_page": {
9522 "type": "number",
9523 "default": "30",
9524 "description": "A custom page size up to 100. Default is 30."
9525 }
9526 },
9527 "description": "Search issues."
9528 },
9529 "users": {
9530 "url": "/search/users",
9531 "method": "GET",
9532 "params": {
9533 "q": {
9534 "type": "string",
9535 "required": true,
9536 "description": "Search Term"
9537 },
9538 "sort": {
9539 "type": "string",
9540 "enum": [
9541 "followers",
9542 "repositories",
9543 "joined"
9544 ],
9545 "description": "The sort field. Can be followers, repositories, or joined. Default: results are sorted by best match."
9546 },
9547 "order": {
9548 "type": "string",
9549 "enum": [
9550 "asc",
9551 "desc"
9552 ],
9553 "default": "desc",
9554 "description": "asc or desc"
9555 },
9556 "page": {
9557 "type": "number",
9558 "description": "Page number of the results to fetch."
9559 },
9560 "per_page": {
9561 "type": "number",
9562 "default": "30",
9563 "description": "A custom page size up to 100. Default is 30."
9564 }
9565 },
9566 "description": "Search users."
9567 },
9568 "email": {
9569 "url": "/legacy/user/email/:email",
9570 "method": "GET",
9571 "params": {
9572 "email": {
9573 "type": "string",
9574 "required": true,
9575 "description": "The email address"
9576 }
9577 },
9578 "description": "Search against public email addresses."
9579 }
9580 },
9581 "users": {
9582 "get": {
9583 "url": "/user",
9584 "method": "GET",
9585 "params": {},
9586 "description": "Get the authenticated user"
9587 },
9588 "update": {
9589 "url": "/user",
9590 "method": "PATCH",
9591 "params": {
9592 "name": {
9593 "type": "string",
9594 "description": "The new name of the user"
9595 },
9596 "email": {
9597 "type": "string",
9598 "description": "Publicly visible email address."
9599 },
9600 "blog": {
9601 "type": "string",
9602 "description": "The new blog URL of the user."
9603 },
9604 "company": {
9605 "type": "string",
9606 "description": "The new company of the user."
9607 },
9608 "location": {
9609 "type": "string",
9610 "description": "The new location of the user."
9611 },
9612 "hireable": {
9613 "type": "boolean",
9614 "description": "The new hiring availability of the user."
9615 },
9616 "bio": {
9617 "type": "string",
9618 "description": "The new short biography of the user."
9619 }
9620 },
9621 "description": "Update the authenticated user"
9622 },
9623 "promote": {
9624 "url": "/users/:username/site_admin",
9625 "method": "PUT",
9626 "params": {
9627 "username": {
9628 "type": "string",
9629 "required": true
9630 }
9631 },
9632 "description": "Promote an ordinary user to a site administrator"
9633 },
9634 "demote": {
9635 "url": "/users/:username/site_admin",
9636 "method": "DELETE",
9637 "params": {
9638 "username": {
9639 "type": "string",
9640 "required": true
9641 }
9642 },
9643 "description": "Demote a site administrator to an ordinary user"
9644 },
9645 "suspend": {
9646 "url": "/users/:username/suspended",
9647 "method": "PUT",
9648 "params": {
9649 "username": {
9650 "type": "string",
9651 "required": true
9652 }
9653 },
9654 "description": "Suspend a user"
9655 },
9656 "unsuspend": {
9657 "url": "/users/:username/suspended",
9658 "method": "DELETE",
9659 "params": {
9660 "username": {
9661 "type": "string",
9662 "required": true
9663 }
9664 },
9665 "description": "Unsuspend a user"
9666 },
9667 "getForUser": {
9668 "url": "/users/:username",
9669 "method": "GET",
9670 "params": {
9671 "username": {
9672 "type": "string",
9673 "required": true
9674 }
9675 },
9676 "description": "Get a single user"
9677 },
9678 "getById": {
9679 "url": "/user/:id",
9680 "method": "GET",
9681 "params": {
9682 "id": {
9683 "type": "string",
9684 "required": true,
9685 "description": "Numerical ID of the user."
9686 }
9687 },
9688 "description": "Get a single user by GitHub ID. This method uses numerical user ID. Use users.getForUser method if you need to get a user by username."
9689 },
9690 "getAll": {
9691 "url": "/users",
9692 "method": "GET",
9693 "params": {
9694 "since": {
9695 "type": "number",
9696 "description": "The integer ID of the last User that you’ve seen."
9697 }
9698 },
9699 "description": "Get all users"
9700 },
9701 "getOrgs": {
9702 "url": "/user/orgs",
9703 "method": "GET",
9704 "params": {
9705 "page": {
9706 "type": "number",
9707 "description": "Page number of the results to fetch."
9708 },
9709 "per_page": {
9710 "type": "number",
9711 "default": "30",
9712 "description": "A custom page size up to 100. Default is 30."
9713 }
9714 },
9715 "description": "List organizations for the authenticated user."
9716 },
9717 "getOrgMemberships": {
9718 "url": "/user/memberships/orgs",
9719 "method": "GET",
9720 "params": {
9721 "state": {
9722 "type": "string",
9723 "enum": [
9724 "active",
9725 "pending"
9726 ],
9727 "description": "Indicates the state of the memberships to return. Can be either active or pending. If not specified, both active and pending memberships are returned."
9728 }
9729 },
9730 "description": "List your organization memberships"
9731 },
9732 "getOrgMembership": {
9733 "url": "/user/memberships/orgs/:org",
9734 "method": "GET",
9735 "params": {
9736 "org": {
9737 "type": "string",
9738 "required": true
9739 }
9740 },
9741 "description": "Get your organization membership"
9742 },
9743 "editOrgMembership": {
9744 "url": "/user/memberships/orgs/:org",
9745 "method": "PATCH",
9746 "params": {
9747 "org": {
9748 "type": "string",
9749 "required": true
9750 },
9751 "state": {
9752 "type": "string",
9753 "required": true,
9754 "enum": [
9755 "active"
9756 ],
9757 "description": "The state that the membership should be in. Only \"active\" will be accepted."
9758 }
9759 },
9760 "description": "Edit your organization membership."
9761 },
9762 "getTeams": {
9763 "url": "/user/teams",
9764 "method": "GET",
9765 "headers": {
9766 "accept": "application/vnd.github.hellcat-preview+json"
9767 },
9768 "params": {
9769 "page": {
9770 "type": "number",
9771 "description": "Page number of the results to fetch."
9772 },
9773 "per_page": {
9774 "type": "number",
9775 "default": "30",
9776 "description": "A custom page size up to 100. Default is 30."
9777 }
9778 },
9779 "description": "Get your teams."
9780 },
9781 "getEmails": {
9782 "url": "/user/emails",
9783 "method": "GET",
9784 "params": {
9785 "page": {
9786 "type": "number",
9787 "description": "Page number of the results to fetch."
9788 },
9789 "per_page": {
9790 "type": "number",
9791 "default": "30",
9792 "description": "A custom page size up to 100. Default is 30."
9793 }
9794 },
9795 "description": "List email addresses for a user."
9796 },
9797 "getPublicEmails": {
9798 "url": "/user/public_emails",
9799 "method": "GET",
9800 "params": {
9801 "page": {
9802 "type": "number",
9803 "description": "Page number of the results to fetch."
9804 },
9805 "per_page": {
9806 "type": "number",
9807 "default": "30",
9808 "description": "A custom page size up to 100. Default is 30."
9809 }
9810 },
9811 "description": "List public email addresses for a user."
9812 },
9813 "addEmails": {
9814 "url": "/user/emails",
9815 "method": "POST",
9816 "params": {
9817 "emails": {
9818 "type": "string[]",
9819 "required": true,
9820 "mapTo": "input",
9821 "description": "You can post a single email address or an array of addresses."
9822 }
9823 },
9824 "description": "Add email address(es)."
9825 },
9826 "deleteEmails": {
9827 "url": "/user/emails",
9828 "method": "DELETE",
9829 "params": {
9830 "emails": {
9831 "type": "string[]",
9832 "required": true,
9833 "mapTo": "input",
9834 "description": "You can post a single email address or an array of addresses."
9835 }
9836 },
9837 "description": "Delete email address(es)."
9838 },
9839 "togglePrimaryEmailVisibility": {
9840 "url": "/user/email/visibility",
9841 "method": "PATCH",
9842 "params": {},
9843 "description": "Toggle primary email visibility."
9844 },
9845 "getFollowersForUser": {
9846 "url": "/users/:username/followers",
9847 "method": "GET",
9848 "params": {
9849 "username": {
9850 "type": "string",
9851 "required": true
9852 },
9853 "page": {
9854 "type": "number",
9855 "description": "Page number of the results to fetch."
9856 },
9857 "per_page": {
9858 "type": "number",
9859 "default": "30",
9860 "description": "A custom page size up to 100. Default is 30."
9861 }
9862 },
9863 "description": "List a user's followers"
9864 },
9865 "getFollowers": {
9866 "url": "/user/followers",
9867 "method": "GET",
9868 "params": {
9869 "page": {
9870 "type": "number",
9871 "description": "Page number of the results to fetch."
9872 },
9873 "per_page": {
9874 "type": "number",
9875 "default": "30",
9876 "description": "A custom page size up to 100. Default is 30."
9877 }
9878 },
9879 "description": "List the authenticated user's followers"
9880 },
9881 "getFollowingForUser": {
9882 "url": "/users/:username/following",
9883 "method": "GET",
9884 "params": {
9885 "username": {
9886 "type": "string",
9887 "required": true
9888 },
9889 "page": {
9890 "type": "number",
9891 "description": "Page number of the results to fetch."
9892 },
9893 "per_page": {
9894 "type": "number",
9895 "default": "30",
9896 "description": "A custom page size up to 100. Default is 30."
9897 }
9898 },
9899 "description": "List who a user is following"
9900 },
9901 "getFollowing": {
9902 "url": "/user/following",
9903 "method": "GET",
9904 "params": {
9905 "page": {
9906 "type": "number",
9907 "description": "Page number of the results to fetch."
9908 },
9909 "per_page": {
9910 "type": "number",
9911 "default": "30",
9912 "description": "A custom page size up to 100. Default is 30."
9913 }
9914 },
9915 "description": "List who the authenticated user is following"
9916 },
9917 "checkFollowing": {
9918 "url": "/user/following/:username",
9919 "method": "GET",
9920 "params": {
9921 "username": {
9922 "type": "string",
9923 "required": true
9924 }
9925 },
9926 "description": "Check if you are following a user"
9927 },
9928 "checkIfOneFollowersOther": {
9929 "url": "/users/:username/following/:target_user",
9930 "method": "GET",
9931 "params": {
9932 "username": {
9933 "type": "string",
9934 "required": true
9935 },
9936 "target_user": {
9937 "type": "string",
9938 "required": true
9939 }
9940 },
9941 "description": "Check if one user follows another"
9942 },
9943 "followUser": {
9944 "url": "/user/following/:username",
9945 "method": "PUT",
9946 "params": {
9947 "username": {
9948 "type": "string",
9949 "required": true
9950 }
9951 },
9952 "description": "Follow a user"
9953 },
9954 "unfollowUser": {
9955 "url": "/user/following/:username",
9956 "method": "DELETE",
9957 "params": {
9958 "username": {
9959 "type": "string",
9960 "required": true
9961 }
9962 },
9963 "description": "Unfollow a user"
9964 },
9965 "getKeysForUser": {
9966 "url": "/users/:username/keys",
9967 "method": "GET",
9968 "params": {
9969 "username": {
9970 "type": "string",
9971 "required": true
9972 },
9973 "page": {
9974 "type": "number",
9975 "description": "Page number of the results to fetch."
9976 },
9977 "per_page": {
9978 "type": "number",
9979 "default": "30",
9980 "description": "A custom page size up to 100. Default is 30."
9981 }
9982 },
9983 "description": "List public keys for a user"
9984 },
9985 "getKeys": {
9986 "url": "/user/keys",
9987 "method": "GET",
9988 "params": {
9989 "page": {
9990 "type": "number",
9991 "description": "Page number of the results to fetch."
9992 },
9993 "per_page": {
9994 "type": "number",
9995 "default": "30",
9996 "description": "A custom page size up to 100. Default is 30."
9997 }
9998 },
9999 "description": "List your public keys"
10000 },
10001 "getKey": {
10002 "url": "/user/keys/:id",
10003 "method": "GET",
10004 "params": {
10005 "id": {
10006 "type": "string",
10007 "required": true
10008 }
10009 },
10010 "description": "Get a single public key"
10011 },
10012 "createKey": {
10013 "url": "/user/keys",
10014 "method": "POST",
10015 "params": {
10016 "title": {
10017 "type": "string",
10018 "required": true
10019 },
10020 "key": {
10021 "type": "string",
10022 "required": true
10023 }
10024 },
10025 "description": "Create a public key"
10026 },
10027 "deleteKey": {
10028 "url": "/user/keys/:id",
10029 "method": "DELETE",
10030 "params": {
10031 "id": {
10032 "type": "string",
10033 "required": true
10034 }
10035 },
10036 "description": "Delete a public key"
10037 },
10038 "getGpgKeysForUser": {
10039 "url": "/users/:username/gpg_keys",
10040 "method": "GET",
10041 "headers": {
10042 "accept": "application/vnd.github.cryptographer-preview"
10043 },
10044 "params": {
10045 "username": {
10046 "type": "string",
10047 "required": true
10048 },
10049 "page": {
10050 "type": "number",
10051 "description": "Page number of the results to fetch."
10052 },
10053 "per_page": {
10054 "type": "number",
10055 "default": "30",
10056 "description": "A custom page size up to 100. Default is 30."
10057 }
10058 },
10059 "description": "Lists the GPG keys for a user. This information is accessible by anyone. (In preview period. See README.)"
10060 },
10061 "getGpgKeys": {
10062 "url": "/user/gpg_keys",
10063 "method": "GET",
10064 "headers": {
10065 "accept": "application/vnd.github.cryptographer-preview"
10066 },
10067 "params": {
10068 "page": {
10069 "type": "number",
10070 "description": "Page number of the results to fetch."
10071 },
10072 "per_page": {
10073 "type": "number",
10074 "default": "30",
10075 "description": "A custom page size up to 100. Default is 30."
10076 }
10077 },
10078 "description": "List your GPG keys. (In preview period. See README.)"
10079 },
10080 "getGpgKey": {
10081 "url": "/user/gpg_keys/:id",
10082 "method": "GET",
10083 "headers": {
10084 "accept": "application/vnd.github.cryptographer-preview"
10085 },
10086 "params": {
10087 "id": {
10088 "type": "string",
10089 "required": true
10090 }
10091 },
10092 "description": "Get a single GPG key. (In preview period. See README.)"
10093 },
10094 "createGpgKey": {
10095 "url": "/user/gpg_keys",
10096 "method": "POST",
10097 "headers": {
10098 "accept": "application/vnd.github.cryptographer-preview"
10099 },
10100 "params": {
10101 "armored_public_key": {
10102 "type": "string",
10103 "required": true,
10104 "description": "GPG key contents"
10105 }
10106 },
10107 "description": "Create a GPG key. (In preview period. See README.)"
10108 },
10109 "deleteGpgKey": {
10110 "url": "/user/gpg_keys/:id",
10111 "method": "DELETE",
10112 "headers": {
10113 "accept": "application/vnd.github.cryptographer-preview"
10114 },
10115 "params": {
10116 "id": {
10117 "type": "string",
10118 "required": true
10119 }
10120 },
10121 "description": "Delete a GPG key. (In preview period. See README.)"
10122 },
10123 "getBlockedUsers": {
10124 "url": "/user/blocks",
10125 "method": "GET",
10126 "headers": {
10127 "accept": "application/vnd.github.giant-sentry-fist-preview+json"
10128 },
10129 "params": {},
10130 "description": "List blocked users. (In preview period. See README.)"
10131 },
10132 "checkBlockedUser": {
10133 "url": "/user/blocks/:username",
10134 "method": "GET",
10135 "headers": {
10136 "accept": "application/vnd.github.giant-sentry-fist-preview+json"
10137 },
10138 "params": {
10139 "username": {
10140 "type": "string",
10141 "required": true
10142 }
10143 },
10144 "description": "Check whether you've blocked a user. (In preview period. See README.)"
10145 },
10146 "blockUser": {
10147 "url": "/user/blocks/:username",
10148 "method": "PUT",
10149 "headers": {
10150 "accept": "application/vnd.github.giant-sentry-fist-preview+json"
10151 },
10152 "params": {
10153 "username": {
10154 "type": "string",
10155 "required": true
10156 }
10157 },
10158 "description": "Block a user. (In preview period. See README.)"
10159 },
10160 "unblockUser": {
10161 "url": "/user/blocks/:username",
10162 "method": "DELETE",
10163 "headers": {
10164 "accept": "application/vnd.github.giant-sentry-fist-preview+json"
10165 },
10166 "params": {
10167 "username": {
10168 "type": "string",
10169 "required": true
10170 }
10171 },
10172 "description": "Unblock a user. (In preview period. See README.)"
10173 },
10174 "getRepoInvites": {
10175 "url": "/user/repository_invitations",
10176 "method": "GET",
10177 "params": {},
10178 "description": "List a user's repository invitations."
10179 },
10180 "acceptRepoInvite": {
10181 "url": "/user/repository_invitations/:invitation_id",
10182 "method": "PATCH",
10183 "params": {
10184 "invitation_id": {
10185 "type": "string",
10186 "required": true
10187 }
10188 },
10189 "description": "Accept a repository invitation."
10190 },
10191 "declineRepoInvite": {
10192 "url": "/user/repository_invitations/:invitation_id",
10193 "method": "DELETE",
10194 "params": {
10195 "invitation_id": {
10196 "type": "string",
10197 "required": true
10198 }
10199 },
10200 "description": "Decline a repository invitation."
10201 },
10202 "getInstallations": {
10203 "url": "/user/installations",
10204 "method": "GET",
10205 "headers": {
10206 "accept": "application/vnd.github.machine-man-preview"
10207 },
10208 "params": {
10209 "page": {
10210 "type": "number",
10211 "description": "Page number of the results to fetch."
10212 },
10213 "per_page": {
10214 "type": "number",
10215 "default": "30",
10216 "description": "A custom page size up to 100. Default is 30."
10217 }
10218 },
10219 "description": "List installations. (In preview period. See README.)"
10220 },
10221 "getInstallationRepos": {
10222 "url": "/user/installations/:installation_id/repositories",
10223 "method": "GET",
10224 "params": {
10225 "installation_id": {
10226 "type": "string",
10227 "required": true
10228 },
10229 "page": {
10230 "type": "number",
10231 "description": "Page number of the results to fetch."
10232 },
10233 "per_page": {
10234 "type": "number",
10235 "default": "30",
10236 "description": "A custom page size up to 100. Default is 30."
10237 }
10238 },
10239 "description": "List repositories accessible to the user for an installation. (In preview period. See README.)"
10240 },
10241 "addRepoToInstallation": {
10242 "url": "/user/installations/:installation_id/repositories/:repository_id",
10243 "method": "PUT",
10244 "headers": {
10245 "accept": "application/vnd.github.machine-man-preview"
10246 },
10247 "params": {
10248 "installation_id": {
10249 "type": "string",
10250 "required": true
10251 },
10252 "repository_id": {
10253 "type": "string",
10254 "required": true
10255 }
10256 },
10257 "description": "Add a single repository to an installation. (In preview period. See README.)"
10258 },
10259 "removeRepoFromInstallation": {
10260 "url": "/user/installations/:installation_id/repositories/:repository_id",
10261 "method": "DELETE",
10262 "headers": {
10263 "accept": "application/vnd.github.machine-man-preview"
10264 },
10265 "params": {
10266 "installation_id": {
10267 "type": "string",
10268 "required": true
10269 },
10270 "repository_id": {
10271 "type": "string",
10272 "required": true
10273 }
10274 },
10275 "description": "Remove a single repository from an installation. (In preview period. See README.)"
10276 },
10277 "getMarketplacePurchases": {
10278 "url": "/user/marketplace_purchases",
10279 "method": "GET",
10280 "headers": {
10281 "accept": "application/vnd.github.valkyrie-preview+json"
10282 },
10283 "params": {
10284 "page": {
10285 "type": "number",
10286 "description": "Page number of the results to fetch."
10287 },
10288 "per_page": {
10289 "type": "number",
10290 "default": "30",
10291 "description": "A custom page size up to 100. Default is 30."
10292 }
10293 },
10294 "description": "Get a user's Marketplace purchases. (In preview period. See README.)"
10295 },
10296 "getMarketplaceStubbedPurchases": {
10297 "url": "/user/marketplace_purchases/stubbed",
10298 "method": "GET",
10299 "headers": {
10300 "accept": "application/vnd.github.valkyrie-preview+json"
10301 },
10302 "params": {
10303 "page": {
10304 "type": "number",
10305 "description": "Page number of the results to fetch."
10306 },
10307 "per_page": {
10308 "type": "number",
10309 "default": "30",
10310 "description": "A custom page size up to 100. Default is 30."
10311 }
10312 },
10313 "description": "Get a user's stubbed Marketplace purchases. (In preview period. See README.)"
10314 }
10315 },
10316 "enterprise": {
10317 "stats": {
10318 "url": "/enterprise/stats/:type",
10319 "method": "GET",
10320 "params": {
10321 "type": {
10322 "type": "string",
10323 "required": true,
10324 "enum": [
10325 "issues",
10326 "hooks",
10327 "milestones",
10328 "orgs",
10329 "comments",
10330 "pages",
10331 "users",
10332 "gists",
10333 "pulls",
10334 "repos",
10335 "all"
10336 ],
10337 "description": "Possible values: issues, hooks, milestones, orgs, comments, pages, users, gists, pulls, repos, all."
10338 }
10339 },
10340 "description": "Get statistics."
10341 },
10342 "updateLdapForUser": {
10343 "url": "/admin/ldap/users/:username/mapping",
10344 "method": "PATCH",
10345 "params": {
10346 "username": {
10347 "type": "string",
10348 "required": true
10349 },
10350 "ldap_dn": {
10351 "type": "string",
10352 "required": true,
10353 "description": "LDAP DN for user"
10354 }
10355 },
10356 "description": "Update LDAP mapping for a user."
10357 },
10358 "syncLdapForUser": {
10359 "url": "/admin/ldap/users/:username/sync",
10360 "method": "POST",
10361 "params": {
10362 "username": {
10363 "type": "string",
10364 "required": true
10365 }
10366 },
10367 "description": "Sync LDAP mapping for a user."
10368 },
10369 "updateLdapForTeam": {
10370 "url": "/admin/ldap/teams/:team_id/mapping",
10371 "method": "PATCH",
10372 "params": {
10373 "team_id": {
10374 "type": "number",
10375 "required": true
10376 },
10377 "ldap_dn": {
10378 "type": "string",
10379 "required": true,
10380 "description": "LDAP DN for user"
10381 }
10382 },
10383 "description": "Update LDAP mapping for a team."
10384 },
10385 "syncLdapForTeam": {
10386 "url": "/admin/ldap/teams/:team_id/sync",
10387 "method": "POST",
10388 "params": {
10389 "team_id": {
10390 "type": "number",
10391 "required": true
10392 }
10393 },
10394 "description": "Sync LDAP mapping for a team."
10395 },
10396 "getLicense": {
10397 "url": "/enterprise/settings/license",
10398 "method": "GET",
10399 "params": {},
10400 "description": "Get license information"
10401 },
10402 "getPreReceiveEnvironment": {
10403 "url": "/admin/pre-receive-environments/:id",
10404 "method": "GET",
10405 "headers": {
10406 "accept": "application/vnd.github.eye-scream-preview"
10407 },
10408 "params": {
10409 "id": {
10410 "type": "string",
10411 "required": true
10412 }
10413 },
10414 "description": "Get a single pre-receive environment. (In preview period. See README.)"
10415 },
10416 "getPreReceiveEnvironments": {
10417 "url": "/admin/pre_receive_environments",
10418 "method": "GET",
10419 "headers": {
10420 "accept": "application/vnd.github.eye-scream-preview"
10421 },
10422 "params": {},
10423 "description": "List pre-receive environments. (In preview period. See README.)"
10424 },
10425 "createPreReceiveEnvironment": {
10426 "url": "/admin/pre_receive_environments",
10427 "method": "POST",
10428 "headers": {
10429 "accept": "application/vnd.github.eye-scream-preview"
10430 },
10431 "params": {
10432 "name": {
10433 "type": "string",
10434 "required": true,
10435 "description": "The new pre-receive environment's name."
10436 },
10437 "image_url": {
10438 "type": "string",
10439 "required": true,
10440 "description": "URL from which to download a tarball of this environment."
10441 }
10442 },
10443 "description": "Create a pre-receive environment. (In preview period. See README.)"
10444 },
10445 "editPreReceiveEnvironment": {
10446 "url": "/admin/pre_receive_environments/:id",
10447 "method": "PATCH",
10448 "params": {
10449 "id": {
10450 "type": "string",
10451 "required": true
10452 },
10453 "name": {
10454 "type": "string",
10455 "required": true,
10456 "description": "This pre-receive environment's new name."
10457 },
10458 "image_url": {
10459 "type": "string",
10460 "required": true,
10461 "description": "URL from which to download a tarball of this environment."
10462 }
10463 },
10464 "description": "Create a pre-receive environment. (In preview period. See README.)"
10465 },
10466 "deletePreReceiveEnvironment": {
10467 "url": "/admin/pre_receive_environments/:id",
10468 "method": "DELETE",
10469 "params": {
10470 "id": {
10471 "type": "string",
10472 "required": true
10473 }
10474 },
10475 "description": "Delete a pre-receive environment. (In preview period. See README.)"
10476 },
10477 "getPreReceiveEnvironmentDownloadStatus": {
10478 "url": "/admin/pre-receive-environments/:id/downloads/latest",
10479 "method": "GET",
10480 "headers": {
10481 "accept": "application/vnd.github.eye-scream-preview"
10482 },
10483 "params": {
10484 "id": {
10485 "type": "string",
10486 "required": true
10487 }
10488 },
10489 "description": "Get a pre-receive environment's download status. (In preview period. See README.)"
10490 },
10491 "triggerPreReceiveEnvironmentDownload": {
10492 "url": "/admin/pre_receive_environments/:id/downloads",
10493 "method": "POST",
10494 "headers": {
10495 "accept": "application/vnd.github.eye-scream-preview"
10496 },
10497 "params": {
10498 "id": {
10499 "type": "string",
10500 "required": true
10501 }
10502 },
10503 "description": "Trigger a pre-receive environment download. (In preview period. See README.)"
10504 },
10505 "getPreReceiveHook": {
10506 "url": "/admin/pre-receive-hooks/:id",
10507 "method": "GET",
10508 "headers": {
10509 "accept": "application/vnd.github.eye-scream-preview"
10510 },
10511 "params": {
10512 "id": {
10513 "type": "string",
10514 "required": true
10515 }
10516 },
10517 "description": "Get a single pre-receive hook. (In preview period. See README.)"
10518 },
10519 "getPreReceiveHooks": {
10520 "url": "/admin/pre-receive-hooks",
10521 "method": "GET",
10522 "headers": {
10523 "accept": "application/vnd.github.eye-scream-preview"
10524 },
10525 "params": {},
10526 "description": "List pre-receive hooks. (In preview period. See README.)"
10527 },
10528 "createPreReceiveHook": {
10529 "url": "/admin/pre-receive-hooks",
10530 "method": "POST",
10531 "headers": {
10532 "accept": "application/vnd.github.eye-scream-preview"
10533 },
10534 "params": {
10535 "name": {
10536 "type": "string",
10537 "required": true,
10538 "description": "The name of the hook."
10539 },
10540 "script": {
10541 "type": "string",
10542 "required": true,
10543 "description": "The script that the hook runs."
10544 },
10545 "script_repository": {
10546 "type": "json",
10547 "required": true,
10548 "description": "The GitHub repository where the script is kept."
10549 },
10550 "environment": {
10551 "type": "json",
10552 "required": true,
10553 "description": "The pre-receive environment where the script is executed."
10554 },
10555 "enforcement": {
10556 "type": "string",
10557 "default": "disabled",
10558 "description": "The state of enforcement for this hook. default: disabled"
10559 },
10560 "allow_downstream_configuration": {
10561 "type": "boolean",
10562 "default": "false",
10563 "description": "Whether enforcement can be overridden at the org or repo level. default: false"
10564 }
10565 },
10566 "description": "Create a pre-receive hook. (In preview period. See README.)"
10567 },
10568 "editPreReceiveHook": {
10569 "url": "/admin/pre_receive_hooks/:id",
10570 "method": "PATCH",
10571 "params": {
10572 "id": {
10573 "type": "string",
10574 "required": true
10575 },
10576 "hook": {
10577 "type": "json",
10578 "required": true,
10579 "mapTo": "input",
10580 "description": "JSON object that contains pre-receive hook info."
10581 }
10582 },
10583 "description": "Edit a pre-receive hook. (In preview period. See README.)"
10584 },
10585 "deletePreReceiveHook": {
10586 "url": "/admin/pre_receive_hooks/:id",
10587 "method": "DELETE",
10588 "params": {
10589 "id": {
10590 "type": "string",
10591 "required": true
10592 }
10593 },
10594 "description": "Delete a pre-receive hook. (In preview period. See README.)"
10595 },
10596 "queueIndexingJob": {
10597 "url": "/staff/indexing_jobs",
10598 "method": "POST",
10599 "params": {
10600 "target": {
10601 "type": "string",
10602 "required": true,
10603 "description": "A string representing the item to index."
10604 }
10605 },
10606 "description": "Queue an indexing job"
10607 },
10608 "createOrg": {
10609 "url": "/admin/organizations",
10610 "method": "POST",
10611 "params": {
10612 "login": {
10613 "type": "string",
10614 "required": true,
10615 "description": "The organization's username."
10616 },
10617 "admin": {
10618 "type": "string",
10619 "required": true,
10620 "description": "The login of the user who will manage this organization."
10621 },
10622 "profile_name": {
10623 "type": "string",
10624 "description": "The organization's display name."
10625 }
10626 },
10627 "description": "Create an organization"
10628 }
10629 }
10630}