Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.24.7, which is no longer the latest release. See the latest release.

Merge a branch from upstream

POST
/repos/{owner}/{repo}/merge-upstream
curl --request POST \
--url https://gitea.com/api/v1/repos/example/example/merge-upstream \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "branch": "example" }'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

object
branch
string
Examplegenerated
{
"branch": "example"
}
Media typeapplication/json
object
merge_type
string
Examplegenerated
{
"merge_type": "example"
}

APIError is error format response

Media typeapplication/json
message
string
url
string

APINotFound is a not found empty response

Media typeapplication/json