Skip to content

A project's settings (owners)

Any of them. releases_public: the switch "Anyone can download releases" (release files only, never code). ci_policy: when the project's CI builds run. every_push (the default) builds each push to a branch; a newer push cancels the build of the branch's old head. on_merge builds nothing on push: the first unforced merge of a head starts its build and answers 412 checks_not_green with checks_started, and the merge lands once the required checks are green. main_only never builds a branch. Main's merge commit builds under all three, and is never cancelled. review: risk-based review's switch and thresholds (docs/risk-review/DESIGN.md); a change counts at once for every open branch.

PATCH
https://app.gitpando.com/v1/monorepos/{owner}/{monorepo}/repos/{repo}

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}$
  • repostringrequired

    The repo's name (projects-web).

Request bodyJSONrequired

  • releases_publicoptionalboolean
  • ci_policyoptionalevery_pushoron_mergeormain_only

    When a project's CI builds run (updateRepo). In the repo list and getRepo.

  • reviewoptionalobject

    Any of: enabled, auto_below and human_above (0 to 1, rounded to hundredths, auto_below not above human_above), human_for_sensitive.

    4 properties
    • enabledoptionalboolean
    • auto_belowoptionalnumber
    • human_aboveoptionalnumber
    • human_for_sensitiveoptionalboolean

Returns

200

OK

JSON
  • monorepostringrequired

    The monorepo's owner/name.

  • namestringrequired

    The repo's id in URLs (its path with / turned into -).

  • pathstringrequired

    projects/web, or . for a plain repo.

  • default_branchstringrequired

    Always main for now.

  • clone_urlstringrequired

    The git door URL: https://<host>/<owner>/<monorepo>/<name>.git, or https://<host>/<owner>/<name>.git for a plain repo.

  • created_atstringrequired
    format: date-time
  • descriptionoptionalstring | null
  • required_checksoptionalarray | null

    Read from .pando/pando.toml on main when the repo is fetched one at a time (getRepo); left out of lists. Null while unknown.

  • checks_unknownoptionalstring | null

    With required_checks, why they are unknown (pando.toml unreadable or broken); else null.

  • releases_publicoptionalboolean

    The switch "Anyone can download releases" (getRepo only). On, the project's release files download without signing in; never its code.

  • ci_policyoptionalevery_pushoron_mergeormain_only

    When a project's CI builds run (updateRepo). In the repo list and getRepo.

  • reviewoptionalobject

    Risk-based review (getRepo only): enabled, auto_below (0.35), human_above (0.70), human_for_sensitive (true), and sensitive, the paths [review] sensitive in .pando/pando.toml names as the last scored push read it, else the defaults.

  • created_byoptionalstring

403

An error

JSON
  • errorobjectrequired
    6 properties
    • codestringrequired
    • messagestringrequired
    • pathsoptionalarray ofstring
    • checksoptionalobject

      GitHub's combined status, plus the required contexts and which are missing.

      6 properties
      • shastring | nullrequired
      • statesuccessorpendingorfailureorerrorormissingorunknownrequired

        success when the merge gate passes; missing when a required context has not reported; unknown while the required checks are (an unforced merge is refused).

      • requiredarray | nullrequired

        Null while unknown.

      • checks_unknownstring | nullrequired

        Why the required checks are unknown, in plain words: "Pando couldn't read this monorepo's required checks; try again", or "pando.toml line 3: expected comma or end of structure; fix it on main, or merge with force". Null otherwise.

      • statusesarray ofobjectrequired

        The latest status per context.

        8 properties
        • shastringrequired
        • contextstringrequired
        • statependingorsuccessorfailureorerrororsupersededrequired

          GitHub's four, and superseded: written by Pando when a newer push cancelled the build reporting the check. A superseded check counts as not reported.

        • created_atstringrequired
          format: date-time
        • target_urloptionalstring | null
        • descriptionoptionalstring | null
        • creatoroptionalstring

          The member who posted it (a login); app:<slug> for a status posted with a status token or by a CI integration; hook:<hook id> for a status token from a web hook with no app.

        • appoptionalstring | null

          The CI service that reported it (buildkite, github-actions, ...), stamped by Pando from a status token or a CI integration, never from the body or target_url. Null when a member posted it with their own credential. The web shows the service's mark for a slug it knows.

      • missingoptionalarray ofstring
    • checks_startedoptionalboolean

      A refused merge started the branch's checks (the project's ci_policy is on_merge).

    • reviewoptionalobject

      412 review_required and risk_pending: the head's risk-based review (Branch.review's shape).

Navigation

Type to search…

↑↓ navigate↵ selectEsc close