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 "branch"
69 ],
70 "properties": {
71 "repo": {
72 "type": "string",
73 "format": "at-uri"
74 },
75 "repoDid": {
76 "type": "string",
77 "format": "did"
78 },
79 "branch": {
80 "type": "string"
81 }
82 }
83 },
84 "source": {
85 "type": "object",
86 "required": [
87 "branch",
88 "sha"
89 ],
90 "properties": {
91 "branch": {
92 "type": "string"
93 },
94 "sha": {
95 "type": "string",
96 "minLength": 40,
97 "maxLength": 40
98 },
99 "repo": {
100 "type": "string",
101 "format": "at-uri"
102 },
103 "repoDid": {
104 "type": "string",
105 "format": "did"
106 }
107 }
108 }
109 }
110}