Skip to main content
GitHub Docs
Version:
Free, Pro, & Team
GitHub Docs を検索する
REST API
/
ブランチ
All products
REST API
API Version:
2022-11-28 (latest)
クイックスタート
概要
Guides
REST API リファレンス
アクション
アクティビティ
アプリ
課金
ブランチ
ブランチ
保護されたブランチ
チェック
行動規範
Code Scanning
Codespaces
コラボレーター
コミット
Copilot
Dependabot
依存関係グラフ
Deploy keys
デプロイメント
絵文字
Gists
Git データベース
Gitignore
操作
issue
ライセンス
Markdown
Meta
メトリック
移行
組織
パッケージ
ページ
Projects (classic)
Pulls
レート制限
リアクション
リリース
リポジトリ
検索
シークレット スキャン
セキュリティ アドバイザリ
Teams
ユーザー
リポジトリ webhook
REST API はバージョン管理になりました。
詳細については、「
API のバージョン管理について
」を参照してください。
REST API
/
ブランチ
ブランチ
この REST API を使い、ブランチとその保護設定の変更します。
Branches
List branches
Get a branch
Rename a branch
Sync a fork branch with the upstream repository
Merge a branch
Branch protection
Get branch protection
Update branch protection
Delete branch protection
Get admin branch protection
Set admin branch protection
Delete admin branch protection
Get pull request review protection
Update pull request review protection
Delete pull request review protection
Get commit signature protection
Create commit signature protection
Delete commit signature protection
Get status checks protection
Update status check protection
Remove status check protection
Get all status check contexts
Add status check contexts
Set status check contexts
Remove status check contexts
Get access restrictions
Delete access restrictions
Get apps with access to the protected branch
Add app access restrictions
Set app access restrictions
Remove app access restrictions
Get teams with access to the protected branch
Add team access restrictions
Set team access restrictions
Remove team access restrictions
Get users with access to the protected branch
Add user access restrictions
Set user access restrictions
Remove user access restrictions