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 outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks name: repos-owner-repo-branches-branch-protection-required-status-checks description: REST surface for repos-owner-repo-branches-branch-protection-required_status_checks. operations: - method: PATCH name: updatestatuscheckprotection description: Update Status Check Protection call: temp-update.updatestatuscheckprotection 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}/check-runs/{check-run-id} name: repos-owner-repo-check-runs-check-run-id description: REST surface for repos-owner-repo-check-runs-check_run_id. operations: - method: PATCH name: updatecheckrun description: Update Check Run call: temp-update.updatecheckrun 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}/check-suites/preferences name: repos-owner-repo-check-suites-preferences description: REST surface for repos-owner-repo-check-suites-preferences. operations: - method: PATCH name: updaterepositorypreferencesforchecksuites description: Update Repository Preferences For Check Suites call: temp-update.updaterepositorypreferencesforchecksuites 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}/code-scanning/alerts/{alert-number} name: repos-owner-repo-code-scanning-alerts-alert-number description: REST surface for repos-owner-repo-code-scanning-alerts-alert_number. operations: - method: PATCH name: updatecodescanningalert description: Update Code Scanning Alert call: temp-update.updatecodescanningalert 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}/code-scanning/default-setup name: repos-owner-repo-code-scanning-default-setup description: REST surface for repos-owner-repo-code-scanning-default-setup. operations: - method: PATCH name: updatecodescanningdefaultsetupconfiguration description: Update Code Scanning Default Setup Configuration call: temp-update.updatecodescanningdefaultsetupconfiguration 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}/comments/{comment-id} name: repos-owner-repo-comments-comment-id description: REST surface for repos-owner-repo-comments-comment_id. operations: - method: PATCH name: updatecommitcomment description: Update Commit Comment call: temp-update.updatecommitcomment 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}/contents/{path} name: repos-owner-repo-contents-path description: REST surface for repos-owner-repo-contents-path. operations: - method: PUT name: createorupdatefilecontents description: Create Or Update File Contents call: temp-update.createorupdatefilecontents with: path: rest.path 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}/dependabot/alerts/{alert-number} name: repos-owner-repo-dependabot-alerts-alert-number description: REST surface for repos-owner-repo-dependabot-alerts-alert_number. operations: - method: PATCH name: updatedependabotalert description: Update Dependabot Alert call: temp-update.updatedependabotalert 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}/dependabot/secrets/{secret-name} name: repos-owner-repo-dependabot-secrets-secret-name description: REST surface for repos-owner-repo-dependabot-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}/environments/{environment-name} name: repos-owner-repo-environments-environment-name description: REST surface for repos-owner-repo-environments-environment_name. operations: - method: PUT name: createorupdateanenvironment description: Create Or Update An Environment call: temp-update.createorupdateanenvironment 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}/environments/{environment-name}/deployment-branch-policies/{branch-policy-id} name: repos-owner-repo-environments-environment-name-deployment-branch-policies-branch description: REST surface for repos-owner-repo-environments-environment_name-deployment-branch-policies-branch. operations: - method: PUT name: updatedeploymentbranchpolicy description: Update Deployment Branch Policy call: temp-update.updatedeploymentbranchpolicy 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}/environments/{environment-name}/secrets/{secret-name} name: repos-owner-repo-environments-environment-name-secrets-secret-name description: REST surface for repos-owner-repo-environments-environment_name-secrets-secret_name. operations: - method: PUT name: createorupdateanenvironmentsecret description: Create Or Update An Environment Secret call: temp-update.createorupdateanenvironmentsecret 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}/environments/{environment-name}/variables/{name} name: repos-owner-repo-environments-environment-name-variables-name description: REST surface for repos-owner-repo-environments-environment_name-variables-name. operations: - method: PATCH name: updateanenvironmentvariable description: Update An Environment Variable call: temp-update.updateanenvironmentvariable 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}/git/refs/{ref} name: repos-owner-repo-git-refs-ref description: REST surface for repos-owner-repo-git-refs-ref. operations: - method: PATCH name: updatereference description: Update Reference call: temp-update.updatereference 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}/hooks/{hook-id} name: repos-owner-repo-hooks-hook-id description: REST surface for repos-owner-repo-hooks-hook_id. operations: - method: PATCH name: updaterepositorywebhook description: Update Repository Webhook call: temp-update.updaterepositorywebhook 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}/hooks/{hook-id}/config name: repos-owner-repo-hooks-hook-id-config description: REST surface for repos-owner-repo-hooks-hook_id-config. operations: - method: PATCH name: updatewebhookconfigurationforrepository description: Update Webhook Configuration For Repository call: temp-update.updatewebhookconfigurationforrepository 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}/invitations/{invitation-id} name: repos-owner-repo-invitations-invitation-id description: REST surface for repos-owner-repo-invitations-invitation_id. operations: - method: PATCH name: updaterepositoryinvitation description: Update Repository Invitation call: temp-update.updaterepositoryinvitation 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}/issues/comments/{comment-id} name: repos-owner-repo-issues-comments-comment-id description: REST surface for repos-owner-repo-issues-comments-comment_id. operations: - method: PATCH name: updateanissuecomment description: Update An Issue Comment call: temp-update.updateanissuecomment 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}/issues/{issue-number} name: repos-owner-repo-issues-issue-number description: REST surface for repos-owner-repo-issues-issue_number. operations: - method: PATCH name: updateanissue description: Update An Issue call: temp-update.updateanissue 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}/labels/{name} name: repos-owner-repo-labels-name description: REST surface for repos-owner-repo-labels-name. operations: - method: PATCH name: updatelabel description: Update Label call: temp-update.updatelabel with: name: rest.name 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}/milestones/{milestone-number} name: repos-owner-repo-milestones-milestone-number description: REST surface for repos-owner-repo-milestones-milestone_number. operations: - method: PATCH name: updatemilestone description: Update Milestone call: temp-update.updatemilestone 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}/pages name: repos-owner-repo-pages description: REST surface for repos-owner-repo-pages. operations: - method: PUT name: updateinformationaboutgithubenterpriseserverpagessite description: Update Information About Github Enterprise Server Pages Site call: temp-update.updateinformationaboutgithubenterpriseserverpagessite 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}/pre-receive-hooks/{pre-receive-hook-id} name: repos-owner-repo-pre-receive-hooks-pre-receive-hook-id description: REST surface for repos-owner-repo-pre-receive-hooks-pre_receive_hook_id. operations: - method: PATCH name: updateprereceivehookenforcementforrepository description: Update Pre-receive Hook Enforcement For Repository call: temp-update.updateprereceivehookenforcementforrepository 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: PATCH name: updatereviewcommentforpullrequest description: Update Review Comment For Pull Request call: temp-update.updatereviewcommentforpullrequest 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} name: repos-owner-repo-pulls-pull-number description: REST surface for repos-owner-repo-pulls-pull_number. operations: - method: PATCH name: updatepullrequest description: Update Pull Request call: temp-update.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}/reviews/{review-id} name: repos-owner-repo-pulls-pull-number-reviews-review-id description: REST surface for repos-owner-repo-pulls-pull_number-reviews-review_id. operations: - method: PUT name: updatereviewforpullrequest description: Update Review For Pull Request call: temp-update.updatereviewforpullrequest 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}/update-branch name: repos-owner-repo-pulls-pull-number-update-branch description: REST surface for repos-owner-repo-pulls-pull_number-update-branch. operations: - method: PUT name: updatepullrequestbranch description: Update Pull Request Branch call: temp-update.updatepullrequestbranch 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}/releases/assets/{asset-id} name: repos-owner-repo-releases-assets-asset-id description: REST surface for repos-owner-repo-releases-assets-asset_id. operations: - method: PATCH name: updatereleaseasset description: Update Release Asset call: temp-update.updatereleaseasset 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}/releases/{release-id} name: repos-owner-repo-releases-release-id description: REST surface for repos-owner-repo-releases-release_id. operations: - method: PATCH name: updaterelease description: Update Release call: temp-update.updaterelease 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}/secret-scanning/alerts/{alert-number} name: repos-owner-repo-secret-scanning-alerts-alert-number description: REST surface for repos-owner-repo-secret-scanning-alerts-alert_number. operations: - method: PATCH name: updatesecretscanningalert description: Update Secret Scanning Alert call: temp-update.updatesecretscanningalert 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/teams/{team-id}/repos/{owner}/{repo} name: teams-team-id-repos-owner-repo description: REST surface for teams-team_id-repos-owner-repo. operations: - method: PUT name: addorupdateteamrepositorypermissionslegacy description: Add Or Update Team Repository Permissions (legacy) call: temp-update.addorupdateteamrepositorypermissionslegacy with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: temp-update-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Update. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: add-update-team-repository-permissions description: Add Or Update Team Repository Permissions hints: readOnly: false destructive: false idempotent: true call: temp-update.addorupdateteamrepositorypermissions with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-repository description: Update Repository hints: readOnly: false destructive: false idempotent: true call: temp-update.updaterepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: create-update-repository-secret description: Create Or Update Repository Secret hints: readOnly: false destructive: false idempotent: true call: temp-update.createorupdaterepositorysecret with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-repository-variable description: Update Repository Variable hints: readOnly: false destructive: false idempotent: true call: temp-update.updaterepositoryvariable with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-branch-protection description: Update Branch Protection hints: readOnly: false destructive: false idempotent: true call: temp-update.updatebranchprotection with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-pull-request-review-protection description: Update Pull Request Review Protection hints: readOnly: false destructive: false idempotent: true call: temp-update.updatepullrequestreviewprotection with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-status-check-protection description: Update Status Check Protection hints: readOnly: false destructive: false idempotent: true call: temp-update.updatestatuscheckprotection with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-check-run description: Update Check Run hints: readOnly: false destructive: false idempotent: true call: temp-update.updatecheckrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-repository-preferences-check-suites description: Update Repository Preferences For Check Suites hints: readOnly: false destructive: false idempotent: true call: temp-update.updaterepositorypreferencesforchecksuites with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-code-scanning-alert description: Update Code Scanning Alert hints: readOnly: false destructive: false idempotent: true call: temp-update.updatecodescanningalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-code-scanning-default-setup description: Update Code Scanning Default Setup Configuration hints: readOnly: false destructive: false idempotent: true call: temp-update.updatecodescanningdefaultsetupconfiguration with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-commit-comment description: Update Commit Comment hints: readOnly: false destructive: false idempotent: true call: temp-update.updatecommitcomment with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: create-update-file-contents description: Create Or Update File Contents hints: readOnly: false destructive: false idempotent: true call: temp-update.createorupdatefilecontents with: path: tools.path Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-dependabot-alert description: Update Dependabot Alert hints: readOnly: false destructive: false idempotent: true call: temp-update.updatedependabotalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: create-update-repository-secret-2 description: Create Or Update Repository Secret hints: readOnly: false destructive: false idempotent: true call: temp-update.createorupdaterepositorysecret with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: create-update-environment description: Create Or Update An Environment hints: readOnly: false destructive: false idempotent: true call: temp-update.createorupdateanenvironment with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-deployment-branch-policy description: Update Deployment Branch Policy hints: readOnly: false destructive: false idempotent: true call: temp-update.updatedeploymentbranchpolicy with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: create-update-environment-secret description: Create Or Update An Environment Secret hints: readOnly: false destructive: false idempotent: true call: temp-update.createorupdateanenvironmentsecret with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-environment-variable description: Update An Environment Variable hints: readOnly: false destructive: false idempotent: true call: temp-update.updateanenvironmentvariable with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-reference description: Update Reference hints: readOnly: false destructive: false idempotent: true call: temp-update.updatereference with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-repository-webhook description: Update Repository Webhook hints: readOnly: false destructive: false idempotent: true call: temp-update.updaterepositorywebhook with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-webhook-configuration-repository description: Update Webhook Configuration For Repository hints: readOnly: false destructive: false idempotent: true call: temp-update.updatewebhookconfigurationforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-repository-invitation description: Update Repository Invitation hints: readOnly: false destructive: false idempotent: true call: temp-update.updaterepositoryinvitation with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-issue-comment description: Update An Issue Comment hints: readOnly: false destructive: false idempotent: true call: temp-update.updateanissuecomment with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-issue description: Update An Issue hints: readOnly: false destructive: false idempotent: true call: temp-update.updateanissue with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-label description: Update Label hints: readOnly: false destructive: false idempotent: true call: temp-update.updatelabel with: name: tools.name Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-milestone description: Update Milestone hints: readOnly: false destructive: false idempotent: true call: temp-update.updatemilestone with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-information-about-github-enterprise description: Update Information About Github Enterprise Server Pages Site hints: readOnly: false destructive: false idempotent: true call: temp-update.updateinformationaboutgithubenterpriseserverpagessite with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-pre-receive-hook-enforcement description: Update Pre-receive Hook Enforcement For Repository hints: readOnly: false destructive: false idempotent: true call: temp-update.updateprereceivehookenforcementforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-review-comment-pull-request description: Update Review Comment For Pull Request hints: readOnly: false destructive: false idempotent: true call: temp-update.updatereviewcommentforpullrequest with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-pull-request description: Update Pull Request hints: readOnly: false destructive: false idempotent: true call: temp-update.updatepullrequest with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-review-pull-request description: Update Review For Pull Request hints: readOnly: false destructive: false idempotent: true call: temp-update.updatereviewforpullrequest with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-pull-request-branch description: Update Pull Request Branch hints: readOnly: false destructive: false idempotent: true call: temp-update.updatepullrequestbranch with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-release-asset description: Update Release Asset hints: readOnly: false destructive: false idempotent: true call: temp-update.updatereleaseasset with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-release description: Update Release hints: readOnly: false destructive: false idempotent: true call: temp-update.updaterelease with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-secret-scanning-alert description: Update Secret Scanning Alert hints: readOnly: false destructive: false idempotent: true call: temp-update.updatesecretscanningalert with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: add-update-team-repository-permissions-2 description: Add Or Update Team Repository Permissions (legacy) hints: readOnly: false destructive: false idempotent: true call: temp-update.addorupdateteamrepositorypermissionslegacy with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $.