Monorepo for Tangled
at push-pmqotzqwskqq 65 lines 2.6 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 // ownerDid: did of the owner of the repo 29 OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` 30 // ref: Ref being updated 31 Ref string `json:"ref" cborgen:"ref"` 32 // repoDid: DID of the repo itself, if assigned 33 RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"` 34 // repoName: name of the repo 35 RepoName string `json:"repoName" cborgen:"repoName"` 36} 37 38// GitRefUpdate_CommitCountBreakdown is a "commitCountBreakdown" in the sh.tangled.git.refUpdate schema. 39type GitRefUpdate_CommitCountBreakdown struct { 40 ByEmail []*GitRefUpdate_IndividualEmailCommitCount `json:"byEmail,omitempty" cborgen:"byEmail,omitempty"` 41} 42 43// GitRefUpdate_IndividualEmailCommitCount is a "individualEmailCommitCount" in the sh.tangled.git.refUpdate schema. 44type GitRefUpdate_IndividualEmailCommitCount struct { 45 Count int64 `json:"count" cborgen:"count"` 46 Email string `json:"email" cborgen:"email"` 47} 48 49// GitRefUpdate_IndividualLanguageSize is a "individualLanguageSize" in the sh.tangled.git.refUpdate schema. 50type GitRefUpdate_IndividualLanguageSize struct { 51 Lang string `json:"lang" cborgen:"lang"` 52 Size int64 `json:"size" cborgen:"size"` 53} 54 55// GitRefUpdate_LangBreakdown is a "langBreakdown" in the sh.tangled.git.refUpdate schema. 56type GitRefUpdate_LangBreakdown struct { 57 Inputs []*GitRefUpdate_IndividualLanguageSize `json:"inputs,omitempty" cborgen:"inputs,omitempty"` 58} 59 60// GitRefUpdate_Meta is a "meta" in the sh.tangled.git.refUpdate schema. 61type GitRefUpdate_Meta struct { 62 CommitCount *GitRefUpdate_CommitCountBreakdown `json:"commitCount" cborgen:"commitCount"` 63 IsDefaultRef bool `json:"isDefaultRef" cborgen:"isDefaultRef"` 64 LangBreakdown *GitRefUpdate_LangBreakdown `json:"langBreakdown,omitempty" cborgen:"langBreakdown,omitempty"` 65}