メインコンテンツまでスキップ

List the branches of a repository.

POST/api/v1/github-repositories/discover-branchesconnectors:read
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Lists one page of a repository's branches, by repository (github_repository_id) or by installation with the owner and name. Nothing is saved.

スコープconnectors:read (機密性の高いスコープ)
非同期いいえ
MCP ツールdiscover_github_repository_branches
Portal の権限view_github_repositories

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意

リクエスト本文​

Content-Type型
application/jsonGitHubDiscoverBranchesRequestInput

応答​

ステータス説明本文
200Success.application/json GitHubDiscoveredBranches
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

GitHubDiscoverBranchesRequestInput​

フィールド型必須説明
github_installation_idstring または null任意
github_repository_idstring または null任意
pageinteger または null任意
repo_namestring または null任意
repo_ownerstring または null任意

GitHubDiscoveredBranch​

フィールド型必須説明
commit_shastring必須
namestring必須

GitHubDiscoveredBranches​

フィールド型必須説明
branchesGitHubDiscoveredBranch の配列必須
default_branchstring必須
next_pageinteger必須The next page; 0 at the last page. ≥ -2147483648; ≤ 2147483647
pageinteger必須≥ -2147483648; ≤ 2147483647
repo_namestring必須
repo_ownerstring必須