Docs
Sign in

Combine a direct crew's task branches into one branch on the server.

Merges the chosen task branches (default: every done task) in dependency order, then task order, onto a new branch koidog/<crew>/combined-<n> in Koidog's mirror, starting from the default branch's tip.

POST/api/v1/crews/{id}/integrate

Scopecrews

No agent needs git credentials: the server holds every branch. A conflicting branch gets a resolver agent (resolveConflicts, default true) or is left out and reported. Then the project's checks run on the result on a machine (a check agent with no tools); state: ready with checks.passed: true is the evidence. A GitHub project's result is pushed and gets one pull request against the default branch (openPr, default true); never a merge into it. A project with no remote repository downloads the result from downloads. One integration per crew at a time (409 integration_open). A managed crew on a GitHub project delivers its own pull request and is refused (409 managed_crew); on a project with no repository its integration branch is taken as it is (every merged task already_merged) and the project's checks run on that commit, as for a direct crew, before the downloads (refused with 409 conflict until the crew has completed: one a step stopped is resumed or retried first). Reopens a crew that had ended while the checks or a resolver run. The timeline records the key ID, action and outcome.

Path parameters.

idstringrequired

The crew's id.

Headers.

Idempotency-Keystring

Retry the same request with the same key. Retry rules.

Body.

An omitted body is read as {}.

taskIdsarray

The tasks whose branches to combine. Default: every task of the crew that finished with evidence (done). Merged in dependency order, then the crew's task order. 1 to 100 items.

resolveConflictsboolean

When a branch conflicts, start a resolver agent for it (the crew's builder connection, on a machine). False: leave it out and go on. Default true. Default true.

openPrboolean

Push the result and open one pull request against the default branch (GitHub projects only). Default true for a GitHub project.

Response.

202 Accepted · JSON object. Follow progress on the timeline.

422 validation_failed
Each schema error appears in details.