forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
this repo has no description
fork
Configure Feed
Select the types of activity you want to include in your feed.
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
36type GitRefUpdate_Meta struct {
37 CommitCount *GitRefUpdate_Meta_CommitCount `json:"commitCount" cborgen:"commitCount"`
38 IsDefaultRef bool `json:"isDefaultRef" cborgen:"isDefaultRef"`
39 LangBreakdown *GitRefUpdate_Meta_LangBreakdown `json:"langBreakdown,omitempty" cborgen:"langBreakdown,omitempty"`
40}
41
42type GitRefUpdate_Meta_CommitCount struct {
43 ByEmail []*GitRefUpdate_Meta_CommitCount_ByEmail_Elem `json:"byEmail,omitempty" cborgen:"byEmail,omitempty"`
44}
45
46type GitRefUpdate_Meta_CommitCount_ByEmail_Elem struct {
47 Count int64 `json:"count" cborgen:"count"`
48 Email string `json:"email" cborgen:"email"`
49}
50
51type GitRefUpdate_Meta_LangBreakdown struct {
52 Inputs []*GitRefUpdate_Pair `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
53}
54
55// GitRefUpdate_Pair is a "pair" in the sh.tangled.git.refUpdate schema.
56type GitRefUpdate_Pair struct {
57 Lang string `json:"lang" cborgen:"lang"`
58 Size int64 `json:"size" cborgen:"size"`
59}