Monorepo for Tangled tangled.org
5

Configure Feed

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

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// RECORDTYPE: Pipeline 19type Pipeline struct { 20 LexiconTypeID string `json:"$type,const=sh.tangled.pipeline" cborgen:"$type,const=sh.tangled.pipeline"` 21 TriggerMetadata *Pipeline_TriggerMetadata `json:"triggerMetadata" cborgen:"triggerMetadata"` 22 Workflows []*Pipeline_Workflow `json:"workflows" cborgen:"workflows"` 23} 24 25// Pipeline_CloneOpts is a "cloneOpts" in the sh.tangled.pipeline schema. 26type Pipeline_CloneOpts struct { 27 Depth int64 `json:"depth" cborgen:"depth"` 28 Skip bool `json:"skip" cborgen:"skip"` 29 Submodules bool `json:"submodules" cborgen:"submodules"` 30 Tags bool `json:"tags" cborgen:"tags"` 31} 32 33// Pipeline_ManualTriggerData is a "manualTriggerData" in the sh.tangled.pipeline schema. 34type Pipeline_ManualTriggerData struct { 35 Inputs []*Pipeline_Pair `json:"inputs,omitempty" cborgen:"inputs,omitempty"` 36} 37 38// Pipeline_Pair is a "pair" in the sh.tangled.pipeline schema. 39type Pipeline_Pair struct { 40 Key string `json:"key" cborgen:"key"` 41 Value string `json:"value" cborgen:"value"` 42} 43 44// Pipeline_PullRequestTriggerData is a "pullRequestTriggerData" in the sh.tangled.pipeline schema. 45type Pipeline_PullRequestTriggerData struct { 46 Action string `json:"action" cborgen:"action"` 47 SourceBranch string `json:"sourceBranch" cborgen:"sourceBranch"` 48 SourceSha string `json:"sourceSha" cborgen:"sourceSha"` 49 TargetBranch string `json:"targetBranch" cborgen:"targetBranch"` 50} 51 52// Pipeline_PushTriggerData is a "pushTriggerData" in the sh.tangled.pipeline schema. 53type Pipeline_PushTriggerData struct { 54 NewSha string `json:"newSha" cborgen:"newSha"` 55 OldSha string `json:"oldSha" cborgen:"oldSha"` 56 Ref string `json:"ref" cborgen:"ref"` 57} 58 59// Pipeline_TriggerMetadata is a "triggerMetadata" in the sh.tangled.pipeline schema. 60type Pipeline_TriggerMetadata struct { 61 Kind string `json:"kind" cborgen:"kind"` 62 Manual *Pipeline_ManualTriggerData `json:"manual,omitempty" cborgen:"manual,omitempty"` 63 PullRequest *Pipeline_PullRequestTriggerData `json:"pullRequest,omitempty" cborgen:"pullRequest,omitempty"` 64 Push *Pipeline_PushTriggerData `json:"push,omitempty" cborgen:"push,omitempty"` 65 Repo *Pipeline_TriggerRepo `json:"repo" cborgen:"repo"` 66} 67 68// Pipeline_TriggerRepo is a "triggerRepo" in the sh.tangled.pipeline schema. 69type Pipeline_TriggerRepo struct { 70 DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"` 71 Did string `json:"did" cborgen:"did"` 72 Knot string `json:"knot" cborgen:"knot"` 73 Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"` 74 // repoDid: DID of the repo itself 75 RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"` 76} 77 78// Pipeline_Workflow is a "workflow" in the sh.tangled.pipeline schema. 79type Pipeline_Workflow struct { 80 Clone *Pipeline_CloneOpts `json:"clone" cborgen:"clone"` 81 Engine string `json:"engine" cborgen:"engine"` 82 Name string `json:"name" cborgen:"name"` 83 Raw string `json:"raw" cborgen:"raw"` 84}