Skip to content
DARC
Developers

REST Resource: git

Refs checked with GitHub, each with its status.

RefCheck fields

FieldDescription
cluster
string
  • Format: slug
The cluster's slug, or null without one.
repo
string
The cluster's repository, owner/name, or null.
refs
object[]required
Each ref: {ref, kind, repo, sha?, number?, path?, url, status, reason?, fork?, author?, date?, verified?, prState?, headSha?, baseRef?}. status is one of valid, pending, not_found, foreign; reason says why a ref isn't valid. fork: in a fork of the cluster's repository.

Methods

  • git.check
    POST/api/v1/private/git/check

    Checks commit, pull request and file refs with GitHub before you submit them.