Skip to content
Navigation

getRepoChangeRequest

Read a change request by its number, with its comments, change counts, and CI status.

GET
/repos/{repo_id}/change-requests/{number}

Path parameters

  • repo_id
    string
    required
    pattern: ^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • number
    string
    required
    pattern: ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$

Returns

200

ChangeRequestDetails

JSON
  • id
    string
    required
    pattern: ^change_request_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • number
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • base_commit_id
    string
    required
    pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • head_commit_id
    string
    required
    pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • merge_commit_id
    required

    One of the following:

    • CommitId
    • null
  • title
    string
    required
    minLength: 1
  • description
    required

    One of the following:

    • string
    • null
  • created_at
    string
    required
  • closed_at
    required

    One of the following:

    • string
    • null
  • merged_at
    required

    One of the following:

    • string
    • null
  • branch
    object
    required
    • id
      string
      required
      pattern: ^branch_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • name
      string
      required
      minLength: 1
    • head_commit_id
      string
      required
      pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • base_commit_id
      string
      required
      pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • deleted_at
      required

      One of the following:

      • string
      • null
  • base_branch
    object
    required
    • id
      string
      required
      pattern: ^branch_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • name
      string
      required
      minLength: 1
    • head_commit_id
      string
      required
      pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • base_commit_id
      string
      required
      pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • deleted_at
      required

      One of the following:

      • string
      • null
  • author
    object
    required
    • id
      string
      required
      minLength: 1
    • display_name
      required

      One of the following:

      • string
      • null
  • closed_by
    required

    One of the following:

    • CommitAuthor
      • id
        string
        required
        minLength: 1
      • display_name
        required

        One of the following:

        • string
        • null
    • null
  • merged_by
    required

    One of the following:

    • CommitAuthor
      • id
        string
        required
        minLength: 1
      • display_name
        required

        One of the following:

        • string
        • null
    • null
  • status
    open
    or
    merged
    or
    closed
    required
  • merge_commit
    required

    One of the following:

    • Commit
      • id
        string
        required
        pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
      • parent_id
        required

        One of the following:

        • CommitId
        • null
      • merge_parent_id
        required

        One of the following:

        • CommitId
        • null
      • message
        string
        required
        minLength: 1
      • created_at
        string
        required
      • author
        object
        required
        • id
          string
          required
          minLength: 1
        • display_name
          required

          One of the following:

          • string
          • null
      • co_authors
        array of
        object
        required
        • id
          string
          required
          minLength: 1
        • display_name
          required

          One of the following:

          • string
          • null
    • null
  • comments
    array of
    object
    required
    • id
      string
      required
      pattern: ^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • author
      object
      required
      • id
        string
        required
        minLength: 1
    • body
      string
      required
      minLength: 1
  • change_counts
    object
    required
    • added
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • modified
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • removed
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • changed_extensions
    array of
    string
    required
    maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
  • ci
    object
    required
    • status
      green
      or
      red
      required
    • pending
      boolean
      required
    • runs
      array of
      object
      required
      • id
        string
        required
        pattern: ^ci_run_[0-7][0-9a-hjkmnp-tv-z]{25}$
      • ci_check_record_id
        string
        required
        pattern: ^ci_check_[0-7][0-9a-hjkmnp-tv-z]{25}$
      • commit_id
        string
        required
        pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
      • status
        passed
        or
        failed
        or
        errored
        required
      • error_message
        required

        One of the following:

        • string
        • null
      • forge_version
        string
        required
        minLength: 1
      • started_at
        string
        required
      • finished_at
        string
        required
      • findings
        array of
        object
        required
        • id
          string
          required
          pattern: ^ci_finding_[0-7][0-9a-hjkmnp-tv-z]{25}$
        • key
          string
          required
          minLength: 1
        • message
          string
          required
          minLength: 1
        • target_record_id
          required

          One of the following:

          • TypeId
          • null
        • target_field_key
          required

          One of the following:

          • string
          • null
      • name
        string
        required
        minLength: 1
      • severity
        required
        or
        advisory
        required
    • blocking
      array of
      object
      required
      • ci_check_record_id
        string
        required
        pattern: ^ci_check_[0-7][0-9a-hjkmnp-tv-z]{25}$
      • name
        string
        required
        minLength: 1
      • severity
        required
        or
        advisory
        required
      • status
        required

        One of the following:

        • CIRunStatus
        • null
      • error_message
        required

        One of the following:

        • string
        • null
      • finding_count
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991

400

InvalidRequest
JSON
  • _tag
    InvalidRequest
    required
  • part
    path
    or
    query
    or
    headers
    or
    body
    required
  • issues
    array of
    object
    required
    • path
      array of
      required

      One of the following:

      • string
      • integer
    • message
      string
      required

401

InvalidCredentials
JSON
  • _tag
    InvalidCredentials
    required

403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON

One of the following:

  • ForbiddenEncoded
    • _tag
      Forbidden
      required
    • message
      string
      required
  • ForbiddenOriginEncoded
    • _tag
      ForbiddenOrigin
      required
  • RequiresPersonalSessionEncoded
    • _tag
      RequiresPersonalSession
      required
  • RunBranchRequiredEncoded
    • _tag
      RunBranchRequired
      required
    • branch
      string
      required
      minLength: 1
    • message
      string
      required

404

ChangeRequestNotFound | RepoNotFound
JSON

One of the following:

  • ChangeRequestNotFoundEncoded
    • _tag
      ChangeRequestNotFound
      required
    • number
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • RepoNotFoundEncoded
    • _tag
      RepoNotFound
      required

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

RepoFailure
JSON
  • _tag
    RepoFailure
    required
  • reason
    string
    required

503

SessionUnavailable | RateLimitUnavailable
JSON

One of the following:

  • SessionUnavailableEncoded
    • _tag
      SessionUnavailable
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close