This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / lexicons / pulls / pull.json
2.7 kB 125 lines
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 "createdAt", 16 "rounds" 17 ], 18 "properties": { 19 "title": { 20 "type": "string" 21 }, 22 "body": { 23 "type": "string" 24 }, 25 "rounds": { 26 "type": "array", 27 "items": { 28 "type": "ref", 29 "ref": "#round" 30 } 31 }, 32 "source": { 33 "type": "ref", 34 "ref": "#source" 35 }, 36 "target": { 37 "type": "ref", 38 "ref": "#target" 39 }, 40 "createdAt": { 41 "type": "string", 42 "format": "datetime" 43 }, 44 "mentions": { 45 "type": "array", 46 "items": { 47 "type": "string", 48 "format": "did" 49 } 50 }, 51 "references": { 52 "type": "array", 53 "items": { 54 "type": "string", 55 "format": "at-uri" 56 } 57 }, 58 "dependentOn": { 59 "type": "string", 60 "format": "at-uri" 61 }, 62 "blobs": { 63 "type": "array", 64 "items": { 65 "type": "blob", 66 "accept": ["image/*"], 67 "maxSize": 1000000 68 } 69 } 70 } 71 } 72 }, 73 "target": { 74 "type": "object", 75 "required": [ 76 "repo", 77 "branch" 78 ], 79 "properties": { 80 "repo": { 81 "type": "string", 82 "format": "did" 83 }, 84 "branch": { 85 "type": "string" 86 } 87 } 88 }, 89 "source": { 90 "type": "object", 91 "required": [ 92 "branch" 93 ], 94 "properties": { 95 "branch": { 96 "type": "string" 97 }, 98 "repo": { 99 "type": "string", 100 "format": "did" 101 } 102 } 103 }, 104 "round": { 105 "type": "object", 106 "required": [ 107 "patchBlob", 108 "createdAt" 109 ], 110 "description": "revisions of this pull request, newer rounds are appended to this array. appviews may reject records do not treat this field as append-only. the blob format is gzipped text-based git-format-patches.", 111 "properties": { 112 "createdAt": { 113 "type": "string", 114 "format": "datetime" 115 }, 116 "patchBlob": { 117 "type": "blob", 118 "accept": [ 119 "application/gzip" 120 ] 121 } 122 } 123 } 124 } 125}