Monorepo for Tangled
tangled.org
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.git.refUpdate
6
7import (
8 "github.com/bluesky-social/indigo/lex/util"
9)
10
11const (
12 GitRefUpdateNSID = "sh.tangled.git.refUpdate"
13)
14
15func init() {
16 util.RegisterType("sh.tangled.git.refUpdate", &GitRefUpdate{})
17} //
18// RECORDTYPE: GitRefUpdate
19type GitRefUpdate struct {
20 LexiconTypeID string `json:"$type,const=sh.tangled.git.refUpdate" cborgen:"$type,const=sh.tangled.git.refUpdate"`
21 // changedFiles: files changed between commits
22 ChangedFiles []string `json:"changedFiles,omitempty" cborgen:"changedFiles,omitempty"`
23 // committerDid: did of the user that pushed this ref
24 CommitterDid string `json:"committerDid" cborgen:"committerDid"`
25 Meta *GitRefUpdate_Meta `json:"meta" cborgen:"meta"`
26 // newSha: new SHA of this ref
27 NewSha string `json:"newSha" cborgen:"newSha"`
28 // oldSha: old SHA of this ref
29 OldSha string `json:"oldSha" cborgen:"oldSha"`
30 // ownerDid: did of the owner of the repo
31 OwnerDid *string `json:"ownerDid,omitempty" cborgen:"ownerDid,omitempty"`
32 // pushOptions: push options passed on git-push
33 PushOptions []string `json:"pushOptions,omitempty" cborgen:"pushOptions,omitempty"`
34 // ref: Ref being updated
35 Ref string `json:"ref" cborgen:"ref"`
36 // repo: DID of the repo itself
37 Repo string `json:"repo" cborgen:"repo"`
38}
39
40// GitRefUpdate_CommitCountBreakdown is a "commitCountBreakdown" in the sh.tangled.git.refUpdate schema.
41type GitRefUpdate_CommitCountBreakdown struct {
42 ByEmail []*GitRefUpdate_IndividualEmailCommitCount `json:"byEmail,omitempty" cborgen:"byEmail,omitempty"`
43}
44
45// GitRefUpdate_IndividualEmailCommitCount is a "individualEmailCommitCount" in the sh.tangled.git.refUpdate schema.
46type GitRefUpdate_IndividualEmailCommitCount struct {
47 Count int64 `json:"count" cborgen:"count"`
48 Email string `json:"email" cborgen:"email"`
49}
50
51// GitRefUpdate_IndividualLanguageSize is a "individualLanguageSize" in the sh.tangled.git.refUpdate schema.
52type GitRefUpdate_IndividualLanguageSize struct {
53 Lang string `json:"lang" cborgen:"lang"`
54 Size int64 `json:"size" cborgen:"size"`
55}
56
57// GitRefUpdate_LangBreakdown is a "langBreakdown" in the sh.tangled.git.refUpdate schema.
58type GitRefUpdate_LangBreakdown struct {
59 Inputs []*GitRefUpdate_IndividualLanguageSize `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
60}
61
62// GitRefUpdate_Meta is a "meta" in the sh.tangled.git.refUpdate schema.
63type GitRefUpdate_Meta struct {
64 CommitCount *GitRefUpdate_CommitCountBreakdown `json:"commitCount" cborgen:"commitCount"`
65 IsDefaultRef bool `json:"isDefaultRef" cborgen:"isDefaultRef"`
66 LangBreakdown *GitRefUpdate_LangBreakdown `json:"langBreakdown,omitempty" cborgen:"langBreakdown,omitempty"`
67}