Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Rename a branch. GitHub answers immediately but finishes in the background, and pushes to the old name fail while it is running. Renaming the default branch needs admin permission.
import asyncio from charter.packs import github result = asyncio.run(github.repos_rename_branch.ainvoke({"owner": ..., "repo": ..., "branch": ..., "newName": ...}))
repo
github.APP
github.FINE_GRAINED
contents=write
owner
string
.git
branch
main
refs/heads/main
newName
Was this page helpful?