Projects
Git Connections

Update a project's Git auto-deploy settings

Changed on

Full replace of the project's Git auto-deploy settings: what a push to the connected repo's production branch deploys.

Connecting a repository sets auto_deploy_enabled and deploy_functions to true for a project that has never called this endpoint, so a push deploys without any further setup. Once these settings have been saved here they are the project's own: connecting, rebinding, disconnecting and reconnecting all leave them untouched, including when they were saved before any repository was connected. Frontend settings are off until set here; the frontend need not exist when they are saved, since frontend_name is resolved at deploy time.

put/projects/{id}/git-deploy-settings

Request

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

Path parameters

id, string uuid required

Project ID

Request body

UpdateProjectGitDeploySettingsRequest required

Full replace of a project's Git auto-deploy settings.

auto_deploy_enabled, boolean required
deploy_functions, boolean required
frontend_name, string

Frontend to deploy on push. Omit or empty to deploy no frontend.

frontend_app_root, string

App root the frontend builds from. Requires frontend_name; omit for the repo root.

Response

The project's updated Git auto-deploy settings

ProjectGitDeploySettings required

A project's GitHub auto-deploy settings: what a push to the connected repo's production branch deploys. All settings are default-off.

auto_deploy_enabled, boolean required

Whether a production-branch push triggers a deployment.

deploy_functions, boolean required

Whether the repo's functions are deployed on push.

frontend_name, string

Name of the frontend to build and deploy on push. Omitted when no frontend is deployed. Resolved at deploy time; need not exist yet.

frontend_app_root, string

App root (subdirectory) the frontend builds from. Omitted for the repo root.

updated_at, string date-time required

When the settings were last saved, or last changed by connecting a repository. Other changes to the project leave it alone. Settings a connection turned on before Volcano began tracking this report the project's last change before then; settings never saved or changed report when the project was created.

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • breaking

      added the new path request parameter id

    • breaking

      the response's body type changed from no type to object for status

    17 more changes in this revision