GitHub · Capability

github-repos-api — Get

github-repos-api — Get. 42 operations. Lead operation: GitHub Get Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubGet

What You Can Do

GET
Getrepository — GitHub Get Repository
/v1/repos/{owner}/{repo}
GET
Getcheckrun — GitHub Get Check Run
/v1/repos/{owner}/{repo}/check-runs/{check-run-id}
GET
Getchecksuite — GitHub Get Check Suite
/v1/repos/{owner}/{repo}/check-suites/{check-suite-id}
GET
Getcommitcomment — GitHub Get Commit Comment
/v1/repos/{owner}/{repo}/comments/{comment-id}
GET
Getcommit — GitHub Get Commit
/v1/repos/{owner}/{repo}/commits/{ref}
GET
Getthecombinedstatusforspecificreference — GitHub Get the Combined Status for Specific Reference
/v1/repos/{owner}/{repo}/commits/{ref}/status
GET
Getrepositorycontent — GitHub Get Repository Content
/v1/repos/{owner}/{repo}/contents/{path}
GET
Getdiffofthedependenciesbetweencommits — GitHub Get Diff of the Dependencies Between Commits
/v1/repos/{owner}/{repo}/dependency-graph/compare/{basehead}
GET
Getdeployment — GitHub Get Deployment
/v1/repos/{owner}/{repo}/deployments/{deployment-id}
GET
Getdeploymentstatus — GitHub Get Deployment Status
/v1/repos/{owner}/{repo}/deployments/{deployment-id}/statuses/{status-id}
GET
Getanenvironment — GitHub Get an Environment
/v1/repos/{owner}/{repo}/environments/{environment-name}
GET
Getdeploymentbranchpolicy — GitHub Get Deployment Branch Policy
/v1/repos/{owner}/{repo}/environments/{environment-name}/deployment-branch-policies/{branch-policy-id}
GET
Getanenvironmentpublickey — GitHub Get an Environment Public Key
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/public-key
GET
Getanenvironmentsecret — GitHub Get an Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
GET
Getanenvironmentvariable — GitHub Get an Environment Variable
/v1/repos/{owner}/{repo}/environments/{environment-name}/variables/{name}
GET
Getblob — GitHub Get Blob
/v1/repos/{owner}/{repo}/git/blobs/{file-sha}
GET
Getcommitobject — GitHub Get Commit Object
/v1/repos/{owner}/{repo}/git/commits/{commit-sha}
GET
Getreference — GitHub Get Reference
/v1/repos/{owner}/{repo}/git/ref/{ref}
GET
Gettag — GitHub Get Tag
/v1/repos/{owner}/{repo}/git/tags/{tag-sha}
GET
Gettree — GitHub Get Tree
/v1/repos/{owner}/{repo}/git/trees/{tree-sha}
GET
Getrepositoryinstallationfortheauthenticatedapp — GitHub Get Repository Installation for the Authenticated App
/v1/repos/{owner}/{repo}/installation
GET
Getdeploykey — GitHub Get Deploy Key
/v1/repos/{owner}/{repo}/keys/{key-id}
GET
Getlabel — GitHub Get Label
/v1/repos/{owner}/{repo}/labels/{name}
GET
Getthelicenseforrepository — GitHub Get the License for Repository
/v1/repos/{owner}/{repo}/license
GET
Getmilestone — GitHub Get Milestone
/v1/repos/{owner}/{repo}/milestones/{milestone-number}
GET
Getgithubenterpriseserverpagessite — GitHub Get Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
GET
Getlatestpagesbuild — GitHub Get Latest Pages Build
/v1/repos/{owner}/{repo}/pages/builds/latest
GET
Getgithubenterpriseserverpagesbuild — GitHub Get Github Enterprise Server Pages Build
/v1/repos/{owner}/{repo}/pages/builds/{build-id}
GET
Getrepositoryreadme — GitHub Get Repository Readme
/v1/repos/{owner}/{repo}/readme
GET
Getrepositoryreadmefordirectory — GitHub Get Repository Readme for Directory
/v1/repos/{owner}/{repo}/readme/{dir}
GET
Getreleaseasset — GitHub Get Release Asset
/v1/repos/{owner}/{repo}/releases/assets/{asset-id}
GET
Getthelatestrelease — GitHub Get the Latest Release
/v1/repos/{owner}/{repo}/releases/latest
GET
Getreleasebytagname — GitHub Get Release by Tag Name
/v1/repos/{owner}/{repo}/releases/tags/{tag}
GET
Getrelease — GitHub Get Release
/v1/repos/{owner}/{repo}/releases/{release-id}
GET
Getsecretscanningalert — GitHub Get Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}
GET
Gettheweeklycommitactivity — GitHub Get the Weekly Commit Activity
/v1/repos/{owner}/{repo}/stats/code-frequency
GET
Getthelastyearofcommitactivity — GitHub Get the Last Year of Commit Activity
/v1/repos/{owner}/{repo}/stats/commit-activity
GET
Getallcontributorcommitactivity — GitHub Get All Contributor Commit Activity
/v1/repos/{owner}/{repo}/stats/contributors
GET
Gettheweeklycommitcount — GitHub Get the Weekly Commit Count
/v1/repos/{owner}/{repo}/stats/participation
GET
Getthehourlycommitcountforeachday — GitHub Get the Hourly Commit Count for Each Day
/v1/repos/{owner}/{repo}/stats/punch-card
GET
Getrepositorysubscription — GitHub Get Repository Subscription
/v1/repos/{owner}/{repo}/subscription
GET
Getallrepositorytopics — GitHub Get All Repository Topics
/v1/repos/{owner}/{repo}/topics

MCP Tools

github-get-repository

GitHub Get Repository

read-only idempotent
github-get-check-run

GitHub Get Check Run

read-only idempotent
github-get-check-suite

GitHub Get Check Suite

read-only idempotent
github-get-commit-comment

GitHub Get Commit Comment

read-only idempotent
github-get-commit

GitHub Get Commit

read-only idempotent
github-get-combined-status-specific

GitHub Get the Combined Status for Specific Reference

read-only idempotent
github-get-repository-content

GitHub Get Repository Content

read-only idempotent
github-get-diff-dependencies-between

GitHub Get Diff of the Dependencies Between Commits

read-only idempotent
github-get-deployment

GitHub Get Deployment

read-only idempotent
github-get-deployment-status

GitHub Get Deployment Status

read-only idempotent
github-get-environment

GitHub Get an Environment

read-only idempotent
github-get-deployment-branch-policy

GitHub Get Deployment Branch Policy

read-only idempotent
github-get-environment-public-key

GitHub Get an Environment Public Key

read-only idempotent
github-get-environment-secret

GitHub Get an Environment Secret

read-only idempotent
github-get-environment-variable

GitHub Get an Environment Variable

read-only idempotent
github-get-blob

GitHub Get Blob

read-only idempotent
github-get-commit-object

GitHub Get Commit Object

read-only idempotent
github-get-reference

GitHub Get Reference

read-only idempotent
github-get-tag

GitHub Get Tag

read-only idempotent
github-get-tree

GitHub Get Tree

read-only idempotent
github-get-repository-installation-authenticated

GitHub Get Repository Installation for the Authenticated App

read-only idempotent
github-get-deploy-key

GitHub Get Deploy Key

read-only idempotent
github-get-label

GitHub Get Label

read-only idempotent
github-get-license-repository

GitHub Get the License for Repository

read-only idempotent
github-get-milestone

GitHub Get Milestone

read-only idempotent
github-get-github-enterprise-server

GitHub Get Github Enterprise Server Pages Site

read-only idempotent
github-get-latest-pages-build

GitHub Get Latest Pages Build

read-only idempotent
github-get-github-enterprise-server-2

GitHub Get Github Enterprise Server Pages Build

read-only idempotent
github-get-repository-readme

GitHub Get Repository Readme

read-only idempotent
github-get-repository-readme-directory

GitHub Get Repository Readme for Directory

read-only idempotent
github-get-release-asset

GitHub Get Release Asset

read-only idempotent
github-get-latest-release

GitHub Get the Latest Release

read-only idempotent
github-get-release-tag-name

GitHub Get Release by Tag Name

read-only idempotent
github-get-release

GitHub Get Release

read-only idempotent
github-get-secret-scanning-alert

GitHub Get Secret Scanning Alert

read-only idempotent
github-get-weekly-commit-activity

GitHub Get the Weekly Commit Activity

read-only idempotent
github-get-last-year-commit

GitHub Get the Last Year of Commit Activity

read-only idempotent
github-get-all-contributor-commit

GitHub Get All Contributor Commit Activity

read-only idempotent
github-get-weekly-commit-count

GitHub Get the Weekly Commit Count

read-only idempotent
github-get-hourly-commit-count

GitHub Get the Hourly Commit Count for Each Day

read-only idempotent
github-get-repository-subscription

GitHub Get Repository Subscription

read-only idempotent
github-get-all-repository-topics

GitHub Get All Repository Topics

read-only idempotent

Capability Spec

repo-tags-get.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Get
  description: 'github-repos-api — Get. 42 operations. Lead operation: GitHub Get Repository. Self-contained Naftiko capability
    covering one Github business surface.'
  tags:
  - Github
  - Get
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repo-tags-get
    baseUri: ''
    description: github-repos-api — Get business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo
      path: /repos/{owner}/{repo}
      operations:
      - name: getrepository
        method: GET
        description: GitHub Get 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: repos-owner-repo-check-runs-check_run_id
      path: /repos/{owner}/{repo}/check-runs/{check_run_id}
      operations:
      - name: getcheckrun
        method: GET
        description: GitHub Get 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: repos-owner-repo-check-suites-check_suite_id
      path: /repos/{owner}/{repo}/check-suites/{check_suite_id}
      operations:
      - name: getchecksuite
        method: GET
        description: GitHub Get Check Suite
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-comments-comment_id
      path: /repos/{owner}/{repo}/comments/{comment_id}
      operations:
      - name: getcommitcomment
        method: GET
        description: GitHub Get 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: repos-owner-repo-commits-ref
      path: /repos/{owner}/{repo}/commits/{ref}
      operations:
      - name: getcommit
        method: GET
        description: GitHub Get Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-commits-ref-status
      path: /repos/{owner}/{repo}/commits/{ref}/status
      operations:
      - name: getthecombinedstatusforspecificreference
        method: GET
        description: GitHub Get the Combined Status for Specific 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: repos-owner-repo-contents-path
      path: /repos/{owner}/{repo}/contents/{path}
      operations:
      - name: getrepositorycontent
        method: GET
        description: GitHub Get Repository Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: path
          in: path
          type: string
          description: path parameter
          required: true
        - name: ref
          in: query
          type: string
          description: 'The name of the commit/branch/tag. Default: the repositorys default branch.'
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-dependency-graph-compare-basehead
      path: /repos/{owner}/{repo}/dependency-graph/compare/{basehead}
      operations:
      - name: getdiffofthedependenciesbetweencommits
        method: GET
        description: GitHub Get Diff of the Dependencies Between Commits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: basehead
          in: path
          type: string
          description: The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named
            revisions will be resolved to their corresponding HEAD comm
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-deployments-deployment_id
      path: /repos/{owner}/{repo}/deployments/{deployment_id}
      operations:
      - name: getdeployment
        method: GET
        description: GitHub Get Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-deployments-deployment_id-statuses-status_id
      path: /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}
      operations:
      - name: getdeploymentstatus
        method: GET
        description: GitHub Get Deployment Status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: status_id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-environments-environment_name
      path: /repos/{owner}/{repo}/environments/{environment_name}
      operations:
      - name: getanenvironment
        method: GET
        description: GitHub Get 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: 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: getdeploymentbranchpolicy
        method: GET
        description: GitHub Get 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: repos-owner-repo-environments-environment_name-secrets-public-key
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key
      operations:
      - name: getanenvironmentpublickey
        method: GET
        description: GitHub Get an Environment Public Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-environments-environment_name-secrets-secret_name
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
      operations:
      - name: getanenvironmentsecret
        method: GET
        description: GitHub Get 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: repos-owner-repo-environments-environment_name-variables-name
      path: /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
      operations:
      - name: getanenvironmentvariable
        method: GET
        description: GitHub Get 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: repos-owner-repo-git-blobs-file_sha
      path: /repos/{owner}/{repo}/git/blobs/{file_sha}
      operations:
      - name: getblob
        method: GET
        description: GitHub Get Blob
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: file_sha
          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: repos-owner-repo-git-commits-commit_sha
      path: /repos/{owner}/{repo}/git/commits/{commit_sha}
      operations:
      - name: getcommitobject
        method: GET
        description: GitHub Get Commit Object
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-git-ref-ref
      path: /repos/{owner}/{repo}/git/ref/{ref}
      operations:
      - name: getreference
        method: GET
        description: GitHub Get 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: repos-owner-repo-git-tags-tag_sha
      path: /repos/{owner}/{repo}/git/tags/{tag_sha}
      operations:
      - name: gettag
        method: GET
        description: GitHub Get Tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tag_sha
          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: repos-owner-repo-git-trees-tree_sha
      path: /repos/{owner}/{repo}/git/trees/{tree_sha}
      operations:
      - name: gettree
        method: GET
        description: GitHub Get Tree
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tree_sha
          in: path
          type: string
          description: The SHA1 value or ref (branch or tag) name of the tree.
          required: true
        - name: recursive
          in: query
          type: string
          description: 'Setting this parameter to any value returns the objects or subtrees referenced by the tree specified
            in `:tree_sha`. For example, setting `recursive` to any of '
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-installation
      path: /repos/{owner}/{repo}/installation
      operations:
      - name: getrepositoryinstallationfortheauthenticatedapp
        method: GET
        description: GitHub Get Repository Installation for the Authenticated App
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-keys-key_id
      path: /repos/{owner}/{repo}/keys/{key_id}
      operations:
      - name: getdeploykey
        method: GET
        description: GitHub Get Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-labels-name
      path: /repos/{owner}/{repo}/labels/{name}
      operations:
      - name: getlabel
        method: GET
        description: GitHub Get 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: repos-owner-repo-license
      path: /repos/{owner}/{repo}/license
      operations:
      - name: getthelicenseforrepository
        method: GET
        description: GitHub Get the License 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: repos-owner-repo-milestones-milestone_number
      path: /repos/{owner}/{repo}/milestones/{milestone_number}
      operations:
      - name: getmilestone
        method: GET
        description: GitHub Get 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: repos-owner-repo-pages
      path: /repos/{owner}/{repo}/pages
      operations:
      - name: getgithubenterpriseserverpagessite
        method: GET
        description: GitHub Get 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: repos-owner-repo-pages-builds-latest
      path: /repos/{owner}/{repo}/pages/builds/latest
      operations:
      - name: getlatestpagesbuild
        method: GET
        description: GitHub Get Latest Pages Build
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pages-builds-build_id
      path: /repos/{owner}/{repo}/pages/builds/{build_id}
      operations:
      - name: getgithubenterpriseserverpagesbuild
        method: GET
        description: GitHub Get Github Enterprise Server Pages Build
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: build_id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-readme
      path: /repos/{owner}/{repo}/readme
      operations:
      - name: getrepositoryreadme
        method: GET
        description: GitHub Get Repository Readme
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ref
          in: query
          type: string
          description: 'The name of the commit/branch/tag. Default: the repositorys default branch.'
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-readme-dir
      path: /repos/{owner}/{repo}/readme/{dir}
      operations:
      - name: getrepositoryreadmefordirectory
        method: GET
        description: GitHub Get Repository Readme for Directory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dir
          in: path
          type: string
          description: The alternate path to look for a README file
          required: true
        - name: ref
          in: query
          type: string
          description: 'The name of the commit/branch/tag. Default: the repositorys default branch.'
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-releases-assets-asset_id
      path: /repos/{owner}/{repo}/releases/assets/{asset_id}
      operations:
      - name: getreleaseasset
        method: GET
        description: GitHub Get 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: repos-owner-repo-releases-latest
      path: /repos/{owner}/{repo}/releases/latest
      operations:
      - name: getthelatestrelease
        method: GET
        description: GitHub Get the Latest 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: repos-owner-repo-releases-tags-tag
      path: /repos/{owner}/{repo}/releases/tags/{tag}
      operations:
      - name: getreleasebytagname
        method: GET
        description: GitHub Get Release by Tag Name
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tag
          in: path
          type: string
          description: tag 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: repos-owner-repo-releases-release_id
      path: /repos/{owner}/{repo}/releases/{release_id}
      operations:
      - name: getrelease
        method: GET
        description: GitHub Get 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: repos-owner-repo-secret-scanning-alerts-alert_number
      path: /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}
      operations:
      - name: getsecretscanningalert
        method: GET
        description: GitHub Get 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: repos-owner-repo-stats-code_frequency
      path: /repos/{owner}/{repo}/stats/code_frequency
      operations:
      - name: gettheweeklycommitactivity
        method: GET
        description: GitHub Get the Weekly Commit Activity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-stats-commit_activity
      path: /repos/{owner}/{repo}/stats/commit_activity
      operations:
      - name: getthelastyearofcommitactivity
        method: GET
        description: GitHub Get the Last Year of Commit Activity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-stats-contributors
      path: /repos/{owner}/{repo}/stats/contributors
      operations:
      - name: getallcontributorcommitactivity
        method: GET
        description: GitHub Get All Contributor Commit Activity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-stats-participation
      path: /repos/{owner}/{repo}/stats/participation
      operations:
      - name: gettheweeklycommitcount
        method: GET
        description: GitHub Get the Weekly Commit Count
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-stats-punch_card
      path: /repos/{owner}/{repo}/stats/punch_card
      operations:
      - name: getthehourlycommitcountforeachday
        method: GET
        description: GitHub Get the Hourly Commit Count for Each Day
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-subscription
      path: /repos/{owner}/{repo}/subscription
      operations:
      - name: getrepositorysubscription
        method: GET
        description: GitHub Get Repository Subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-topics
      path: /repos/{owner}/{repo}/topics
      operations:
      - name: getallrepositorytopics
        method: GET
        description: GitHub Get All Repository Topics
        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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: repo-tags-get-rest
    port: 8080
    description: REST adapter for github-repos-api — Get. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}
      name: repos-owner-repo
      description: REST surface for repos-owner-repo.
      operations:
      - method: GET
        name: getrepository
        description: GitHub Get Repository
        call: repo-tags-get.getrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/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: GET
        name: getcheckrun
        description: GitHub Get Check Run
        call: repo-tags-get.getcheckrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/check-suites/{check-suite-id}
      name: repos-owner-repo-check-suites-check-suite-id
      description: REST surface for repos-owner-repo-check-suites-check_suite_id.
      operations:
      - method: GET
        name: getchecksuite
        description: GitHub Get Check Suite
        call: repo-tags-get.getchecksuite
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/comments/{comment-id}
      name: repos-owner-repo-comments-comment-id
      description: REST surface for repos-owner-repo-comments-comment_id.
      operations:
      - method: GET
        name: getcommitcomment
        description: GitHub Get Commit Comment
        call: repo-tags-get.getcommitcomment
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/commits/{ref}
      name: repos-owner-repo-commits-ref
      description: REST surface for repos-owner-repo-commits-ref.
      operations:
      - method: GET
        name: getcommit
        description: GitHub Get Commit
        call: repo-tags-get.getcommit
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/commits/{ref}/status
      name: repos-owner-repo-commits-ref-status
      description: REST surface for repos-owner-repo-commits-ref-status.
      operations:
      - method: GET
        name: getthecombinedstatusforspecificreference
        description: GitHub Get the Combined Status for Specific Reference
        call: repo-tags-get.getthecombinedstatusforspecificreference
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/contents/{path}
      name: repos-owner-repo-contents-path
      description: REST surface for repos-owner-repo-contents-path.
      operations:
      - method: GET
        name: getrepositorycontent
        description: GitHub Get Repository Content
        call: repo-tags-get.getrepositorycontent
        with:
          path: rest.path
          ref: rest.ref
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/dependency-graph/compare/{basehead}
      name: repos-owner-repo-dependency-graph-compare-basehead
      description: REST surface for repos-owner-repo-dependency-graph-compare-basehead.
      operations:
      - method: GET
        name: getdiffofthedependenciesbetweencommits
        description: GitHub Get Diff of the Dependencies Between Commits
        call: repo-tags-get.getdiffofthedependenciesbetweencommits
        with:
          basehead: rest.basehead

# --- truncated at 32 KB (70 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/repo-tags-get.yaml