forked from tangled.org/core
this repo has no description

lexicon: introduce sh.tangled.git.refUpdate

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 87307098 2d4b2612

verified
Changed files
+90
api
tangled
cmd
lexicons
+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
··· 15 15 "api/tangled/cbor_gen.go", 16 16 "tangled", 17 17 tangled.FeedStar{}, 18 + tangled.GitRefUpdate{}, 18 19 tangled.GraphFollow{}, 19 20 tangled.KnotMember{}, 20 21 tangled.PublicKey{},
+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 + }