Builder

Sync now (it also happens on every push and every minute)

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

Request

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

Path parameters

sessionIdstring uuid required

Response

Synced

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.