-
Notifications
You must be signed in to change notification settings - Fork 16
/
gh-plugin.teammait.com.yaml
59 lines (59 loc) · 1.91 KB
/
gh-plugin.teammait.com.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
openapi: 3.0.1
info:
title: ChatGPT Plugin
description: Plugin that integrates with GitHub to retrieve user information and repositories. Used to search for trending repositories, code, issues, pull requests, and more. Users should be able to use this plugin to interact with GitHub in a conversational way.
version: "v1"
servers:
- url: https://gh-plugin.teammait.com
paths:
/api/repo:
post:
operationId: callOctokitMethod
summary: Make a dynamic API call to the Octokit JS library to Github. Provide valid octokitMethod and args {} in the request body.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
octokitMethod:
type: string
description: The valid Octokit method to call in the format `category.method`, e.g., issues.listForRepo, repos.get, search.repos, search.code, issues.list, repos.listForks, etc.
required: true
args:
$ref: "#/components/schemas/flexibleObject"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/errorResponse"
"404":
description: Not Found
content:
application/json:
schema:
$ref: "#/components/schemas/errorResponse"
components:
schemas:
errorResponse:
type: object
properties:
error:
type: string
description: The error message
required:
- error
flexibleObject:
type: object
nullable: true
additionalProperties: true