Projects
Git Connections

Initialize an empty repository with a project's stored source

Changed on

Creates the first commit in the connected repository and pushes it directly to the configured production branch. The push enters the ordinary Git auto-deploy flow. Direct source writes remain frozen until that deployment succeeds and the repository becomes the source of truth.

The caller confirms the production branch shown before export. Starting export pins that branch: later GitHub default-branch changes do not repoint the project. If the configured branch changed after the caller read it, the request fails without exporting so the caller can show and confirm the new value.

The response lists what the export could not carry: resources with no successful deployment to take source from (skipped), and things no export can hand back (omitted) — migrations, which Volcano stores no copy of, and credential-shaped files, which are left for their owner to add.

Requires a connected repository with no commits or branches, and runs once. Volcano never creates the repository. If GitHub did not confirm the push, retrying creates the same commit and adopts it when it already reached the repository.

post/projects/{id}/source-export

Request

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

Path parameters

id, string uuid required

Project ID

Request body

ExportProjectSourceRequest required
production_branch, string required

The currently configured production branch the user confirmed for export.

Response

The initial production-branch commit that was pushed

ProjectSourceExport required

The initial production-branch commit, and everything export could not carry.

repo_full_name, string required
branch, string required

The production branch that was created.

commit_sha, string required
file_count, integer required
skipped, ProjectSourceExportSkip[] required

Resources whose source could not be taken, with the reason. Most often a resource that has never deployed successfully.

omitted, ProjectSourceExportOmission[] required

Things deliberately left out of the branch.

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

    29 more changes in this revision