list_branches
Retrieve and sort branches in a Gitee repository by name or update date, filtering by owner, repo, and page settings. Simplify repository branch management.
Instructions
列出 Gitee 仓库中的分支
Input Schema
Name | Required | Description | Default |
---|---|---|---|
direction | No | Sort direction | asc |
owner | Yes | Repository owner path (enterprise, organization, or personal path) | |
page | No | Page number | |
per_page | No | Number of items per page, maximum 100 | |
repo | Yes | Repository path | |
sort | No | Sort field | name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"direction": {
"default": "asc",
"description": "Sort direction",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"owner": {
"description": "Repository owner path (enterprise, organization, or personal path)",
"type": "string"
},
"page": {
"default": 1,
"description": "Page number",
"type": "integer"
},
"per_page": {
"description": "Number of items per page, maximum 100",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"repo": {
"description": "Repository path",
"type": "string"
},
"sort": {
"default": "name",
"description": "Sort field",
"enum": [
"name",
"updated"
],
"type": "string"
}
},
"required": [
"owner",
"repo"
],
"type": "object"
}