git.security.get-dependency-fix

The last fix pull request asked for, and the open ones

GET /git/api/repositories/{repoId}/security/dependency-alerts/fixIAM git:ListSecurityAlertsRead

Request syntax

GET /git/api/repositories/{repoId}/security/dependency-alerts/fix

Path parameters

  • repoIdRequired

    string

    Constraints: uuid

Response

200 with `last` (status, error, prNumber, startedAt, finishedAt, or null if none was asked for) and `openPullRequests` (number, title, sourceBranch).

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

Fields of data

  • lastAlways

    object, may be null

    The last fix asked for; null if none was
  • last.​statusAlways

    one of running, succeeded, failed

    Where the fix is
  • last.​errorAlways

    string, may be null

    Why it failed; null otherwise
  • last.​prNumberAlways

    number, may be null

    The pull request it opened; null while running or when it failed
  • last.​startedAtAlways

    string

    When it was asked for (ISO 8601)
  • last.​finishedAtAlways

    string, may be null

    When it finished (ISO 8601); null while running
  • openPullRequestsAlways

    array of object

    Fix pull requests still open
  • openPullRequests[].​numberAlways

    number

    The pull request number
  • openPullRequests[].​titleAlways

    string

    Its title
  • openPullRequests[].​sourceBranchAlways

    string

    Its branch, under ews/deps/

Checked against the handlers: every route test validates their answers against this schema.

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 git:ListSecurityAlerts 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 git security get-dependency-fix repoId

Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_git_security_get-dependency-fix.