> ## Documentation Index
> Fetch the complete documentation index at: https://docs.patch.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# What Patch's review of a change request says

> Claude Opus reads what a request changes, once for each commit its branch gets to, when it's stayed put for a couple of minutes, and says what it does and anything harmful or undisclosed in it. It's advice for the repo's owner: it stops nothing, and what's copied is read by itself. This says what it made of the request's latest commit. It reads like the request itself, for whoever can read the repo's source. A request from one of the repo's own branches is never read, and its `status` is `none`.



## OpenAPI

````yaml /api-reference/openapi.json get /projects/{owner}/{slug}/change-requests/{number}/review
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /projects/{owner}/{slug}/change-requests/{number}/review:
    get:
      tags:
        - Change requests
      summary: What Patch's review of a change request says
      description: >-
        Claude Opus reads what a request changes, once for each commit its
        branch gets to, when it's stayed put for a couple of minutes, and says
        what it does and anything harmful or undisclosed in it. It's advice for
        the repo's owner: it stops nothing, and what's copied is read by itself.
        This says what it made of the request's latest commit. It reads like the
        request itself, for whoever can read the repo's source. A request from
        one of the repo's own branches is never read, and its `status` is
        `none`.
      parameters:
        - schema:
            type: string
            example: patch
          required: true
          name: owner
          in: path
        - schema:
            type: string
            example: demo-mod
          required: true
          name: slug
          in: path
        - schema:
            type: integer
            minimum: 1
            example: 12
          required: true
          name: number
          in: path
      responses:
        '200':
          description: The review
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChangeRequestReview'
        '308':
          description: Renamed; follow the Location header
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Not signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ChangeRequestReview:
      type: object
      properties:
        head_commit:
          type: string
          description: 'The commit this is about: its latest.'
        status:
          type: string
          enum:
            - none
            - waiting
            - running
            - done
            - failed
          description: >-
            `waiting` for its turn, usually a few minutes, `running`, `done`, or
            `failed` when nothing could be read. `none` when no review is
            coming: the request or the repo has closed, it's from one of the
            repo's own branches, which Patch's review doesn't read, or there's
            no reviewer here.
        summary:
          type:
            - string
            - 'null'
          description: What the change does, and whether that's what it says it does.
        findings:
          type: array
          items:
            $ref: '#/components/schemas/Finding'
          description: >-
            `PA-320`: something harmful, or that it doesn't disclose. `PA-321`:
            code it couldn't read. `PA-322`: it couldn't finish, or couldn't
            read everything. They're advice: none of them stops a merge.
        failure:
          type:
            - string
            - 'null'
          description: Why nothing could be read, for the repo's org.
        requested_at:
          type:
            - string
            - 'null'
          format: date-time
        finished_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - head_commit
        - status
        - summary
        - findings
        - failure
        - requested_at
        - finished_at
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: version_exists
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
    Finding:
      type: object
      properties:
        rule_id:
          type: string
          example: PA-130
        severity:
          type: string
          enum:
            - blocking
            - warning
            - info
        path:
          type:
            - string
            - 'null'
          description: The file it's about, if any
        message:
          type: string
        suggestion:
          type:
            - string
            - 'null'
          description: What to change
        url:
          type:
            - string
            - 'null'
          description: A page with more about it, such as a malware scan's report
      required:
        - rule_id
        - severity
        - path
        - message
        - suggestion
        - url

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.