+33
api/tangled/gitrefUpdate.go
+33
api/tangled/gitrefUpdate.go
···
1
+
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
+
3
+
package tangled
4
+
5
+
// schema: sh.tangled.git.refUpdate
6
+
7
+
//import (
8
+
// "github.com/bluesky-social/indigo/lex/util"
9
+
//)
10
+
11
+
const (
12
+
GitRefUpdateNSID = "sh.tangled.git.refUpdate"
13
+
)
14
+
15
+
//func init() {
16
+
// util.RegisterType("sh.tangled.git.refUpdate", &GitRefUpdate{})
17
+
//} //
18
+
// RECORDTYPE: GitRefUpdate
19
+
type 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
+
// newSha: new SHA of this ref
24
+
NewSha string `json:"newSha" cborgen:"newSha"`
25
+
// oldSha: old SHA of this ref
26
+
OldSha string `json:"oldSha" cborgen:"oldSha"`
27
+
// ref: Ref being updated
28
+
Ref string `json:"ref" cborgen:"ref"`
29
+
// repoDid: did of the owner of the repo
30
+
RepoDid string `json:"repoDid" cborgen:"repoDid"`
31
+
// repoName: name of the repo
32
+
RepoName string `json:"repoName" cborgen:"repoName"`
33
+
}
+1
cmd/gen.go
+1
cmd/gen.go
+56
lexicons/git/refUpdate.json
+56
lexicons/git/refUpdate.json
···
1
+
{
2
+
"lexicon": 1,
3
+
"id": "sh.tangled.git.refUpdate",
4
+
"defs": {
5
+
"main": {
6
+
"type": "record",
7
+
"description": "An update to a git repository, emitted by knots.",
8
+
"key": "tid",
9
+
"record": {
10
+
"type": "object",
11
+
"required": [
12
+
"ref",
13
+
"committerDid",
14
+
"repoDid",
15
+
"repoName",
16
+
"oldSha",
17
+
"newSha"
18
+
],
19
+
"properties": {
20
+
"ref": {
21
+
"type": "string",
22
+
"description": "Ref being updated",
23
+
"maxGraphemes": 256,
24
+
"maxLength": 2560
25
+
},
26
+
"committerDid": {
27
+
"type": "string",
28
+
"description": "did of the user that pushed this ref",
29
+
"format": "did"
30
+
},
31
+
"repoDid": {
32
+
"type": "string",
33
+
"description": "did of the owner of the repo",
34
+
"format": "did"
35
+
},
36
+
"repoName": {
37
+
"type": "string",
38
+
"description": "name of the repo"
39
+
},
40
+
"oldSha": {
41
+
"type": "string",
42
+
"description": "old SHA of this ref",
43
+
"minLength": 40,
44
+
"maxLength": 40
45
+
},
46
+
"newSha": {
47
+
"type": "string",
48
+
"description": "new SHA of this ref",
49
+
"minLength": 40,
50
+
"maxLength": 40
51
+
}
52
+
}
53
+
}
54
+
}
55
+
}
56
+
}