GET
github_repos_get_branch.py
Requires
repo, read:user.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get one branch: its head commit and whether it is protected.
from charter.packs import github
result = await github.repos_get_branch.ainvoke({"owner": ..., "repo": ..., "branch": ...})
repo, read:user.| Field | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
branch * | string | The name of the branch. Cannot contain wildcard characters. A plain name — main, not refs/heads/main. |
Was this page helpful?