Github API

Getting access, Developing, Testing

Back to Github

Merge a pull request

This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See "Secondary rate limits" and "Dealing with secondary rate limits" for details.

Input

type: object properties: parameters: type: object properties: owner: type: string description: The account owner of the repository. The name is not case sensitive. repo: type: string description: The name of the repository. The name is not case sensitive. pull_number: type: integer description: The number that identifies the pull request. required: - owner - repo - pull_number title: Parameters data: type: object properties: commit_title: type: string description: Title for the automatic commit message. commit_message: type: string description: Extra detail to append to automatic commit message. sha: type: string description: SHA that pull request head must match to allow merge. merge_method: type: string description: The merge method to use. enum: - merge - squash - rebase title: Data

Output

type: object title: Pull Request Merge Result properties: sha: type: string merged: type: boolean message: type: string