PUT
github_pulls_update_branch.py
from charter.packs import github
result = await github.pulls_update_branch.ainvoke({"owner": ..., "repo": ..., "pullNumber": ...})
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. |
pullNumber * | integer | The number that identifies the pull request. |
Body
| Field | Type | Description |
|---|---|---|
expectedHeadSha | string | The expected SHA of the pull request’s HEAD ref — its most recent commit. If it does not match, GitHub answers 422 rather than updating a branch that has moved since you looked. |