forked from
tangled.org/core
Monorepo for Tangled
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.ci.trigger
6
7const ()
8
9// CiTrigger_Manual is a "manual" in the sh.tangled.ci.trigger schema.
10//
11// RECORDTYPE: CiTrigger_Manual
12type CiTrigger_Manual struct {
13 LexiconTypeID string `json:"$type,const=sh.tangled.ci.trigger#manual" cborgen:"$type,const=sh.tangled.ci.trigger#manual"`
14 Inputs []*CiTrigger_Pair `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
15 // ref: optional ref the SHA was resolved from, for display and TANGLED_REF
16 Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"`
17 // sha: commit SHA the manual run targets
18 Sha string `json:"sha" cborgen:"sha"`
19 // sourceRepo: Repository DID to check out code and workflow definitions from, if different from the target repo.
20 SourceRepo *string `json:"sourceRepo,omitempty" cborgen:"sourceRepo,omitempty"`
21}
22
23// CiTrigger_Pair is a "pair" in the sh.tangled.ci.trigger schema.
24type CiTrigger_Pair struct {
25 Key string `json:"key" cborgen:"key"`
26 Value string `json:"value" cborgen:"value"`
27}
28
29// CiTrigger_PullRequest is a "pullRequest" in the sh.tangled.ci.trigger schema.
30//
31// TODO: reference PR record with strongRef instead of embedding raw values
32//
33// RECORDTYPE: CiTrigger_PullRequest
34type CiTrigger_PullRequest struct {
35 LexiconTypeID string `json:"$type,const=sh.tangled.ci.trigger#pullRequest" cborgen:"$type,const=sh.tangled.ci.trigger#pullRequest"`
36 // pull: AT-URI of the sh.tangled.repo.pull record this run belongs to
37 Pull *string `json:"pull,omitempty" cborgen:"pull,omitempty"`
38 SourceBranch *string `json:"sourceBranch,omitempty" cborgen:"sourceBranch,omitempty"`
39 // sourceRepo: Repository DID to check out code and workflow definitions from, if different from the target repo.
40 SourceRepo *string `json:"sourceRepo,omitempty" cborgen:"sourceRepo,omitempty"`
41 SourceSha string `json:"sourceSha" cborgen:"sourceSha"`
42 TargetBranch string `json:"targetBranch" cborgen:"targetBranch"`
43}
44
45// CiTrigger_Push is a "push" in the sh.tangled.ci.trigger schema.
46//
47// RECORDTYPE: CiTrigger_Push
48type CiTrigger_Push struct {
49 LexiconTypeID string `json:"$type,const=sh.tangled.ci.trigger#push" cborgen:"$type,const=sh.tangled.ci.trigger#push"`
50 NewSha string `json:"newSha" cborgen:"newSha"`
51 OldSha string `json:"oldSha" cborgen:"oldSha"`
52 Ref string `json:"ref" cborgen:"ref"`
53}