Skip to main content

SubgraphCheckExtensionPayload

FieldDescription
actorIdThe unique identifier of the actor that triggered the check.
checkIdThe unique identifier of the check.
organizationInformation about the organization that triggered the check.
namespaceInformation about the associated namespace.
vcsContextDetails about the Version Control System (VCS) that triggered the check. This field is only included when the check is initiated from a VCS.
affectedGraphsA list of all graphs affected by the check.
subgraphThe subgraph that triggered the check. This field is only included when the check is for an existing subgraph.
urlThe URL from which the file containing bulk data can be downloaded.

OrganizationContext

FieldDescription
idThe unique identifier of the organization.
slugThe slug of the organization.

NamespaceContext

FieldDescription
idThe unique identifier of the namespace.
nameThe display name of the namespace.

VCSContext

FieldDescription
authorThe email address of the commit author.
commitShaThe SHA hash of the commit that triggered the check.
branchThe name of the branch associated with the commit.

AffectedGraphInfo

FieldDescription
idThe unique identifier of the graph.
nameThe name of the graph.

SubgraphContext

FieldDescription
idThe unique identifier of the subgraph.
nameThe name of the subgraph.
isDeletedIndicates whether the check was triggered by a subgraph deletion.

TypeScript definition

interface OrganizationInfo {
  id: string;
  slug: string;
}

interface NamespaceInfo {
  id: string;
  name: string;
}

interface VCSContext {
  author: string;
  commitSha: string;
  branch: string;
}

interface AffectedGraphInfo {
  id: string;
  name: string;
  namespace: NamespaceInfo;
}

interface SubgraphInfo {
  id: string;
  name: string;
  isDeleted: boolean;
}

interface SubgraphCheckExtensionPayload {
  organization: OrganizationInfo;
  namespace: NamespaceInfo;
  vcsContext: VCSContext | undefined;
  affectedGraphs: AffectedGraphInfo[];
  url: string;
  subgraph: SubgraphInfo | undefined;
}