Autofix

Get an autofix run

Changed on

Returns one run: its status, the diagnosis once it succeeds, and why it failed or was canceled. Runs stay readable where autofix is not available.

Project access tokens can read runs, including read-only ones.

get/projects/{id}/autofix-runs/{runId}

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

runId, string uuid required

Autofix run ID

Response

Successful response

AutofixRun required
id, string uuid required
project_id, string uuid required
issue_id, string uuid required
trigger, 'manual' | 'new_issue' | 'regression' required

What started the run. manual is a request; new_issue and regression are automatic runs for an issue that appeared or reopened.

status, 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' required

Where a run is. canceled means the project's settings or plan stopped allowing the run before it finished; failure_code says which.

max_stage, 'diagnose' | 'pull_request' required

How far a run may go. diagnose stops at a root-cause diagnosis. pull_request may also open a draft pull request with a fix in the project's connected repository.

stage_reached, 'diagnose' | 'pull_request'

How far a run may go. diagnose stops at a root-cause diagnosis. pull_request may also open a draft pull request with a fix in the project's connected repository.

diagnosis, AutofixDiagnosis
patch, AutofixPatch

The fix the model proposed, applied to the deployed commit. Present whenever the run opened a pull request, and when a valid fix could not be published.

pull_request, AutofixPullRequest

The draft pull request the run opened on the connected repository.

pull_request_skipped, 'source_unavailable' | 'pull_request_open' | 'not_fixable' | 'low_confidence' | 'no_patch' | 'permission_missing' | 'repository_changed' | 'publish_failed'

Why a run whose max_stage is pull_request opened no pull request. The diagnosis stands either way.

commit_sha, string

The commit the diagnosis read, when a push to the connected repository deployed the resource. Absent when the run read logs only.

failure_code, string

Why the run failed or was canceled, or why its last attempt will be retried. A queued run paused while Autofix is unavailable reports feature_unavailable; it resumes without spending an attempt when Autofix returns. Other values are model_request_rejected, model_unavailable, model_refused, no_diagnosis, budget_exhausted, timed_out, attempts_exhausted, autofix_disabled, plan_required, issue_not_found, or internal_error. Runs that ended before Volcano picked the models for every run may also report api_key_rejected, settings_changed, or managed_models_unavailable; no new run reports them.

failure_message, string
created_at, string date-time required
started_at, string date-time
completed_at, string date-time

Changes

    • breaking

      removed the required property model from the response with the status

    • breaking

      removed the required property provider from the response with the status

    • breaking

      removed the required property usage from the response with the status