1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.repo.pull
6
7import (
8 "github.com/bluesky-social/indigo/lex/util"
9)
10
11const (
12 RepoPullNSID = "sh.tangled.repo.pull"
13)
14
15func init() {
16 util.RegisterType("sh.tangled.repo.pull", &RepoPull{})
17} //
18// RECORDTYPE: RepoPull
19type RepoPull struct {
20 LexiconTypeID string `json:"$type,const=sh.tangled.repo.pull" cborgen:"$type,const=sh.tangled.repo.pull"`
21 Body *string `json:"body,omitempty" cborgen:"body,omitempty"`
22 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
23 Patch string `json:"patch" cborgen:"patch"`
24 Source *RepoPull_Source `json:"source,omitempty" cborgen:"source,omitempty"`
25 StackInfo *RepoPull_StackInfo `json:"stackInfo,omitempty" cborgen:"stackInfo,omitempty"`
26 Target *RepoPull_Target `json:"target" cborgen:"target"`
27 Title string `json:"title" cborgen:"title"`
28}
29
30// RepoPull_Source is a "source" in the sh.tangled.repo.pull schema.
31type RepoPull_Source struct {
32 Branch string `json:"branch" cborgen:"branch"`
33 Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
34 Sha string `json:"sha" cborgen:"sha"`
35}
36
37// RepoPull_StackInfo is a "stackInfo" in the sh.tangled.repo.pull schema.
38type RepoPull_StackInfo struct {
39 // changeId: Change ID of this commit/change.
40 ChangeId string `json:"changeId" cborgen:"changeId"`
41 // parent: AT-URI of the PR for the parent commit/change in the change stack.
42 Parent *string `json:"parent,omitempty" cborgen:"parent,omitempty"`
43}
44
45// RepoPull_Target is a "target" in the sh.tangled.repo.pull schema.
46type RepoPull_Target struct {
47 Branch string `json:"branch" cborgen:"branch"`
48 Repo string `json:"repo" cborgen:"repo"`
49}