GitHub · Capability

GitHub Org API — Repositories

GitHub Org API — Repositories. 36 operations. Lead operation: GitHub Deprecated - List Custom Repository Roles in an Organization. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubRepositories

What You Can Do

GET
Deprecatedlistcustomrepositoryrolesinanorganization — GitHub Deprecated - List Custom Repository Roles in an Organization
/v1/organizations/{organization-id}/custom-roles
GET
Listrepositorieswithgithubactionscacheusageforanorganization — GitHub List Repositories with Github Actions Cache Usage for an Organization
/v1/orgs/{org}/actions/cache/usage-by-repository
GET
Listselectedrepositoriesenabledforgithubactionsinanorganization — GitHub List Selected Repositories Enabled for Github Actions in an Organization
/v1/orgs/{org}/actions/permissions/repositories
PUT
Setselectedrepositoriesenabledforgithubactionsinanorganization — GitHub Set Selected Repositories Enabled for Github Actions in an Organization
/v1/orgs/{org}/actions/permissions/repositories
PUT
Enableselectedrepositoryforgithubactionsinanorganization — GitHub Enable Selected Repository for Github Actions in an Organization
/v1/orgs/{org}/actions/permissions/repositories/{repository-id}
DELETE
Disableselectedrepositoryforgithubactionsinanorganization — GitHub Disable Selected Repository for Github Actions in an Organization
/v1/orgs/{org}/actions/permissions/repositories/{repository-id}
GET
Listrepositoryaccesstoselfhostedrunnergroupinanorganization — GitHub List Repository Access to Self-hosted Runner Group in an Organization
/v1/orgs/{org}/actions/runner-groups/{runner-group-id}/repositories
PUT
Setrepositoryaccessforselfhostedrunnergroupinanorganization — GitHub Set Repository Access for Self-hosted Runner Group in an Organization
/v1/orgs/{org}/actions/runner-groups/{runner-group-id}/repositories
PUT
Addrepositoryaccesstoselfhostedrunnergroupinanorganization — GitHub Add Repository Access to Self-hosted Runner Group in an Organization
/v1/orgs/{org}/actions/runner-groups/{runner-group-id}/repositories/{repository-id}
DELETE
Removerepositoryaccesstoselfhostedrunnergroupinanorganization — GitHub Remove Repository Access to Self-hosted Runner Group in an Organization
/v1/orgs/{org}/actions/runner-groups/{runner-group-id}/repositories/{repository-id}
GET
Listselectedrepositoriesforanorganizationsecret — GitHub List Selected Repositories for an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories
PUT
Setselectedrepositoriesforanorganizationsecret — GitHub Set Selected Repositories for an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories
PUT
Addselectedrepositorytoanorganizationsecret — GitHub Add Selected Repository to an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id}
DELETE
Removeselectedrepositoryfromanorganizationsecret — GitHub Remove Selected Repository from an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id}
GET
Listselectedrepositoriesforanorganizationvariable — GitHub List Selected Repositories for an Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories
PUT
Setselectedrepositoriesforanorganizationvariable — GitHub Set Selected Repositories for an Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories
PUT
Addselectedrepositorytoanorganizationvariable — GitHub Add Selected Repository to an Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories/{repository-id}
DELETE
Removeselectedrepositoryfromanorganizationvariable — GitHub Remove Selected Repository from an Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories/{repository-id}
GET
Listcustomrepositoryrolesinanorganization — GitHub List Custom Repository Roles in an Organization
/v1/orgs/{org}/custom-repository-roles
POST
Createcustomrepositoryrole — GitHub Create Custom Repository Role
/v1/orgs/{org}/custom-repository-roles
GET
Getcustomrepositoryrole — GitHub Get Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}
PATCH
Updatecustomrepositoryrole — GitHub Update Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}
DELETE
Deletecustomrepositoryrole — GitHub Delete Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}
GET
Listselectedrepositoriesforanorganizationsecret — GitHub List Selected Repositories for an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
PUT
Setselectedrepositoriesforanorganizationsecret — GitHub Set Selected Repositories for an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
PUT
Addselectedrepositorytoanorganizationsecret — GitHub Add Selected Repository to an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id}
DELETE
Removeselectedrepositoryfromanorganizationsecret — GitHub Remove Selected Repository from an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id}
DELETE
Unlockanorganizationrepository — GitHub Unlock an Organization Repository
/v1/orgs/{org}/migrations/{migration-id}/repos/{repo-name}/lock
GET
Listrepositoriesinanorganizationmigration — GitHub List Repositories in an Organization Migration
/v1/orgs/{org}/migrations/{migration-id}/repositories
GET
Listorganizationrepositories — GitHub List Organization Repositories
/v1/orgs/{org}/repos
POST
Createanorganizationrepository — GitHub Create an Organization Repository
/v1/orgs/{org}/repos
GET
Listrepositoryfinegrainedpermissionsforanorganization — GitHub List Repository Fine-grained Permissions for an Organization
/v1/orgs/{org}/repository-fine-grained-permissions
GET
Listteamrepositories — GitHub List Team Repositories
/v1/orgs/{org}/teams/{team-slug}/repos
GET
Checkteampermissionsforrepository — GitHub Check Team Permissions for Repository
/v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
PUT
Addorupdateteamrepositorypermissions — GitHub Add or Update Team Repository Permissions
/v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
DELETE
Removerepositoryfromteam — GitHub Remove Repository from Team
/v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}

MCP Tools

github-deprecated-list-custom-repository

GitHub Deprecated - List Custom Repository Roles in an Organization

read-only idempotent
github-list-repositories-github-actions

GitHub List Repositories with Github Actions Cache Usage for an Organization

read-only idempotent
github-list-selected-repositories-enabled

GitHub List Selected Repositories Enabled for Github Actions in an Organization

read-only idempotent
github-set-selected-repositories-enabled

GitHub Set Selected Repositories Enabled for Github Actions in an Organization

idempotent
github-enable-selected-repository-github

GitHub Enable Selected Repository for Github Actions in an Organization

idempotent
github-disable-selected-repository-github

GitHub Disable Selected Repository for Github Actions in an Organization

idempotent
github-list-repository-access-self

GitHub List Repository Access to Self-hosted Runner Group in an Organization

read-only idempotent
github-set-repository-access-self

GitHub Set Repository Access for Self-hosted Runner Group in an Organization

idempotent
github-add-repository-access-self

GitHub Add Repository Access to Self-hosted Runner Group in an Organization

idempotent
github-remove-repository-access-self

GitHub Remove Repository Access to Self-hosted Runner Group in an Organization

idempotent
github-list-selected-repositories-organization

GitHub List Selected Repositories for an Organization Secret

read-only idempotent
github-set-selected-repositories-organization

GitHub Set Selected Repositories for an Organization Secret

idempotent
github-add-selected-repository-organization

GitHub Add Selected Repository to an Organization Secret

idempotent
github-remove-selected-repository-organization

GitHub Remove Selected Repository from an Organization Secret

idempotent
github-list-selected-repositories-organization-2

GitHub List Selected Repositories for an Organization Variable

read-only idempotent
github-set-selected-repositories-organization-2

GitHub Set Selected Repositories for an Organization Variable

idempotent
github-add-selected-repository-organization-2

GitHub Add Selected Repository to an Organization Variable

idempotent
github-remove-selected-repository-organization-2

GitHub Remove Selected Repository from an Organization Variable

idempotent
github-list-custom-repository-roles

GitHub List Custom Repository Roles in an Organization

read-only idempotent
github-create-custom-repository-role

GitHub Create Custom Repository Role

github-get-custom-repository-role

GitHub Get Custom Repository Role

read-only idempotent
github-update-custom-repository-role

GitHub Update Custom Repository Role

idempotent
github-delete-custom-repository-role

GitHub Delete Custom Repository Role

idempotent
github-list-selected-repositories-organization-3

GitHub List Selected Repositories for an Organization Secret

read-only idempotent
github-set-selected-repositories-organization-3

GitHub Set Selected Repositories for an Organization Secret

idempotent
github-add-selected-repository-organization-3

GitHub Add Selected Repository to an Organization Secret

idempotent
github-remove-selected-repository-organization-3

GitHub Remove Selected Repository from an Organization Secret

idempotent
github-unlock-organization-repository

GitHub Unlock an Organization Repository

idempotent
github-list-repositories-organization-migration

GitHub List Repositories in an Organization Migration

read-only idempotent
github-list-organization-repositories

GitHub List Organization Repositories

read-only idempotent
github-create-organization-repository

GitHub Create an Organization Repository

github-list-repository-fine-grained

GitHub List Repository Fine-grained Permissions for an Organization

read-only idempotent
github-list-team-repositories

GitHub List Team Repositories

read-only idempotent
github-check-team-permissions-repository

GitHub Check Team Permissions for Repository

read-only idempotent
github-add-update-team-repository

GitHub Add or Update Team Repository Permissions

idempotent
github-remove-repository-team

GitHub Remove Repository from Team

idempotent

Capability Spec

organizations-repositories.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Repositories
  description: 'GitHub Org API — Repositories. 36 operations. Lead operation: GitHub Deprecated - List Custom Repository Roles
    in an Organization. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Repositories
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: organizations-repositories
    baseUri: ''
    description: GitHub Org API — Repositories business capability. Self-contained, no shared references.
    resources:
    - name: organizations-organization_id-custom_roles
      path: /organizations/{organization_id}/custom_roles
      operations:
      - name: deprecatedlistcustomrepositoryrolesinanorganization
        method: GET
        description: GitHub Deprecated - List Custom Repository Roles in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organization_id
          in: path
          type: string
          description: The unique identifier of the organization.
          required: true
    - name: orgs-org-actions-cache-usage-by-repository
      path: /orgs/{org}/actions/cache/usage-by-repository
      operations:
      - name: listrepositorieswithgithubactionscacheusageforanorganization
        method: GET
        description: GitHub List Repositories with Github Actions Cache Usage for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-permissions-repositories
      path: /orgs/{org}/actions/permissions/repositories
      operations:
      - name: listselectedrepositoriesenabledforgithubactionsinanorganization
        method: GET
        description: GitHub List Selected Repositories Enabled for Github Actions in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setselectedrepositoriesenabledforgithubactionsinanorganization
        method: PUT
        description: GitHub Set Selected Repositories Enabled for Github Actions in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-actions-permissions-repositories-repository_id
      path: /orgs/{org}/actions/permissions/repositories/{repository_id}
      operations:
      - name: enableselectedrepositoryforgithubactionsinanorganization
        method: PUT
        description: GitHub Enable Selected Repository for Github Actions in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: disableselectedrepositoryforgithubactionsinanorganization
        method: DELETE
        description: GitHub Disable Selected Repository for Github Actions in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-runner-groups-runner_group_id-repositories
      path: /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories
      operations:
      - name: listrepositoryaccesstoselfhostedrunnergroupinanorganization
        method: GET
        description: GitHub List Repository Access to Self-hosted Runner Group in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setrepositoryaccessforselfhostedrunnergroupinanorganization
        method: PUT
        description: GitHub Set Repository Access for Self-hosted Runner Group in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-actions-runner-groups-runner_group_id-repositories-repository_id
      path: /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}
      operations:
      - name: addrepositoryaccesstoselfhostedrunnergroupinanorganization
        method: PUT
        description: GitHub Add Repository Access to Self-hosted Runner Group in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: removerepositoryaccesstoselfhostedrunnergroupinanorganization
        method: DELETE
        description: GitHub Remove Repository Access to Self-hosted Runner Group in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-secrets-secret_name-repositories
      path: /orgs/{org}/actions/secrets/{secret_name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationsecret
        method: GET
        description: GitHub List Selected Repositories for an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setselectedrepositoriesforanorganizationsecret
        method: PUT
        description: GitHub Set Selected Repositories for an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-actions-secrets-secret_name-repositories-repository_id
      path: /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
      operations:
      - name: addselectedrepositorytoanorganizationsecret
        method: PUT
        description: GitHub Add Selected Repository to an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
      - name: removeselectedrepositoryfromanorganizationsecret
        method: DELETE
        description: GitHub Remove Selected Repository from an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
    - name: orgs-org-actions-variables-name-repositories
      path: /orgs/{org}/actions/variables/{name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationvariable
        method: GET
        description: GitHub List Selected Repositories for an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setselectedrepositoriesforanorganizationvariable
        method: PUT
        description: GitHub Set Selected Repositories for an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-actions-variables-name-repositories-repository_id
      path: /orgs/{org}/actions/variables/{name}/repositories/{repository_id}
      operations:
      - name: addselectedrepositorytoanorganizationvariable
        method: PUT
        description: GitHub Add Selected Repository to an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
      - name: removeselectedrepositoryfromanorganizationvariable
        method: DELETE
        description: GitHub Remove Selected Repository from an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
    - name: orgs-org-custom-repository-roles
      path: /orgs/{org}/custom-repository-roles
      operations:
      - name: listcustomrepositoryrolesinanorganization
        method: GET
        description: GitHub List Custom Repository Roles in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcustomrepositoryrole
        method: POST
        description: GitHub Create Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-custom-repository-roles-role_id
      path: /orgs/{org}/custom-repository-roles/{role_id}
      operations:
      - name: getcustomrepositoryrole
        method: GET
        description: GitHub Get Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecustomrepositoryrole
        method: PATCH
        description: GitHub Update Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecustomrepositoryrole
        method: DELETE
        description: GitHub Delete Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-dependabot-secrets-secret_name-repositories
      path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationsecret
        method: GET
        description: GitHub List Selected Repositories for an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setselectedrepositoriesforanorganizationsecret
        method: PUT
        description: GitHub Set Selected Repositories for an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-dependabot-secrets-secret_name-repositories-repository_id
      path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}
      operations:
      - name: addselectedrepositorytoanorganizationsecret
        method: PUT
        description: GitHub Add Selected Repository to an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
      - name: removeselectedrepositoryfromanorganizationsecret
        method: DELETE
        description: GitHub Remove Selected Repository from an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
    - name: orgs-org-migrations-migration_id-repos-repo_name-lock
      path: /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock
      operations:
      - name: unlockanorganizationrepository
        method: DELETE
        description: GitHub Unlock an Organization Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-migrations-migration_id-repositories
      path: /orgs/{org}/migrations/{migration_id}/repositories
      operations:
      - name: listrepositoriesinanorganizationmigration
        method: GET
        description: GitHub List Repositories in an Organization Migration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-repos
      path: /orgs/{org}/repos
      operations:
      - name: listorganizationrepositories
        method: GET
        description: GitHub List Organization Repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: type
          in: query
          type: string
          description: Specifies the types of repositories you want returned. `internal` is not yet supported when a GitHub
            App calls this endpoint with an installation access token.
        - name: sort
          in: query
          type: string
          description: The property to sort the results by.
        - name: direction
          in: query
          type: string
          description: 'The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`.'
      - name: createanorganizationrepository
        method: POST
        description: GitHub Create an Organization Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-repository-fine-grained-permissions
      path: /orgs/{org}/repository-fine-grained-permissions
      operations:
      - name: listrepositoryfinegrainedpermissionsforanorganization
        method: GET
        description: GitHub List Repository Fine-grained Permissions for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-repos
      path: /orgs/{org}/teams/{team_slug}/repos
      operations:
      - name: listteamrepositories
        method: GET
        description: GitHub List Team Repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-repos-owner-repo
      path: /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
      operations:
      - name: checkteampermissionsforrepository
        method: GET
        description: GitHub Check Team Permissions for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addorupdateteamrepositorypermissions
        method: PUT
        description: GitHub Add or Update Team Repository Permissions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: removerepositoryfromteam
        method: DELETE
        description: GitHub Remove Repository from Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: organizations-repositories-rest
    port: 8080
    description: REST adapter for GitHub Org API — Repositories. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/organizations/{organization-id}/custom-roles
      name: organizations-organization-id-custom-roles
      description: REST surface for organizations-organization_id-custom_roles.
      operations:
      - method: GET
        name: deprecatedlistcustomrepositoryrolesinanorganization
        description: GitHub Deprecated - List Custom Repository Roles in an Organization
        call: organizations-repositories.deprecatedlistcustomrepositoryrolesinanorganization
        with:
          organization_id: rest.organization_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/cache/usage-by-repository
      name: orgs-org-actions-cache-usage-by-repository
      description: REST surface for orgs-org-actions-cache-usage-by-repository.
      operations:
      - method: GET
        name: listrepositorieswithgithubactionscacheusageforanorganization
        description: GitHub List Repositories with Github Actions Cache Usage for an Organization
        call: organizations-repositories.listrepositorieswithgithubactionscacheusageforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/permissions/repositories
      name: orgs-org-actions-permissions-repositories
      description: REST surface for orgs-org-actions-permissions-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesenabledforgithubactionsinanorganization
        description: GitHub List Selected Repositories Enabled for Github Actions in an Organization
        call: organizations-repositories.listselectedrepositoriesenabledforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesenabledforgithubactionsinanorganization
        description: GitHub Set Selected Repositories Enabled for Github Actions in an Organization
        call: organizations-repositories.setselectedrepositoriesenabledforgithubactionsinanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/permissions/repositories/{repository-id}
      name: orgs-org-actions-permissions-repositories-repository-id
      description: REST surface for orgs-org-actions-permissions-repositories-repository_id.
      operations:
      - method: PUT
        name: enableselectedrepositoryforgithubactionsinanorganization
        description: GitHub Enable Selected Repository for Github Actions in an Organization
        call: organizations-repositories.enableselectedrepositoryforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: disableselectedrepositoryforgithubactionsinanorganization
        description: GitHub Disable Selected Repository for Github Actions in an Organization
        call: organizations-repositories.disableselectedrepositoryforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runner-groups/{runner-group-id}/repositories
      name: orgs-org-actions-runner-groups-runner-group-id-repositories
      description: REST surface for orgs-org-actions-runner-groups-runner_group_id-repositories.
      operations:
      - method: GET
        name: listrepositoryaccesstoselfhostedrunnergroupinanorganization
        description: GitHub List Repository Access to Self-hosted Runner Group in an Organization
        call: organizations-repositories.listrepositoryaccesstoselfhostedrunnergroupinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setrepositoryaccessforselfhostedrunnergroupinanorganization
        description: GitHub Set Repository Access for Self-hosted Runner Group in an Organization
        call: organizations-repositories.setrepositoryaccessforselfhostedrunnergroupinanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runner-groups/{runner-group-id}/repositories/{repository-id}
      name: orgs-org-actions-runner-groups-runner-group-id-repositories-repository-id
      description: REST surface for orgs-org-actions-runner-groups-runner_group_id-repositories-repository_id.
      operations:
      - method: PUT
        name: addrepositoryaccesstoselfhostedrunnergroupinanorganization
        description: GitHub Add Repository Access to Self-hosted Runner Group in an Organization
        call: organizations-repositories.addrepositoryaccesstoselfhostedrunnergroupinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removerepositoryaccesstoselfhostedrunnergroupinanorganization
        description: GitHub Remove Repository Access to Self-hosted Runner Group in an Organization
        call: organizations-repositories.removerepositoryaccesstoselfhostedrunnergroupinanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/secrets/{secret-name}/repositories
      name: orgs-org-actions-secrets-secret-name-repositories
      description: REST surface for orgs-org-actions-secrets-secret_name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationsecret
        description: GitHub List Selected Repositories for an Organization Secret
        call: organizations-repositories.listselectedrepositoriesforanorganizationsecret
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationsecret
        description: GitHub Set Selected Repositories for an Organization Secret
        call: organizations-repositories.setselectedrepositoriesforanorganizationsecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id}
      name: orgs-org-actions-secrets-secret-name-repositories-repository-id
      description: REST surface for orgs-org-actions-secrets-secret_name-repositories-repository_id.
      operations:
      - method: PUT
        name: addselectedrepositorytoanorganizationsecret
        description: GitHub Add Selected Repository to an Organization Secret
        call: organizations-repositories.addselectedrepositorytoanorganizationsecret
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeselectedrepositoryfromanorganizationsecret
        description: GitHub Remove Selected Repository from an Organization Secret
        call: organizations-repositories.removeselectedrepositoryfromanorganizationsecret
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/variables/{name}/repositories
      name: orgs-org-actions-variables-name-repositories
      description: REST surface for orgs-org-actions-variables-name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationvariable
        description: GitHub List Selected Repositories for an Organization Variable
        call: organizations-repositories.listselectedrepositoriesforanorganizationvariable
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationvariable
        description: GitHub Set Selected Repositories for an Organization Variable
        call: organizations-repositories.setselectedrepositoriesforanorganizationvariable
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/variables/{name}/repositories/{repository-id}
      name: orgs-org-actions-variables-name-repositories-repository-id
      description: REST surface for orgs-org-actions-variables-name-repositories-repository_id.
      operations:
      - method: PUT
        name: addselectedrepositorytoanorganizationvariable
        description: GitHub Add Selected Repository to an Organization Variable
        call: organizations-repositories.addselectedrepositorytoanorganizationvariable
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeselectedrepositoryfromanorganizationvariable
        description: GitHub Remove Selected Repository from an Organization Variable
        call: organizations-repositories.removeselectedrepositoryfromanorganizationvariable
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/custom-repository-roles
      name: orgs-org-custom-repository-roles
      description: REST surface for orgs-org-custom-repository-roles.
      operations:
      - method: GET
        name: listcustomrepositoryrolesinanorganization
        description: GitHub List Custom Repository Roles in an Organization
        call: organizations-repositories.listcustomrepositoryrolesinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcustomrepositoryrole
        description: GitHub Create Custom Repository Role
        call: organizations-repositories.createcustomrepositoryrole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/custom-repository-roles/{role-id}
      name: orgs-org-custom-repository-roles-role-id
      description: REST surface for orgs-org-custom-repository-roles-role_id.
      operations:
      - method: GET
        name: getcustomrepositoryrole
        description: GitHub Get Custom Repository Role
        call: organizations-repositories.getcustomrepositoryrole
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecustomrepositoryrole
        description: GitHub Update Custom Repository Role
        call: organizations-repositories.updatecustomrepositoryrole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecustomrepositoryrole
        description: GitHub Delete Custom Repository Role
        call: organizations-repositories.deletecustomrepositoryrole
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
      name: orgs-org-dependabot-secrets-secret-name-repositories
      description: REST surface for orgs-org-dependabot-secrets-secret_name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationsecret
        description: GitHub List Selected Repositories for an Organization Secret
        call: organizations-repositories.listselectedrepositoriesforanorganizationsecret
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationsecret
        description: GitHub Set Selected Repositories for an Organization Secret
        call: organizations-repositories.setselectedrepositoriesforanorganizationsecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id}
      name: orgs-org-dependabot-secrets-secret-name-repositories-repository-id
      description: REST surface for orgs-org-dependabot-secrets-secret_name-repositories-repository_id.
      operations:
      - method: PUT
        name: addselectedrepositorytoanorganizationsecret
        description: GitHub Add Selected Repository to an Organization Secret
        call: organizations-repositories.addselectedrepositorytoanorganizationsecret
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeselectedrepositoryfromanorganizationsecret
        description: GitHub Remove Selected Repository from an Organization Secret
        call: organizations-repositories.removeselectedrepositoryfromanorganizationsecret
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/migrations/{migration-id}/repos/{repo-name}/lock
      name: orgs-org-migrations-migration-id-repos-repo-name-lock
      description: REST surface for orgs-org-migrations-migration_id-repos-repo_name-lock.
      operations:
      - method: DELETE
        name: unlockanorganizationrepository
        description: GitHub Unlock an Organization Repository
        call: organizations-repositories.unlockanorganizationrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/migrations/{migration-id}/repositories
      name: orgs-org-migrations-migration-id-repositories
      description: REST surface for orgs-org-migrations-migration_id-repositories.
      operations:
      - method: GET
        name: listrepositoriesinanorganizationmigration
        description: GitHub List Repositories in an Organization Migration
        call: organizations-repositories.listrepositoriesinanorganizationmigration
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/repos
      name: orgs-org-repos
      description: REST surface for orgs-org-repos.
      operations:
      - method: GET
        name: listorganizationrepositories
        description: GitHub List Organization Repositories
        call: organizations-repositories.listorganizationrepositories
        with:
          type: rest.type
          sort: rest.sort
          direction: rest.direction
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createanorganizationrepository
        description: GitHub Create an Organization Repository
        call: organizations-repositories.createanorganizationrepository
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/repository-fine-grained-permissions
      name: orgs-org-repository-fine-grained-permissions
      description: REST surface for orgs-org-repository-fine-grained-permissions.
      operations:
      - method: GET
        name: listrepositoryfinegrainedpermissionsforanorganization
        description: GitHub List Repository Fine-grained Permissions for an Organization
        call: organizations-repositories.listrepositoryfinegrainedpermissionsforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/repos
      name: orgs-org-teams-team-slug-repos
      description: REST surface for orgs-org-teams-team_slug-repos.
      operations:
      - method: GET
        name: listteamrepositories
        description: GitHub List Team Repositories
        call: organizations-repositories.listteamrepositories
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
      name: orgs-org-tea

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