Autofix

Save autofix settings

Changed on

Saves the project's autofix settings. An omitted max_stage or auto_trigger keeps its saved value, or takes its default when the project has no saved settings, so {"enabled": true} on a new project diagnoses every new or regressed issue and opens a draft pull request with each fix. Set max_stage and auto_trigger to stop at a diagnosis or to start runs only on request. Volcano picks the models a run uses.

Project access tokens are refused. Autofix opens pull requests in the project's repository, so a person turns it on with a platform token.

During the preview, turning autofix on needs the SUPERAGENT plan, and nothing is charged yet. Settings that are already on stay stored after a downgrade, and saving them again is not refused, but no run starts until the plan allows autofix again. Other saves need no plan.

Where autofix is not available, a project with saved settings can still change them with enabled: false. Saving enabled: true answers 404 with code feature_unavailable.

put/projects/{id}/autofix

Request

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

Path parameters

id, string uuid required

Project ID

Request body

UpdateAutofixSettingsRequest required
enabled, boolean required
max_stage, 'diagnose' | 'pull_request'

How far a run goes. Omitted, it keeps the saved value, or is pull_request when the project has no saved settings.

auto_trigger, boolean

Whether a new or regressed issue starts a run on its own. Omitted, it keeps the saved value, or is true when the project has no saved settings.

Response

Saved

AutofixSettings required
project_id, string uuid required
enabled, boolean required

Whether Volcano diagnoses the project's issues with AI.

max_stage, 'diagnose' | 'pull_request' required

How far a run goes. Defaults to pull_request.

auto_trigger, boolean required

Whether a new or regressed issue starts a run on its own. Defaults to true. When false, runs start only on request.

plan_includes_autofix, boolean

Whether the owner's plan includes autofix. When false, saved settings stay stored and no run starts. Absent when a save that needed no plan succeeded but the plan could not be resolved.

updated_at, string date-time

When the settings were last saved. Absent until the first save.

Changes

    • breaking

      added to the max_stage request property allOf list

    • breaking

      removed the enum value diagnose of the request property max_stage

    • breaking

      removed the enum value pull_request of the request property max_stage

    14 more changes in this revision