capability_id: issue.create
version: "1.0.0"
description: Create a new issue.
input_schema:
  type: object
  required: [owner, name, title]
  properties:
    owner: { type: string, minLength: 1 }
    name: { type: string, minLength: 1 }
    title: { type: string, minLength: 1 }
    body: { type: string }
  additionalProperties: false
output_schema:
  type: object
  required: [id, number]
  properties:
    id: { type: string, minLength: 1 }
    number: { type: integer, minimum: 1 }
    title: { type: string }
    state: { type: string }
    url: { type: string, minLength: 1 }
  additionalProperties: false
routing:
  preferred: graphql
  fallbacks: []
graphql:
  operationName: IssueCreate
  operationType: mutation
  documentPath: src/gql/operations/issue-create.graphql
  resolution:
    lookup:
      operationName: IssueCreateRepositoryId
      documentPath: src/gql/operations/issue-create-repository-id.graphql
      vars:
        owner: owner
        name: name
    inject:
      - target: repositoryId
        source: scalar
        path: repository.id
