apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/merges — GitHub API

GitHub playground

Merge a branch

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

3 body fields
  • base · required · string — The name of the base branch that the head will be merged into.
  • head · required · string — The head to merge. This can be a branch name or a commit SHA1.
  • commit_message · optional · string — Commit message to use for the merge commit. If omitted, a default message will be used.