forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
this repo has no description
fork
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}
31
32// Pipeline_Dependency is a "dependency" in the sh.tangled.pipeline schema.
33type Pipeline_Dependency struct {
34 Packages []string `json:"packages" cborgen:"packages"`
35 Registry string `json:"registry" cborgen:"registry"`
36}
37
38// Pipeline_ManualTriggerData is a "manualTriggerData" in the sh.tangled.pipeline schema.
39type Pipeline_ManualTriggerData struct {
40 Inputs []*Pipeline_Pair `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
41}
42
43// Pipeline_Pair is a "pair" in the sh.tangled.pipeline schema.
44type Pipeline_Pair struct {
45 Key string `json:"key" cborgen:"key"`
46 Value string `json:"value" cborgen:"value"`
47}
48
49// Pipeline_PullRequestTriggerData is a "pullRequestTriggerData" in the sh.tangled.pipeline schema.
50type Pipeline_PullRequestTriggerData struct {
51 Action string `json:"action" cborgen:"action"`
52 SourceBranch string `json:"sourceBranch" cborgen:"sourceBranch"`
53 SourceSha string `json:"sourceSha" cborgen:"sourceSha"`
54 TargetBranch string `json:"targetBranch" cborgen:"targetBranch"`
55}
56
57// Pipeline_PushTriggerData is a "pushTriggerData" in the sh.tangled.pipeline schema.
58type Pipeline_PushTriggerData struct {
59 NewSha string `json:"newSha" cborgen:"newSha"`
60 OldSha string `json:"oldSha" cborgen:"oldSha"`
61 Ref string `json:"ref" cborgen:"ref"`
62}
63
64// Pipeline_Step is a "step" in the sh.tangled.pipeline schema.
65type Pipeline_Step struct {
66 Command string `json:"command" cborgen:"command"`
67 Environment []*Pipeline_Pair `json:"environment,omitempty" cborgen:"environment,omitempty"`
68 Name string `json:"name" cborgen:"name"`
69}
70
71// Pipeline_TriggerMetadata is a "triggerMetadata" in the sh.tangled.pipeline schema.
72type Pipeline_TriggerMetadata struct {
73 Kind string `json:"kind" cborgen:"kind"`
74 Manual *Pipeline_ManualTriggerData `json:"manual,omitempty" cborgen:"manual,omitempty"`
75 PullRequest *Pipeline_PullRequestTriggerData `json:"pullRequest,omitempty" cborgen:"pullRequest,omitempty"`
76 Push *Pipeline_PushTriggerData `json:"push,omitempty" cborgen:"push,omitempty"`
77 Repo *Pipeline_TriggerRepo `json:"repo" cborgen:"repo"`
78}
79
80// Pipeline_TriggerRepo is a "triggerRepo" in the sh.tangled.pipeline schema.
81type Pipeline_TriggerRepo struct {
82 DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"`
83 Did string `json:"did" cborgen:"did"`
84 Knot string `json:"knot" cborgen:"knot"`
85 Repo string `json:"repo" cborgen:"repo"`
86}
87
88// Pipeline_Workflow is a "workflow" in the sh.tangled.pipeline schema.
89type Pipeline_Workflow struct {
90 Clone *Pipeline_CloneOpts `json:"clone" cborgen:"clone"`
91 Dependencies []*Pipeline_Dependency `json:"dependencies" cborgen:"dependencies"`
92 Environment []*Pipeline_Pair `json:"environment" cborgen:"environment"`
93 Name string `json:"name" cborgen:"name"`
94 Steps []*Pipeline_Step `json:"steps" cborgen:"steps"`
95}