Merge a branch

POST {{baseUrl}}/repos/:owner/:repo/merges

Request Body

{"base"=>"<string>", "head"=>"<string>", "commit_message"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e&quot;,&quot;sha&quot;:&quot;6dcb09b5b57875f334f61aebed695e2e4193db5e&quot;,&quot;node_id&quot;:&quot;MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e&quot;,&quot;comments_url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments&quot;,&quot;commit&quot;:{&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e&quot;,&quot;author&quot;:{&quot;name&quot;:&quot;Monalisa Octocat&quot;,&quot;email&quot;:&quot;mona@github.com&quot;,&quot;date&quot;:&quot;2011-04-14T16:00:49Z&quot;},&quot;committer&quot;:{&quot;name&quot;:&quot;Monalisa Octocat&quot;,&quot;email&quot;:&quot;mona@github.com&quot;,&quot;date&quot;:&quot;2011-04-14T16:00:49Z&quot;},&quot;message&quot;:&quot;Fix all the bugs&quot;,&quot;tree&quot;:{&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e&quot;,&quot;sha&quot;:&quot;6dcb09b5b57875f334f61aebed695e2e4193db5e&quot;},&quot;comment_count&quot;:0,&quot;verification&quot;:{&quot;verified&quot;:false,&quot;reason&quot;:&quot;unsigned&quot;,&quot;signature&quot;:null,&quot;payload&quot;:null}},&quot;author&quot;:{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false},&quot;committer&quot;:{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false},&quot;parents&quot;:[{&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e&quot;,&quot;sha&quot;:&quot;6dcb09b5b57875f334f61aebed695e2e4193db5e&quot;}],&quot;stats&quot;:{&quot;additions&quot;:104,&quot;deletions&quot;:4,&quot;total&quot;:108},&quot;files&quot;:[{&quot;filename&quot;:&quot;file1.txt&quot;,&quot;additions&quot;:10,&quot;deletions&quot;:2,&quot;changes&quot;:12,&quot;status&quot;:&quot;modified&quot;,&quot;raw_url&quot;:&quot;https://github.com/octocat/Hello-World/raw/7ca483543807a51b6079e54ac4cc392bc29ae284/file1.txt&quot;,&quot;blob_url&quot;:&quot;https://github.com/octocat/Hello-World/blob/7ca483543807a51b6079e54ac4cc392bc29ae284/file1.txt&quot;,&quot;patch&quot;:&quot;@@ -29,7 +29,7 @@\n.....&quot;}]}