manchicken / octocrab

A modern, extensible GitHub API Client for Rust.
Other
0 stars 0 forks source link

POST /repos/{owner}/{repo}/merges #186

Closed manchicken closed 4 months ago

manchicken commented 8 months ago

Endpoint POST /repos/{owner}/{repo}/merges has statuses 201,204,403,404,409,422: Merge a branch

manchicken commented 7 months ago

If a branch has already been merged, this call will return a 204. We need to add a test here to make sure that if something is already merged that it works.

Ref: https://docs.github.com/en/enterprise-cloud@latest/rest/branches/branches?apiVersion=2022-11-28#merge-a-branch