Forked monorepo for Tangled
0

Configure Feed

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

core / spindle / models / pipeline.go
597 B 32 lines
1package models 2 3import "github.com/bluesky-social/indigo/atproto/syntax" 4 5type Pipeline struct { 6 RepoDid syntax.DID 7 Workflows map[Engine][]Workflow 8 // whether the code being ran was checked out from RepoDid itself 9 TrustedSource bool 10} 11 12type Step interface { 13 Name() string 14 Command() string 15 Kind() StepKind 16} 17 18type StepKind int 19 20const ( 21 // steps injected by the CI runner 22 StepKindSystem StepKind = iota 23 // steps defined by the user in the original pipeline 24 StepKindUser 25) 26 27type Workflow struct { 28 Steps []Step 29 Name string 30 Data any 31 Environment map[string]string 32}