Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / tangledpipeline.go
4.1 kB 93 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.pipeline 6 7import ( 8 "github.com/bluesky-social/indigo/lex/util" 9) 10 11const ( 12 PipelineNSID = "sh.tangled.pipeline" 13) 14 15func init() { 16 util.RegisterType("sh.tangled.pipeline", &Pipeline{}) 17} // 18// DEPRECATED: use sh.tangled.ci.pipeline instead 19// 20// RECORDTYPE: Pipeline 21type Pipeline struct { 22 LexiconTypeID string `json:"$type,const=sh.tangled.pipeline" cborgen:"$type,const=sh.tangled.pipeline"` 23 TriggerMetadata *Pipeline_TriggerMetadata `json:"triggerMetadata" cborgen:"triggerMetadata"` 24 Workflows []*Pipeline_Workflow `json:"workflows" cborgen:"workflows"` 25} 26 27// Pipeline_CloneOpts is a "cloneOpts" in the sh.tangled.pipeline schema. 28type Pipeline_CloneOpts struct { 29 Depth int64 `json:"depth" cborgen:"depth"` 30 Skip bool `json:"skip" cborgen:"skip"` 31 Submodules bool `json:"submodules" cborgen:"submodules"` 32 Tags bool `json:"tags" cborgen:"tags"` 33} 34 35// Pipeline_ManualTriggerData is a "manualTriggerData" in the sh.tangled.pipeline schema. 36type Pipeline_ManualTriggerData struct { 37 Inputs []*Pipeline_Pair `json:"inputs,omitempty" cborgen:"inputs,omitempty"` 38 // ref: optional ref the SHA was resolved from, for display and TANGLED_REF 39 Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"` 40 // sha: commit SHA the manual run targets 41 Sha string `json:"sha" cborgen:"sha"` 42} 43 44// Pipeline_Pair is a "pair" in the sh.tangled.pipeline schema. 45type Pipeline_Pair struct { 46 Key string `json:"key" cborgen:"key"` 47 Value string `json:"value" cborgen:"value"` 48} 49 50// Pipeline_PullRequestTriggerData is a "pullRequestTriggerData" in the sh.tangled.pipeline schema. 51type Pipeline_PullRequestTriggerData struct { 52 // pull: AT-URI of the sh.tangled.repo.pull record this run belongs to 53 Pull *string `json:"pull,omitempty" cborgen:"pull,omitempty"` 54 SourceBranch string `json:"sourceBranch" cborgen:"sourceBranch"` 55 SourceSha string `json:"sourceSha" cborgen:"sourceSha"` 56 TargetBranch string `json:"targetBranch" cborgen:"targetBranch"` 57} 58 59// Pipeline_PushTriggerData is a "pushTriggerData" in the sh.tangled.pipeline schema. 60type Pipeline_PushTriggerData struct { 61 NewSha string `json:"newSha" cborgen:"newSha"` 62 OldSha string `json:"oldSha" cborgen:"oldSha"` 63 Ref string `json:"ref" cborgen:"ref"` 64} 65 66// Pipeline_TriggerMetadata is a "triggerMetadata" in the sh.tangled.pipeline schema. 67type Pipeline_TriggerMetadata struct { 68 Kind string `json:"kind" cborgen:"kind"` 69 Manual *Pipeline_ManualTriggerData `json:"manual,omitempty" cborgen:"manual,omitempty"` 70 PullRequest *Pipeline_PullRequestTriggerData `json:"pullRequest,omitempty" cborgen:"pullRequest,omitempty"` 71 Push *Pipeline_PushTriggerData `json:"push,omitempty" cborgen:"push,omitempty"` 72 Repo *Pipeline_TriggerRepo `json:"repo" cborgen:"repo"` 73 // sourceRepo: Repository DID that code and workflow definitions are checked out from, when different from repo (e.g. a fork's commit for a fork-based manual trigger). If absent, source uses repo itself. 74 SourceRepo *string `json:"sourceRepo,omitempty" cborgen:"sourceRepo,omitempty"` 75} 76 77// Pipeline_TriggerRepo is a "triggerRepo" in the sh.tangled.pipeline schema. 78type Pipeline_TriggerRepo struct { 79 DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"` 80 Did string `json:"did" cborgen:"did"` 81 Knot string `json:"knot" cborgen:"knot"` 82 Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"` 83 // repoDid: DID of the repo itself 84 RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"` 85} 86 87// Pipeline_Workflow is a "workflow" in the sh.tangled.pipeline schema. 88type Pipeline_Workflow struct { 89 Clone *Pipeline_CloneOpts `json:"clone" cborgen:"clone"` 90 Engine string `json:"engine" cborgen:"engine"` 91 Name string `json:"name" cborgen:"name"` 92 Raw string `json:"raw" cborgen:"raw"` 93}