PUT
github_pulls_merge.py
from charter.packs import github
result = await github.pulls_merge.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 |
|---|---|---|
mergeMethod | MergeMethod | How to merge. Absent, GitHub creates a merge commit. ‘squash’ collapses the branch into one commit, ‘rebase’ replays it. |
commitTitle | string | Title for the merge commit. |
commitMessage | string | Extra detail for the merge commit. |
sha | string | The head SHA this merge expects. If the branch has moved since, the merge is refused rather than merging work you have not seen. |