Save autofix settings
Changed onSaves 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.
Request
- Base URLhttps://api.volcano.dev
- AuthHTTP bearer
Path parameters
Project ID
Request body
How far a run goes. Omitted, it keeps the saved value, or is pull_request when the project has no saved settings.
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
Whether Volcano diagnoses the project's issues with AI.
How far a run goes. Defaults to pull_request.
Whether a new or regressed issue starts a run on its own. Defaults to true. When false, runs start only on request.
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.
When the settings were last saved. Absent until the first save.
Changes
- breaking
added to the
max_stagerequest propertyallOflist - breaking
removed the enum value
diagnoseof the request propertymax_stage - breaking
removed the enum value
pull_requestof the request propertymax_stage
14 more changes in this revision
- breaking