List branches
list_branchesLists a repository's branches, most recently pushed first, returning name, head commit SHA, and protected status; use pagination or fetch all pages up to 1,000.
Instructions
List a repository's branches (owner/repo), most recently pushed first, each slimmed to name, head commit SHA and whether it is protected. Without page/limit it walks every page and returns them all, up to 1,000 with truncated set beyond that; with page/limit it returns one page. Use get_repo for the default branch, list_branch_protections for the protection rules themselves, and list_commits for a branch's history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number. | |
| repo | Yes | Repository name. | |
| limit | No | Results per page. | |
| owner | Yes | Repository owner — user or organization. |