forked from
tangled.org/core
Monorepo for Tangled — https://tangled.org
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 "meta"
19 ],
20 "properties": {
21 "ref": {
22 "type": "string",
23 "description": "Ref being updated",
24 "maxGraphemes": 256,
25 "maxLength": 2560
26 },
27 "committerDid": {
28 "type": "string",
29 "description": "did of the user that pushed this ref",
30 "format": "did"
31 },
32 "repoDid": {
33 "type": "string",
34 "description": "did of the owner of the repo",
35 "format": "did"
36 },
37 "repoName": {
38 "type": "string",
39 "description": "name of the repo"
40 },
41 "oldSha": {
42 "type": "string",
43 "description": "old SHA of this ref",
44 "minLength": 40,
45 "maxLength": 40
46 },
47 "newSha": {
48 "type": "string",
49 "description": "new SHA of this ref",
50 "minLength": 40,
51 "maxLength": 40
52 },
53 "meta": {
54 "type": "object",
55 "required": [
56 "isDefaultRef",
57 "commitCount"
58 ],
59 "properties": {
60 "isDefaultRef": {
61 "type": "boolean",
62 "default": "false"
63 },
64 "commitCount": {
65 "type": "object",
66 "required": [],
67 "properties": {
68 "byEmail": {
69 "type": "array",
70 "items": {
71 "type": "object",
72 "required": [
73 "email",
74 "count"
75 ],
76 "properties": {
77 "email": {
78 "type": "string"
79 },
80 "count": {
81 "type": "integer"
82 }
83 }
84 }
85 }
86 }
87 }
88 }
89 }
90 }
91 }
92 }
93 }
94}