Skip to content

Every code repo's main head (for followers; no Artifacts read)

Main as Pando last moved it: by the first push through the door, or by a merge. Answered from the monorepo object's records. A repo made before Pando kept heads is read once from Artifacts and kept. head is null for an empty repo. The meta layer's repo is not listed.

A follower (pando worktree follow) calls this on connect, then opens GET /v1/monorepos/{owner}/{monorepo}/events?topics=main&since=<seq> (WebSocket) to hear each move, and calls it again every few minutes as a safety net.

GET
https://app.gitpando.com/v1/monorepos/{owner}/{monorepo}/heads

Authorisation

  • credentialoptionalHTTP
  • sessionoptionalAPI key in cookie

Path parameters

  • ownerstringrequired

    The monorepo's owner, a namespace (a person's login or an organization). Matched without case.

    pattern: ^[a-z0-9](?:[a-z0-9]|-(?=[a-z0-9])){0,38}$
  • monorepostringrequired

    The monorepo's name within its owner (or an old name). Matched without case.

    pattern: ^[a-z0-9](?:[a-z0-9._]|-(?!-)){0,38}$

Returns

200

OK

JSON
  • headsarray ofobjectrequired
    6 properties
    • repostringrequired

      The repo's name in URLs.

    • pathstringrequired
    • default_branchstringrequired
    • headstring | nullrequired
    • head_titlestring | nullrequired

      The head commit's title (its first line), recorded when main moved: a merge's message, or the first push's commit (shortly after the push, once its numbers are read). A main recorded before titles were shows the last merge's branch title. Null when unknown, never a title from another commit.

    • updated_atstring | nullrequired
      format: date-time
  • seqinteger | nullrequired

    The event stream's newest seq when this was read; resume the socket from it. Null when the stream is off.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close