apicheats.dev Cheat sheet Raw .md
PUT

Try PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge — GitHub API

GitHub playground

Merge a pull request

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

4 body fields
  • commit_title · optional · string — Title for the automatic commit message.
  • commit_message · optional · string — Extra detail to append to automatic commit message.
  • sha · optional · string — SHA that pull request head must match to allow merge.
  • merge_method · optional · string — The merge method to use.