capability_id: issue.update
version: "1.0.0"
description: Update issue title and/or body.
input_schema:
  type: object
  required: [owner, name, issueNumber]
  properties:
    owner: { type: string, minLength: 1 }
    name: { type: string, minLength: 1 }
    issueNumber: { type: integer, minimum: 1 }
    title: { type: string }
    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: IssueUpdate
  operationType: mutation
  documentPath: src/gql/operations/issue-update.graphql
  resolution:
    lookup:
      operationName: IssueNodeIdLookup
      documentPath: src/gql/operations/issue-node-id-lookup.graphql
      vars:
        owner: owner
        name: name
        issueNumber: issueNumber
    inject:
      - target: issueId
        source: scalar
        path: repository.issue.id
