Monorepo for Tangled
1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.pull",
4 "needsCbor": true,
5 "needsType": true,
6 "defs": {
7 "main": {
8 "type": "record",
9 "key": "tid",
10 "record": {
11 "type": "object",
12 "required": [
13 "target",
14 "title",
15 "patchBlob",
16 "createdAt"
17 ],
18 "properties": {
19 "target": {
20 "type": "ref",
21 "ref": "#target"
22 },
23 "title": {
24 "type": "string"
25 },
26 "body": {
27 "type": "string"
28 },
29 "patch": {
30 "type": "string",
31 "description": "(deprecated) use patchBlob instead"
32 },
33 "patchBlob": {
34 "type": "blob",
35 "accept": [
36 "text/x-patch"
37 ],
38 "description": "patch content"
39 },
40 "source": {
41 "type": "ref",
42 "ref": "#source"
43 },
44 "createdAt": {
45 "type": "string",
46 "format": "datetime"
47 },
48 "mentions": {
49 "type": "array",
50 "items": {
51 "type": "string",
52 "format": "did"
53 }
54 },
55 "references": {
56 "type": "array",
57 "items": {
58 "type": "string",
59 "format": "at-uri"
60 }
61 }
62 }
63 }
64 },
65 "target": {
66 "type": "object",
67 "required": [
68 "repo",
69 "branch"
70 ],
71 "properties": {
72 "repo": {
73 "type": "string",
74 "format": "at-uri"
75 },
76 "repoDid": {
77 "type": "string",
78 "format": "did"
79 },
80 "branch": {
81 "type": "string"
82 }
83 }
84 },
85 "source": {
86 "type": "object",
87 "required": [
88 "branch",
89 "sha"
90 ],
91 "properties": {
92 "branch": {
93 "type": "string"
94 },
95 "sha": {
96 "type": "string",
97 "minLength": 40,
98 "maxLength": 40
99 },
100 "repo": {
101 "type": "string",
102 "format": "at-uri"
103 },
104 "repoDid": {
105 "type": "string",
106 "format": "did"
107 }
108 }
109 }
110 }
111}