PATCH
github_git_refs_update.py
from charter.packs import github
result = await github.git_refs_update.ainvoke({"owner": ..., "repo": ..., "ref": ..., "sha": ...})
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. |
ref * | string | The Git reference to move, formatted as heads/BRANCH_NAME or tags/TAG_NAME. Without the refs/ prefix. |
Body
| Field | Type | Description |
|---|---|---|
sha * | string | The SHA1 value to set this reference to. |
force | boolean | Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to false will make sure you’re not overwriting work. |