POST
github_repos_rename_branch.py
from charter.packs import github
result = await github.repos_rename_branch.ainvoke({"owner": ..., "repo": ..., "branch": ..., "newName": ...})
Requires
repo, read:user.Path parameters
| 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. |
Body
| Field | Type | Description |
|---|---|---|
newName * | string | The new name of the branch. |