ci.releases.candidate

The commit a release would take now, what it adds, and why newer commits do not qualify

GET /ci/api/repositories/{repoId}/releaseIAM ci:ListRunsRead

A commit qualifies when the newest completed run of each required workflow succeeded and each required commit status is success. Walks the release branch’s first-parent line from its tip back to the last release (at most 200 commits).

Request syntax

GET /ci/api/repositories/{repoId}/release

Path parameters

  • repoIdRequired

    string

    Constraints: uuid

Response

200 with { configured: false, configError } when the repository has no (valid) .dcloud/release.yml; else { configured: true, config (name, workflowPath, branch, refInput, inputs, requires), lastRelease (sha, runId, runNumber, finishedAt, or null), candidate (oid, subject, authoredAt, checks: each required workflow and status with ok and state; null when none qualifies), upToDate, changes (commits the candidate adds to the last release, newest first; null when unknown), changesTruncated, skipped (newer commits that do not qualify, with reasons, at most 5), skippedCount, why (one line when there is no candidate) }. 404 when the repository is not in this organization.

A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.

Errors

  • 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
  • 401No credentials, or an access key that is unknown, revoked or expired.
  • 403The caller's policies do not allow ci:ListRuns on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
  • 404The resource does not exist in your organization.

Examples

The required parameters only, with example values. Replace id and the other placeholders with your own.

dcloud ci releases candidate repoId

Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_ci_releases_candidate.