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.git.refUpdate
6
7const (
8 GitRefUpdateNSID = "sh.tangled.git.refUpdate"
9)
10
11func init() {
12 // util.RegisterType("sh.tangled.git.refUpdate", &GitRefUpdate{})
13} //
14// RECORDTYPE: GitRefUpdate
15type GitRefUpdate struct {
16 LexiconTypeID string `json:"$type,const=sh.tangled.git.refUpdate" cborgen:"$type,const=sh.tangled.git.refUpdate"`
17 // committerDid: did of the user that pushed this ref
18 CommitterDid string `json:"committerDid" cborgen:"committerDid"`
19 Meta *GitRefUpdate_Meta `json:"meta" cborgen:"meta"`
20 // newSha: new SHA of this ref
21 NewSha string `json:"newSha" cborgen:"newSha"`
22 // oldSha: old SHA of this ref
23 OldSha string `json:"oldSha" cborgen:"oldSha"`
24 // ownerDid: did of the owner of the repo
25 OwnerDid string `json:"ownerDid" cborgen:"ownerDid"`
26 // ref: Ref being updated
27 Ref string `json:"ref" cborgen:"ref"`
28 // repoDid: DID of the repo itself, if assigned
29 RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
30 // repoName: name of the repo
31 RepoName string `json:"repoName" cborgen:"repoName"`
32}
33
34// GitRefUpdate_CommitCountBreakdown is a "commitCountBreakdown" in the sh.tangled.git.refUpdate schema.
35type GitRefUpdate_CommitCountBreakdown struct {
36 ByEmail []*GitRefUpdate_IndividualEmailCommitCount `json:"byEmail,omitempty" cborgen:"byEmail,omitempty"`
37}
38
39// GitRefUpdate_IndividualEmailCommitCount is a "individualEmailCommitCount" in the sh.tangled.git.refUpdate schema.
40type GitRefUpdate_IndividualEmailCommitCount struct {
41 Count int64 `json:"count" cborgen:"count"`
42 Email string `json:"email" cborgen:"email"`
43}
44
45// GitRefUpdate_IndividualLanguageSize is a "individualLanguageSize" in the sh.tangled.git.refUpdate schema.
46type GitRefUpdate_IndividualLanguageSize struct {
47 Lang string `json:"lang" cborgen:"lang"`
48 Size int64 `json:"size" cborgen:"size"`
49}
50
51// GitRefUpdate_LangBreakdown is a "langBreakdown" in the sh.tangled.git.refUpdate schema.
52type GitRefUpdate_LangBreakdown struct {
53 Inputs []*GitRefUpdate_IndividualLanguageSize `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
54}
55
56// GitRefUpdate_Meta is a "meta" in the sh.tangled.git.refUpdate schema.
57type GitRefUpdate_Meta struct {
58 CommitCount *GitRefUpdate_CommitCountBreakdown `json:"commitCount" cborgen:"commitCount"`
59 IsDefaultRef bool `json:"isDefaultRef" cborgen:"isDefaultRef"`
60 LangBreakdown *GitRefUpdate_LangBreakdown `json:"langBreakdown,omitempty" cborgen:"langBreakdown,omitempty"`
61}