Builder

Follow another branch (the builder takes its code; create: start it from the current one)

post/builder/sessions/{sessionId}/github/branch

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/builder/sessions/{sessionId}/github/branch
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

sessionIdstring uuid required

Request body

branchstring required
createboolean

Response

Switched

state'not_connected' | 'pending' | 'synced' | 'ahead' | 'behind' | 'diverged' | 'error' required
availableboolean required

Whether this server can reach customers' repositories (the GitHub App's key is configured)

installationIdstring nullable required
accountLoginstring nullable required
repoFullNamestring nullable required
repoUrlstring nullable required
branchstring nullable required
syncBranch'hostingsurge-sync' required
pullRequestUrlstring nullable required

diverged: where to open the pull request from hostingsurge-sync

lastSyncedAtstring nullable required

ISO-8601 timestamp

Changes

No recorded changes to this operation across all 1 revision of this API.