list-branches
Retrieve branch details from GitHub Enterprise repositories, including protected branches, with pagination support for efficient repository management.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
owner | Yes | User or organization name | |
page | No | Page number | |
perPage | No | Items per page | |
protected_only | No | Whether to show only protected branches | |
repo | Yes | Repository name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"owner": {
"description": "User or organization name",
"type": "string"
},
"page": {
"default": 1,
"description": "Page number",
"type": "number"
},
"perPage": {
"default": 30,
"description": "Items per page",
"type": "number"
},
"protected_only": {
"default": false,
"description": "Whether to show only protected branches",
"type": "boolean"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo"
],
"type": "object"
}