/repos/{owner}/{repo}/mergesMerge a branch or commit
Merges a head branch or commit into a base branch in a repository. Supply base and head to identify the branches or commit involved, and optionally provide commit_message for the resulting merge commit. A successful merge returns the resulting commit, while an already completed merge returns no content.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Merge request identifying the base branch, head branch or commit, and optional commit message.
A 403 is returned when the authenticated user is not permitted to merge in the repository. A 404 is returned when the repository, base, or head does not exist. A 409 is returned when the branches cannot be merged cleanly, and a 422 is returned when validation fails or the endpoint has been spammed. base and head are required; head may be a branch name or commit SHA.