This repository has no description
0

Configure Feed

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

core / lexicons / git / keepCommit.json
2.1 kB 89 lines
1{ 2 "lexicon": 1, 3 "id": "sh.tangled.git.keepCommit", 4 "defs": { 5 "main": { 6 "type": "procedure", 7 "description": "Keep commit for an atproto record.", 8 "input": { 9 "encoding": "application/json", 10 "schema": { 11 "type": "object", 12 "required": ["repo", "source", "record"], 13 "properties": { 14 "repo": { 15 "type": "string", 16 "format": "did" 17 }, 18 "source": { 19 "type": "union", 20 "refs": ["#commit", "#patches"] 21 }, 22 "record": { 23 "type": "string", 24 "format": "at-uri", 25 "description": "at-uri of target record. rkey is required" 26 } 27 } 28 } 29 }, 30 "output": { 31 "encoding": "application/json", 32 "schema": { 33 "type": "object", 34 "required": ["commit"], 35 "properties": { 36 "commit": { 37 "type": "string", 38 "minLength": 40, 39 "maxLength": 128 40 } 41 } 42 } 43 }, 44 "errors": [ 45 { 46 "name": "InvalidRequest", 47 "description": "Invalid request parameters" 48 }, 49 { 50 "name": "RepoNotFound", 51 "description": "Repo is not registered on this knot" 52 }, 53 { 54 "name": "CommitNotFound", 55 "description": "Commit is not found from source Repo" 56 }, 57 { 58 "name": "PatchApplyFailed", 59 "description": "Failed to apply patches" 60 } 61 ] 62 }, 63 "commit": { 64 "type": "object", 65 "required": ["repo", "oid"], 66 "properties": { 67 "repo": { 68 "type": "string", 69 "format": "did" 70 }, 71 "oid": { 72 "type": "string", 73 "minLength": 40, 74 "maxLength": 128 75 } 76 } 77 }, 78 "patches": { 79 "type": "object", 80 "required": ["patch"], 81 "properties": { 82 "patches": { 83 "type": "array", 84 "items": { "type": "string" } 85 } 86 } 87 } 88 } 89}