Skip to main content
Документация по GitHub
Version:
Free, Pro, & Team
Поиск в документации GitHub
REST API
/
Ветви
All products
REST API
API Version:
2022-11-28 (latest)
Краткое руководство
Общие сведения
Guides
Справочник по REST API
Действия
Действие
Приложения
Выставление счетов
Ветви
Ветви
Защищенные ветви
Проверки
Codes of conduct
Проверка кода
Codespaces
Collaborators
Фиксации
Copilot
Dependabot
Граф зависимостей
Ключи развертывания
Развернутые приложения
Эмодзи
Gist
База данных Git
Gitignore
Взаимодействия
Проблемы
Лицензии
Markdown
Meta
Метрики
Миграции
Организации
Пакеты
Страницы
Projects (classic)
Запросы данных
Ограничение скорости
Реакции
Выпуски
Репозитории
Поиск
Сканирование секретов
Рекомендации по безопасности
Teams
Пользователи
Веб-перехватчики репозитория
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