GitHub · Capability

GitHub Repos API — Update

GitHub Repos API — Update. 37 operations. Lead operation: Add Or Update Team Repository Permissions. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubUpdate

What You Can Do

PUT
Addorupdateteamrepositorypermissions — Add Or Update Team Repository Permissions
/v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
PATCH
Updaterepository — Update Repository
/v1/repos/{owner}/{repo}
PUT
Createorupdaterepositorysecret — Create Or Update Repository Secret
/v1/repos/{owner}/{repo}/actions/secrets/{secret-name}
PATCH
Updaterepositoryvariable — Update Repository Variable
/v1/repos/{owner}/{repo}/actions/variables/{name}
PUT
Updatebranchprotection — Update Branch Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection
PATCH
Updatepullrequestreviewprotection — Update Pull Request Review Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews
PATCH
Updatestatuscheckprotection — Update Status Check Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks
PATCH
Updatecheckrun — Update Check Run
/v1/repos/{owner}/{repo}/check-runs/{check-run-id}
PATCH
Updaterepositorypreferencesforchecksuites — Update Repository Preferences For Check Suites
/v1/repos/{owner}/{repo}/check-suites/preferences
PATCH
Updatecodescanningalert — Update Code Scanning Alert
/v1/repos/{owner}/{repo}/code-scanning/alerts/{alert-number}
PATCH
Updatecodescanningdefaultsetupconfiguration — Update Code Scanning Default Setup Configuration
/v1/repos/{owner}/{repo}/code-scanning/default-setup
PATCH
Updatecommitcomment — Update Commit Comment
/v1/repos/{owner}/{repo}/comments/{comment-id}
PUT
Createorupdatefilecontents — Create Or Update File Contents
/v1/repos/{owner}/{repo}/contents/{path}
PATCH
Updatedependabotalert — Update Dependabot Alert
/v1/repos/{owner}/{repo}/dependabot/alerts/{alert-number}
PUT
Createorupdaterepositorysecret — Create Or Update Repository Secret
/v1/repos/{owner}/{repo}/dependabot/secrets/{secret-name}
PUT
Createorupdateanenvironment — Create Or Update An Environment
/v1/repos/{owner}/{repo}/environments/{environment-name}
PUT
Updatedeploymentbranchpolicy — Update Deployment Branch Policy
/v1/repos/{owner}/{repo}/environments/{environment-name}/deployment-branch-policies/{branch-policy-id}
PUT
Createorupdateanenvironmentsecret — Create Or Update An Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
PATCH
Updateanenvironmentvariable — Update An Environment Variable
/v1/repos/{owner}/{repo}/environments/{environment-name}/variables/{name}
PATCH
Updatereference — Update Reference
/v1/repos/{owner}/{repo}/git/refs/{ref}
PATCH
Updaterepositorywebhook — Update Repository Webhook
/v1/repos/{owner}/{repo}/hooks/{hook-id}
PATCH
Updatewebhookconfigurationforrepository — Update Webhook Configuration For Repository
/v1/repos/{owner}/{repo}/hooks/{hook-id}/config
PATCH
Updaterepositoryinvitation — Update Repository Invitation
/v1/repos/{owner}/{repo}/invitations/{invitation-id}
PATCH
Updateanissuecomment — Update An Issue Comment
/v1/repos/{owner}/{repo}/issues/comments/{comment-id}
PATCH
Updateanissue — Update An Issue
/v1/repos/{owner}/{repo}/issues/{issue-number}
PATCH
Updatelabel — Update Label
/v1/repos/{owner}/{repo}/labels/{name}
PATCH
Updatemilestone — Update Milestone
/v1/repos/{owner}/{repo}/milestones/{milestone-number}
PUT
Updateinformationaboutgithubenterpriseserverpagessite — Update Information About Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
PATCH
Updateprereceivehookenforcementforrepository — Update Pre-receive Hook Enforcement For Repository
/v1/repos/{owner}/{repo}/pre-receive-hooks/{pre-receive-hook-id}
PATCH
Updatereviewcommentforpullrequest — Update Review Comment For Pull Request
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
PATCH
Updatepullrequest — Update Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}
PUT
Updatereviewforpullrequest — Update Review For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}
PUT
Updatepullrequestbranch — Update Pull Request Branch
/v1/repos/{owner}/{repo}/pulls/{pull-number}/update-branch
PATCH
Updatereleaseasset — Update Release Asset
/v1/repos/{owner}/{repo}/releases/assets/{asset-id}
PATCH
Updaterelease — Update Release
/v1/repos/{owner}/{repo}/releases/{release-id}
PATCH
Updatesecretscanningalert — Update Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}
PUT
Addorupdateteamrepositorypermissionslegacy — Add Or Update Team Repository Permissions (legacy)
/v1/teams/{team-id}/repos/{owner}/{repo}

MCP Tools

add-update-team-repository-permissions

Add Or Update Team Repository Permissions

idempotent
update-repository

Update Repository

idempotent
create-update-repository-secret

Create Or Update Repository Secret

idempotent
update-repository-variable

Update Repository Variable

idempotent
update-branch-protection

Update Branch Protection

idempotent
update-pull-request-review-protection

Update Pull Request Review Protection

idempotent
update-status-check-protection

Update Status Check Protection

idempotent
update-check-run

Update Check Run

idempotent
update-repository-preferences-check-suites

Update Repository Preferences For Check Suites

idempotent
update-code-scanning-alert

Update Code Scanning Alert

idempotent
update-code-scanning-default-setup

Update Code Scanning Default Setup Configuration

idempotent
update-commit-comment

Update Commit Comment

idempotent
create-update-file-contents

Create Or Update File Contents

idempotent
update-dependabot-alert

Update Dependabot Alert

idempotent
create-update-repository-secret-2

Create Or Update Repository Secret

idempotent
create-update-environment

Create Or Update An Environment

idempotent
update-deployment-branch-policy

Update Deployment Branch Policy

idempotent
create-update-environment-secret

Create Or Update An Environment Secret

idempotent
update-environment-variable

Update An Environment Variable

idempotent
update-reference

Update Reference

idempotent
update-repository-webhook

Update Repository Webhook

idempotent
update-webhook-configuration-repository

Update Webhook Configuration For Repository

idempotent
update-repository-invitation

Update Repository Invitation

idempotent
update-issue-comment

Update An Issue Comment

idempotent
update-issue

Update An Issue

idempotent
update-label

Update Label

idempotent
update-milestone

Update Milestone

idempotent
update-information-about-github-enterprise

Update Information About Github Enterprise Server Pages Site

idempotent
update-pre-receive-hook-enforcement

Update Pre-receive Hook Enforcement For Repository

idempotent
update-review-comment-pull-request

Update Review Comment For Pull Request

idempotent
update-pull-request

Update Pull Request

idempotent
update-review-pull-request

Update Review For Pull Request

idempotent
update-pull-request-branch

Update Pull Request Branch

idempotent
update-release-asset

Update Release Asset

idempotent
update-release

Update Release

idempotent
update-secret-scanning-alert

Update Secret Scanning Alert

idempotent
add-update-team-repository-permissions-2

Add Or Update Team Repository Permissions (legacy)

idempotent

Capability Spec

temp-update.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Update
  description: 'GitHub Repos API — Update. 37 operations. Lead operation: Add Or Update Team Repository Permissions. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Update
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-update
    baseUri: ''
    description: GitHub Repos API — Update business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-teams-team_slug-repos-owner-repo
      path: /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
      operations:
      - name: addorupdateteamrepositorypermissions
        method: PUT
        description: Add Or Update Team Repository Permissions
        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
      path: /repos/{owner}/{repo}
      operations:
      - name: updaterepository
        method: PATCH
        description: Update Repository
        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-actions-secrets-secret_name
      path: /repos/{owner}/{repo}/actions/secrets/{secret_name}
      operations:
      - name: createorupdaterepositorysecret
        method: PUT
        description: Create Or Update Repository Secret
        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-actions-variables-name
      path: /repos/{owner}/{repo}/actions/variables/{name}
      operations:
      - name: updaterepositoryvariable
        method: PATCH
        description: Update Repository Variable
        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-branches-branch-protection
      path: /repos/{owner}/{repo}/branches/{branch}/protection
      operations:
      - name: updatebranchprotection
        method: PUT
        description: Update Branch 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: true
    - name: repos-owner-repo-branches-branch-protection-required_pull_request_reviews
      path: /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews
      operations:
      - 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: repos-owner-repo-branches-branch-protection-required_status_checks
      path: /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks
      operations:
      - name: updatestatuscheckprotection
        method: PATCH
        description: Update Status Check 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: repos-owner-repo-check-runs-check_run_id
      path: /repos/{owner}/{repo}/check-runs/{check_run_id}
      operations:
      - name: updatecheckrun
        method: PATCH
        description: Update Check Run
        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-check-suites-preferences
      path: /repos/{owner}/{repo}/check-suites/preferences
      operations:
      - name: updaterepositorypreferencesforchecksuites
        method: PATCH
        description: Update Repository Preferences For Check Suites
        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-code-scanning-alerts-alert_number
      path: /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}
      operations:
      - name: updatecodescanningalert
        method: PATCH
        description: Update Code Scanning Alert
        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-code-scanning-default-setup
      path: /repos/{owner}/{repo}/code-scanning/default-setup
      operations:
      - name: updatecodescanningdefaultsetupconfiguration
        method: PATCH
        description: Update Code Scanning Default Setup Configuration
        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-comments-comment_id
      path: /repos/{owner}/{repo}/comments/{comment_id}
      operations:
      - name: updatecommitcomment
        method: PATCH
        description: Update Commit 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-contents-path
      path: /repos/{owner}/{repo}/contents/{path}
      operations:
      - name: createorupdatefilecontents
        method: PUT
        description: Create Or Update File Contents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: path
          in: path
          type: string
          description: path parameter
          required: true
        - 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-dependabot-alerts-alert_number
      path: /repos/{owner}/{repo}/dependabot/alerts/{alert_number}
      operations:
      - name: updatedependabotalert
        method: PATCH
        description: Update Dependabot Alert
        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-dependabot-secrets-secret_name
      path: /repos/{owner}/{repo}/dependabot/secrets/{secret_name}
      operations:
      - name: createorupdaterepositorysecret
        method: PUT
        description: Create Or Update Repository Secret
        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-environments-environment_name
      path: /repos/{owner}/{repo}/environments/{environment_name}
      operations:
      - name: createorupdateanenvironment
        method: PUT
        description: Create Or Update An Environment
        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-environments-environment_name-deployment-branch-policies-branch
      path: /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}
      operations:
      - name: updatedeploymentbranchpolicy
        method: PUT
        description: Update Deployment Branch Policy
        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-environments-environment_name-secrets-secret_name
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
      operations:
      - name: createorupdateanenvironmentsecret
        method: PUT
        description: Create Or Update An Environment Secret
        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-environments-environment_name-variables-name
      path: /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
      operations:
      - name: updateanenvironmentvariable
        method: PATCH
        description: Update An Environment Variable
        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-git-refs-ref
      path: /repos/{owner}/{repo}/git/refs/{ref}
      operations:
      - name: updatereference
        method: PATCH
        description: Update Reference
        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-hooks-hook_id
      path: /repos/{owner}/{repo}/hooks/{hook_id}
      operations:
      - name: updaterepositorywebhook
        method: PATCH
        description: Update Repository Webhook
        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-hooks-hook_id-config
      path: /repos/{owner}/{repo}/hooks/{hook_id}/config
      operations:
      - name: updatewebhookconfigurationforrepository
        method: PATCH
        description: Update Webhook Configuration For Repository
        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-invitations-invitation_id
      path: /repos/{owner}/{repo}/invitations/{invitation_id}
      operations:
      - name: updaterepositoryinvitation
        method: PATCH
        description: Update Repository Invitation
        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-issues-comments-comment_id
      path: /repos/{owner}/{repo}/issues/comments/{comment_id}
      operations:
      - name: updateanissuecomment
        method: PATCH
        description: Update An Issue 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-issues-issue_number
      path: /repos/{owner}/{repo}/issues/{issue_number}
      operations:
      - name: updateanissue
        method: PATCH
        description: Update An Issue
        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-labels-name
      path: /repos/{owner}/{repo}/labels/{name}
      operations:
      - name: updatelabel
        method: PATCH
        description: Update Label
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
        - 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-milestones-milestone_number
      path: /repos/{owner}/{repo}/milestones/{milestone_number}
      operations:
      - name: updatemilestone
        method: PATCH
        description: Update Milestone
        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-pages
      path: /repos/{owner}/{repo}/pages
      operations:
      - name: updateinformationaboutgithubenterpriseserverpagessite
        method: PUT
        description: Update Information About Github Enterprise Server Pages Site
        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-pre-receive-hooks-pre_receive_hook_id
      path: /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}
      operations:
      - name: updateprereceivehookenforcementforrepository
        method: PATCH
        description: Update Pre-receive Hook Enforcement For Repository
        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-comments-comment_id
      path: /repos/{owner}/{repo}/pulls/comments/{comment_id}
      operations:
      - 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: repos-owner-repo-pulls-pull_number
      path: /repos/{owner}/{repo}/pulls/{pull_number}
      operations:
      - 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-reviews-review_id
      path: /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}
      operations:
      - 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: 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
    - name: repos-owner-repo-releases-assets-asset_id
      path: /repos/{owner}/{repo}/releases/assets/{asset_id}
      operations:
      - name: updatereleaseasset
        method: PATCH
        description: Update Release Asset
        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-releases-release_id
      path: /repos/{owner}/{repo}/releases/{release_id}
      operations:
      - name: updaterelease
        method: PATCH
        description: Update Release
        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-secret-scanning-alerts-alert_number
      path: /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}
      operations:
      - name: updatesecretscanningalert
        method: PATCH
        description: Update Secret Scanning Alert
        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: teams-team_id-repos-owner-repo
      path: /teams/{team_id}/repos/{owner}/{repo}
      operations:
      - name: addorupdateteamrepositorypermissionslegacy
        method: PUT
        description: Add Or Update Team Repository Permissions (legacy)
        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-update-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Update. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
      name: orgs-org-teams-team-slug-repos-owner-repo
      description: REST surface for orgs-org-teams-team_slug-repos-owner-repo.
      operations:
      - method: PUT
        name: addorupdateteamrepositorypermissions
        description: Add Or Update Team Repository Permissions
        call: temp-update.addorupdateteamrepositorypermissions
        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}
      name: repos-owner-repo
      description: REST surface for repos-owner-repo.
      operations:
      - method: PATCH
        name: updaterepository
        description: Update Repository
        call: temp-update.updaterepository
        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}/actions/secrets/{secret-name}
      name: repos-owner-repo-actions-secrets-secret-name
      description: REST surface for repos-owner-repo-actions-secrets-secret_name.
      operations:
      - method: PUT
        name: createorupdaterepositorysecret
        description: Create Or Update Repository Secret
        call: temp-update.createorupdaterepositorysecret
        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}/actions/variables/{name}
      name: repos-owner-repo-actions-variables-name
      description: REST surface for repos-owner-repo-actions-variables-name.
      operations:
      - method: PATCH
        name: updaterepositoryvariable
        description: Update Repository Variable
        call: temp-update.updaterepositoryvariable
        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}/branches/{branch}/protection
      name: repos-owner-repo-branches-branch-protection
      description: REST surface for repos-owner-repo-branches-branch-protection.
      operations:
      - method: PUT
        name: updatebranchprotection
        description: Update Branch Protection
        call: temp-update.updatebranchprotection
        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}/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: PATCH
        name: updatepullrequestreviewprotection
        description: Update Pull Request Review Protection
        call: temp-update.updatepullrequestreviewprotection
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputPa

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