SDK reference / Models / Delivery

PreviewCreate

Kind: class

Namespace: Egulu.Sdk.Models.Delivery

A private preview of a pull request: one revision of an app at 0 % of production traffic, reachable by project members and by share links (W36; ADR-0701, ADR-0605, ADR-1102).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Delivery.PreviewCreate_annotations?annotationsAt most 256 KiB in all; never policy input.
AppNamestring?appNameThe app the preview is a revision of.
BaseBranchstring?baseBranchThe base branch; `main` when absent.
DatabaseBranchRequestedbool?databaseBranchRequestedWhether a database branch is wanted for the preview. Set at creation.
DisplayNamestring?displayNameUp to 63 characters.
HeadBranchstring?headBranchThe head branch; `pr-{prNumber}` when absent.
HeadShastring?headShaThe head commit. In a request it is a claim; the git provider's answer wins.
HostLabelstring?hostLabelThe host label of the preview's URL; the app's name when absent.
LabelsList<string>?labelsThe pull request's labels: an array of names, not a map. The label `ok-to-preview` is a maintainer's approval of a fork's preview.
OverlayModels.Delivery.EnvironmentOverlay?overlayVariables and secret references the preview lays over the app's own. Set at creation.
PrNumberint?prNumberThe pull request's number; 1 or more.
SourceRepositorystring?sourceRepositoryThe repository of the pull request; the app's name when absent.