v1

latestOpenAPI 3.0.32026-07-22115106141.4 KB
Repository Workspace Manipulation

Cherry-pick commit

Cherry-picks changes from a specific commit (identified by ref_id) into the current workspace.

Process:

  • Creates a temporary patch from the source commit
  • Applies it to the workspace
  • If conflicts occur, returns a merge ID that must be resolved before proceeding

Requirements: Requires WRITE access.

Returns:

  • 404 Not Found if the reference doesn't exist
  • 202 Accepted with merge_id if conflicts occurred
  • 204 No Content on clean application
post/repos/{repo_id}/workspaces/{workspace_id}/cherry-pick

Request body

ref_idstring required

The commit to cherry-pick

Response

The cherry-pick is in progress. It has conflicts requiring active input from the user for conflict resolution. The response contains a merge ID, which can be used for querying /repos/{repo_id}/merges/{merge_id}

merge_idstring required

Example response

{
  "merge_id": "example_id"
}