VCMI assistant

VCMI assistant · Actions GPT

GitHub Issues API

  • POST /repos/{owner}/{repo}/issuesCreate an issue
Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "GitHub Issues API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.github.com"
    }
  ],
  "paths": {
    "/repos/{owner}/{repo}/issues": {
      "post": {
        "operationId": "createGitIssue",
        "summary": "Create an issue",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewIssue"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Issue created successfully"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "NewIssue": {
        "type": "object",
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "assignees": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "milestone": {
            "type": "integer"
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}