forked from tangled.org/core
Monorepo for Tangled — https://tangled.org
at master 2.5 kB view raw
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 // committerDid: did of the user that pushed this ref 22 CommitterDid string `json:"committerDid" cborgen:"committerDid"` 23 Meta *GitRefUpdate_Meta `json:"meta" cborgen:"meta"` 24 // newSha: new SHA of this ref 25 NewSha string `json:"newSha" cborgen:"newSha"` 26 // oldSha: old SHA of this ref 27 OldSha string `json:"oldSha" cborgen:"oldSha"` 28 // ref: Ref being updated 29 Ref string `json:"ref" cborgen:"ref"` 30 // repoDid: did of the owner of the repo 31 RepoDid string `json:"repoDid" cborgen:"repoDid"` 32 // repoName: name of the repo 33 RepoName string `json:"repoName" cborgen:"repoName"` 34} 35 36// GitRefUpdate_CommitCountBreakdown is a "commitCountBreakdown" in the sh.tangled.git.refUpdate schema. 37type GitRefUpdate_CommitCountBreakdown struct { 38 ByEmail []*GitRefUpdate_IndividualEmailCommitCount `json:"byEmail,omitempty" cborgen:"byEmail,omitempty"` 39} 40 41// GitRefUpdate_IndividualEmailCommitCount is a "individualEmailCommitCount" in the sh.tangled.git.refUpdate schema. 42type GitRefUpdate_IndividualEmailCommitCount struct { 43 Count int64 `json:"count" cborgen:"count"` 44 Email string `json:"email" cborgen:"email"` 45} 46 47// GitRefUpdate_IndividualLanguageSize is a "individualLanguageSize" in the sh.tangled.git.refUpdate schema. 48type GitRefUpdate_IndividualLanguageSize struct { 49 Lang string `json:"lang" cborgen:"lang"` 50 Size int64 `json:"size" cborgen:"size"` 51} 52 53// GitRefUpdate_LangBreakdown is a "langBreakdown" in the sh.tangled.git.refUpdate schema. 54type GitRefUpdate_LangBreakdown struct { 55 Inputs []*GitRefUpdate_IndividualLanguageSize `json:"inputs,omitempty" cborgen:"inputs,omitempty"` 56} 57 58// GitRefUpdate_Meta is a "meta" in the sh.tangled.git.refUpdate schema. 59type GitRefUpdate_Meta struct { 60 CommitCount *GitRefUpdate_CommitCountBreakdown `json:"commitCount" cborgen:"commitCount"` 61 IsDefaultRef bool `json:"isDefaultRef" cborgen:"isDefaultRef"` 62 LangBreakdown *GitRefUpdate_LangBreakdown `json:"langBreakdown,omitempty" cborgen:"langBreakdown,omitempty"` 63}