GitHub · Capability

GitHub Repos API — Pull

GitHub Repos API — Pull. 32 operations. Lead operation: Get Pull Request Review Protection. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubPull

What You Can Do

GET
Getpullrequestreviewprotection — Get Pull Request Review Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews
PATCH
Updatepullrequestreviewprotection — Update Pull Request Review Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews
DELETE
Deletepullrequestreviewprotection — Delete Pull Request Review Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews
GET
Listpullrequestsassociatedwithcommit — List Pull Requests Associated With Commit
/v1/repos/{owner}/{repo}/commits/{commit-sha}/pulls
GET
Listpullrequests — List Pull Requests
/v1/repos/{owner}/{repo}/pulls
POST
Createpullrequest — Create Pull Request
/v1/repos/{owner}/{repo}/pulls
GET
Getreviewcommentforpullrequest — Get Review Comment For Pull Request
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
PATCH
Updatereviewcommentforpullrequest — Update Review Comment For Pull Request
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
DELETE
Deletereviewcommentforpullrequest — Delete Review Comment For Pull Request
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
GET
Listreactionsforpullrequestreviewcomment — List Reactions For Pull Request Review Comment
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions
POST
Createreactionforpullrequestreviewcomment — Create Reaction For Pull Request Review Comment
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions
DELETE
Deletepullrequestcommentreaction — Delete Pull Request Comment Reaction
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions/{reaction-id}
GET
Getpullrequest — Get Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}
PATCH
Updatepullrequest — Update Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}
GET
Listreviewcommentsonpullrequest — List Review Comments On Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/comments
POST
Createreviewcommentforpullrequest — Create Review Comment For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/comments
GET
Listcommitsonpullrequest — List Commits On Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/commits
GET
Listpullrequestsfiles — List Pull Requests Files
/v1/repos/{owner}/{repo}/pulls/{pull-number}/files
GET
Checkifpullrequesthasbeenmerged — Check If Pull Request Has Been Merged
/v1/repos/{owner}/{repo}/pulls/{pull-number}/merge
PUT
Mergepullrequest — Merge Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/merge
GET
Getallrequestedreviewersforpullrequest — Get All Requested Reviewers For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/requested-reviewers
POST
Requestreviewersforpullrequest — Request Reviewers For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/requested-reviewers
DELETE
Removerequestedreviewersfrompullrequest — Remove Requested Reviewers From Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/requested-reviewers
GET
Listreviewsforpullrequest — List Reviews For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews
POST
Createreviewforpullrequest — Create Review For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews
GET
Getreviewforpullrequest — Get Review For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}
PUT
Updatereviewforpullrequest — Update Review For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}
DELETE
Deletependingreviewforpullrequest — Delete Pending Review For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}
GET
Listcommentsforpullrequestreview — List Comments For Pull Request Review
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}/comments
PUT
Dismissreviewforpullrequest — Dismiss Review For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}/dismissals
POST
Submitreviewforpullrequest — Submit Review For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}/events
PUT
Updatepullrequestbranch — Update Pull Request Branch
/v1/repos/{owner}/{repo}/pulls/{pull-number}/update-branch

MCP Tools

get-pull-request-review-protection

Get Pull Request Review Protection

read-only idempotent
update-pull-request-review-protection

Update Pull Request Review Protection

idempotent
delete-pull-request-review-protection

Delete Pull Request Review Protection

idempotent
list-pull-requests-associated-commit

List Pull Requests Associated With Commit

read-only idempotent
list-pull-requests

List Pull Requests

read-only idempotent
create-pull-request

Create Pull Request

get-review-comment-pull-request

Get Review Comment For Pull Request

read-only idempotent
update-review-comment-pull-request

Update Review Comment For Pull Request

idempotent
delete-review-comment-pull-request

Delete Review Comment For Pull Request

idempotent
list-reactions-pull-request-review

List Reactions For Pull Request Review Comment

read-only idempotent
create-reaction-pull-request-review

Create Reaction For Pull Request Review Comment

delete-pull-request-comment-reaction

Delete Pull Request Comment Reaction

idempotent
get-pull-request

Get Pull Request

read-only idempotent
update-pull-request

Update Pull Request

idempotent
list-review-comments-pull-request

List Review Comments On Pull Request

read-only idempotent
create-review-comment-pull-request

Create Review Comment For Pull Request

list-commits-pull-request

List Commits On Pull Request

read-only idempotent
list-pull-requests-files

List Pull Requests Files

read-only idempotent
check-if-pull-request-has

Check If Pull Request Has Been Merged

read-only idempotent
merge-pull-request

Merge Pull Request

idempotent
get-all-requested-reviewers-pull

Get All Requested Reviewers For Pull Request

read-only idempotent
request-reviewers-pull-request

Request Reviewers For Pull Request

remove-requested-reviewers-pull-request

Remove Requested Reviewers From Pull Request

idempotent
list-reviews-pull-request

List Reviews For Pull Request

read-only idempotent
create-review-pull-request

Create Review For Pull Request

get-review-pull-request

Get Review For Pull Request

read-only idempotent
update-review-pull-request

Update Review For Pull Request

idempotent
delete-pending-review-pull-request

Delete Pending Review For Pull Request

idempotent
list-comments-pull-request-review

List Comments For Pull Request Review

read-only idempotent
dismiss-review-pull-request

Dismiss Review For Pull Request

idempotent
submit-review-pull-request

Submit Review For Pull Request

update-pull-request-branch

Update Pull Request Branch

idempotent

Capability Spec

temp-pull.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Pull
  description: 'GitHub Repos API — Pull. 32 operations. Lead operation: Get Pull Request Review Protection. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Pull
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-pull
    baseUri: ''
    description: GitHub Repos API — Pull business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-branches-branch-protection-required_pull_request_reviews
      path: /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews
      operations:
      - name: getpullrequestreviewprotection
        method: GET
        description: Get Pull Request Review Protection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: updatepullrequestreviewprotection
        method: PATCH
        description: Update Pull Request Review Protection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deletepullrequestreviewprotection
        method: DELETE
        description: Delete Pull Request Review Protection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-commits-commit_sha-pulls
      path: /repos/{owner}/{repo}/commits/{commit_sha}/pulls
      operations:
      - name: listpullrequestsassociatedwithcommit
        method: GET
        description: List Pull Requests Associated With Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls
      path: /repos/{owner}/{repo}/pulls
      operations:
      - name: listpullrequests
        method: GET
        description: List Pull Requests
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: state
          in: query
          type: string
          description: Either `open`, `closed`, or `all` to filter by state.
        - name: head
          in: query
          type: string
          description: 'Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or
            `organization:ref-name`. For example: `github:new-script-form'
        - name: base
          in: query
          type: string
          description: 'Filter pulls by base branch name. Example: `gh-pages`.'
        - name: sort
          in: query
          type: string
          description: 'What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort
            by date created and will limit the results to pull requests '
        - name: direction
          in: query
          type: string
          description: 'The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise
            `asc`.'
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: createpullrequest
        method: POST
        description: Create Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-pulls-comments-comment_id
      path: /repos/{owner}/{repo}/pulls/comments/{comment_id}
      operations:
      - name: getreviewcommentforpullrequest
        method: GET
        description: Get Review Comment For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: updatereviewcommentforpullrequest
        method: PATCH
        description: Update Review Comment For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletereviewcommentforpullrequest
        method: DELETE
        description: Delete Review Comment For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls-comments-comment_id-reactions
      path: /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions
      operations:
      - name: listreactionsforpullrequestreviewcomment
        method: GET
        description: List Reactions For Pull Request Review Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: content
          in: query
          type: string
          description: Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions).
            Omit this parameter to list all reacti
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: createreactionforpullrequestreviewcomment
        method: POST
        description: Create Reaction For Pull Request Review Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-pulls-comments-comment_id-reactions-reaction_id
      path: /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}
      operations:
      - name: deletepullrequestcommentreaction
        method: DELETE
        description: Delete Pull Request Comment Reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls-pull_number
      path: /repos/{owner}/{repo}/pulls/{pull_number}
      operations:
      - name: getpullrequest
        method: GET
        description: Get Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: updatepullrequest
        method: PATCH
        description: Update Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repos-owner-repo-pulls-pull_number-comments
      path: /repos/{owner}/{repo}/pulls/{pull_number}/comments
      operations:
      - name: listreviewcommentsonpullrequest
        method: GET
        description: List Review Comments On Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: direction
          in: query
          type: string
          description: The direction to sort results. Ignored without `sort` parameter.
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: createreviewcommentforpullrequest
        method: POST
        description: Create Review Comment For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-pulls-pull_number-commits
      path: /repos/{owner}/{repo}/pulls/{pull_number}/commits
      operations:
      - name: listcommitsonpullrequest
        method: GET
        description: List Commits On Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls-pull_number-files
      path: /repos/{owner}/{repo}/pulls/{pull_number}/files
      operations:
      - name: listpullrequestsfiles
        method: GET
        description: List Pull Requests Files
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls-pull_number-merge
      path: /repos/{owner}/{repo}/pulls/{pull_number}/merge
      operations:
      - name: checkifpullrequesthasbeenmerged
        method: GET
        description: Check If Pull Request Has Been Merged
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: mergepullrequest
        method: PUT
        description: Merge Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repos-owner-repo-pulls-pull_number-requested_reviewers
      path: /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers
      operations:
      - name: getallrequestedreviewersforpullrequest
        method: GET
        description: Get All Requested Reviewers For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: requestreviewersforpullrequest
        method: POST
        description: Request Reviewers For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: removerequestedreviewersfrompullrequest
        method: DELETE
        description: Remove Requested Reviewers From Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-pulls-pull_number-reviews
      path: /repos/{owner}/{repo}/pulls/{pull_number}/reviews
      operations:
      - name: listreviewsforpullrequest
        method: GET
        description: List Reviews For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: createreviewforpullrequest
        method: POST
        description: Create Review For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repos-owner-repo-pulls-pull_number-reviews-review_id
      path: /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}
      operations:
      - name: getreviewforpullrequest
        method: GET
        description: Get Review For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: updatereviewforpullrequest
        method: PUT
        description: Update Review For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletependingreviewforpullrequest
        method: DELETE
        description: Delete Pending Review For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls-pull_number-reviews-review_id-comments
      path: /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments
      operations:
      - name: listcommentsforpullrequestreview
        method: GET
        description: List Comments For Pull Request Review
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls-pull_number-reviews-review_id-dismissals
      path: /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals
      operations:
      - name: dismissreviewforpullrequest
        method: PUT
        description: Dismiss Review For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-pulls-pull_number-reviews-review_id-events
      path: /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events
      operations:
      - name: submitreviewforpullrequest
        method: POST
        description: Submit Review For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-pulls-pull_number-update-branch
      path: /repos/{owner}/{repo}/pulls/{pull_number}/update-branch
      operations:
      - name: updatepullrequestbranch
        method: PUT
        description: Update Pull Request Branch
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: temp-pull-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Pull. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews
      name: repos-owner-repo-branches-branch-protection-required-pull-request-reviews
      description: REST surface for repos-owner-repo-branches-branch-protection-required_pull_request_reviews.
      operations:
      - method: GET
        name: getpullrequestreviewprotection
        description: Get Pull Request Review Protection
        call: temp-pull.getpullrequestreviewprotection
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatepullrequestreviewprotection
        description: Update Pull Request Review Protection
        call: temp-pull.updatepullrequestreviewprotection
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletepullrequestreviewprotection
        description: Delete Pull Request Review Protection
        call: temp-pull.deletepullrequestreviewprotection
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/commits/{commit-sha}/pulls
      name: repos-owner-repo-commits-commit-sha-pulls
      description: REST surface for repos-owner-repo-commits-commit_sha-pulls.
      operations:
      - method: GET
        name: listpullrequestsassociatedwithcommit
        description: List Pull Requests Associated With Commit
        call: temp-pull.listpullrequestsassociatedwithcommit
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls
      name: repos-owner-repo-pulls
      description: REST surface for repos-owner-repo-pulls.
      operations:
      - method: GET
        name: listpullrequests
        description: List Pull Requests
        call: temp-pull.listpullrequests
        with:
          state: rest.state
          head: rest.head
          base: rest.base
          sort: rest.sort
          direction: rest.direction
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createpullrequest
        description: Create Pull Request
        call: temp-pull.createpullrequest
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
      name: repos-owner-repo-pulls-comments-comment-id
      description: REST surface for repos-owner-repo-pulls-comments-comment_id.
      operations:
      - method: GET
        name: getreviewcommentforpullrequest
        description: Get Review Comment For Pull Request
        call: temp-pull.getreviewcommentforpullrequest
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatereviewcommentforpullrequest
        description: Update Review Comment For Pull Request
        call: temp-pull.updatereviewcommentforpullrequest
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletereviewcommentforpullrequest
        description: Delete Review Comment For Pull Request
        call: temp-pull.deletereviewcommentforpullrequest
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions
      name: repos-owner-repo-pulls-comments-comment-id-reactions
      description: REST surface for repos-owner-repo-pulls-comments-comment_id-reactions.
      operations:
      - method: GET
        name: listreactionsforpullrequestreviewcomment
        description: List Reactions For Pull Request Review Comment
        call: temp-pull.listreactionsforpullrequestreviewcomment
        with:
          content: rest.content
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createreactionforpullrequestreviewcomment
        description: Create Reaction For Pull Request Review Comment
        call: temp-pull.createreactionforpullrequestreviewcomment
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions/{reaction-id}
      name: repos-owner-repo-pulls-comments-comment-id-reactions-reaction-id
      description: REST surface for repos-owner-repo-pulls-comments-comment_id-reactions-reaction_id.
      operations:
      - method: DELETE
        name: deletepullrequestcommentreaction
        description: Delete Pull Request Comment Reaction
        call: temp-pull.deletepullrequestcommentreaction
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls/{pull-number}
      name: repos-owner-repo-pulls-pull-number
      description: REST surface for repos-owner-repo-pulls-pull_number.
      operations:
      - method: GET
        name: getpullrequest
        description: Get Pull Request
        call: temp-pull.getpullrequest
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatepullrequest
        description: Update Pull Request
        call: temp-pull.updatepullrequest
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/comments
      name: repos-owner-repo-pulls-pull-number-comments
      description: REST surface for repos-owner-repo-pulls-pull_number-comments.
      operations:
      - method: GET
        name: listreviewcommentsonpullrequest
        description: List Review Comments On Pull Request
        call: temp-pull.listreviewcommentsonpullrequest
        with:
          direction: rest.direction
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createreviewcommentforpullrequest
        description: Create Review Comment For Pull Request
        call: temp-pull.createreviewcommentforpullrequest
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/commits
      name: repos-owner-repo-pulls-pull-number-commits
      description: REST surface for repos-owner-repo-pulls-pull_number-commits.
      operations:
      - method: GET
        name: listcommitsonpullrequest
        description: List Commits On Pull Request
        call: temp-pull.listcommitsonpullrequest
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/files
      name: repos-owner-repo-pulls-pull-number-files
      description: REST surface for repos-owner-repo-pulls-pull_number-files.
      operations:
      - method: GET
        name: listpullrequestsfiles
        description: List Pull Requests Files
        call: temp-pull.listpullrequestsfiles
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/merge
      name: repos-owner-repo-pulls-pull-number-merge
      description: REST surface for repos-owner-repo-pulls-pull_number-merge.
      operations:
      - method: GET
        name: checkifpullrequesthasbeenmerged
        description: Check If Pull Request Has Been Merged
        call: temp-pull.checkifpullrequesthasbeenmerged
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
   

# --- truncated at 32 KB (53 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/temp-pull.yaml