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

# Get Pull Request

> Fetch a single pull request along with its current merge status.

Augments the stored PR with live computed fields: whether it can be
merged right now (fast-forward check), a reason string if it cannot,
and how many commits the source branch is ahead of the target. Those
fields are re-derived on each call so the UI always reflects current
branch state.

`pr_number` is the per-node PR number (not the internal UUID).



## OpenAPI

````yaml get /orgs/{org_id}/nodes/{node_id}/pull-requests/{pr_number}
openapi: 3.1.0
info:
  title: Flow API
  description: Content-addressing backend with Git-like versioning
  version: 1.0.0
servers:
  - url: https://api.yertle.com
    description: Production
security: []
paths:
  /orgs/{org_id}/nodes/{node_id}/pull-requests/{pr_number}:
    get:
      tags:
        - pull-requests
      summary: Get Pull Request
      description: |-
        Fetch a single pull request along with its current merge status.

        Augments the stored PR with live computed fields: whether it can be
        merged right now (fast-forward check), a reason string if it cannot,
        and how many commits the source branch is ahead of the target. Those
        fields are re-derived on each call so the UI always reflects current
        branch state.

        `pr_number` is the per-node PR number (not the internal UUID).
      operationId: >-
        get_pull_request_orgs__org_id__nodes__node_id__pull_requests__pr_number__get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
        - name: node_id
          in: path
          required: true
          schema:
            type: string
            title: Node Id
        - name: pr_number
          in: path
          required: true
          schema:
            type: integer
            title: Pr Number
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PRDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PRDetailResponse:
      properties:
        pr:
          $ref: '#/components/schemas/PullRequestResponse'
          description: Pull request details
      type: object
      required:
        - pr
      title: PRDetailResponse
      description: Detailed response for a single pull request.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PullRequestResponse:
      properties:
        id:
          type: string
          title: Id
          description: PR unique identifier
        node_id:
          type: string
          title: Node Id
          description: Node this PR belongs to
        number:
          type: integer
          title: Number
          description: PR number
        title:
          type: string
          title: Title
          description: PR title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: PR description
        source_branch:
          type: string
          title: Source Branch
          description: Source branch name
        target_branch:
          type: string
          title: Target Branch
          description: Target branch name
        source_commit:
          type: string
          title: Source Commit
          description: Source commit ID
        target_commit:
          type: string
          title: Target Commit
          description: Target commit ID
        status:
          type: string
          title: Status
          description: PR status (open, merged, closed)
        is_draft:
          type: boolean
          title: Is Draft
          description: Whether PR is draft
        author:
          type: string
          title: Author
          description: PR author
        author_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Author Email
          description: Author email address
        merged_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Merged By
          description: Who merged the PR
        merged_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Merged By Email
          description: Merger email address
        closed_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Closed By
          description: Who closed the PR
        closed_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Closed By Email
          description: Closer email address
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When PR was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When PR was last updated
        merged_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Merged At
          description: When PR was merged
        closed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Closed At
          description: When PR was closed
        can_merge:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Can Merge
          description: Whether PR can be merged now
        merge_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Merge Reason
          description: Reason if cannot merge
        commits_ahead:
          anyOf:
            - type: integer
            - type: 'null'
          title: Commits Ahead
          description: Commits ahead of target branch
      type: object
      required:
        - id
        - node_id
        - number
        - title
        - source_branch
        - target_branch
        - source_commit
        - target_commit
        - status
        - is_draft
        - author
        - created_at
        - updated_at
      title: PullRequestResponse
      description: Response model for pull request data.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````