Skip to content

Git Integration

Builder has a built-in git client. You can commit, branch, and push generated code without leaving the platform.

Endpoints

MethodEndpointDescription
GET/api/git/statusWorking tree status
GET/api/git/diffDiff of unstaged changes
POST/api/git/stageStage specific files
POST/api/git/commitCommit staged changes
POST/api/git/quick-commitStage all + commit in one call
GET/api/git/branchList branches and current branch
POST/api/git/pushPush to remote

Typical workflow

bash
# 1. Check what changed
GET /api/git/status

# 2. Stage specific files
POST /api/git/stage
{ "files": ["app/routers/users.py", "tests/test_users.py"] }

# 3. Commit
POST /api/git/commit
{
  "message": "feat(users): add CRUD endpoints with validation",
  "author": "Purple8 Builder"
}

# 4. Push
POST /api/git/push
{ "remote": "origin", "branch": "feature/users-api" }

Quick commit (single call)

bash
POST /api/git/quick-commit
{
  "message": "chore: generated by Purple8 Builder v5.4.0",
  "push": true,
  "remote": "origin",
  "branch": "main"
}

After a build

Builder automatically creates a git commit at the end of every successful build with a structured message:

feat: initial generation by Purple8 Builder

Goal: mvp
Agents: 23 activated
Files: 47 generated
Lines: 3,820
CTQ score: 84/100
Build time: 9m 32s

Purple8 Builder is proprietary software. All rights reserved.