branches

Replay the changes from the given commit on the branch

Changed on
post/repositories/{repository}/branches/{branch}/cherry-pick

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/repositories/{repository}/branches/{branch}/cherry-pick
  • Auth
    • HTTP bearer
    • or HTTP basic
    • or API key in cookie internal_auth_session

Request body

refstring required

the commit to cherry-pick, given by a ref

parent_numberinteger

When cherry-picking a merge commit, the parent number (starting from 1) with which to perform the diff. The default branch is parent 1.

forceboolean

Response

the cherry-pick commit

idstring required
parentsstring[] required
committerstring required
messagestring required
creation_dateinteger required

Unix Epoch in seconds

meta_range_idstring required
metadataobject
generationinteger
versioninteger

Changes

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status