Merge

Check if branches are mergeable

Check if two branches can be merged and list any conflicts.

get/api/repos/{namespace}/{repo_name}/merge/{base_head}

Request

Path parameters

namespacestring required

Namespace of the repository

repo_namestring required

Name of the repository

base_headstring required

The base and head revisions separated by '..'

Response

Merge status returned successfully

oxen_versionstring nullable
statusstring required
status_messagestring required
is_mergeableboolean required

Example response

{
  "commits": [
    {
      "author": "ox",
      "email": "ox@example.com",
      "id": "a1b2c3d4e5f67890abcdef1234567890",
      "message": "Refactor data loading pipeline.",
      "parent_ids": [
        "f1e2d3c4b5a67890fedcba9876543210"
      ],
      "timestamp": "2025-01-01T10:00:00Z"
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.