Monorepo for Tangled tangled.org
1

Configure Feed

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

core / lexicons / ci / trigger.json
2.3 kB 93 lines
1{ 2 "lexicon": 1, 3 "id": "sh.tangled.ci.trigger", 4 "defs": { 5 "push": { 6 "type": "object", 7 "required": ["ref", "newSha", "oldSha"], 8 "properties": { 9 "ref": { 10 "type": "string" 11 }, 12 "newSha": { 13 "type": "string", 14 "minLength": 40, 15 "maxLength": 40 16 }, 17 "oldSha": { 18 "type": "string", 19 "minLength": 40, 20 "maxLength": 40 21 } 22 } 23 }, 24 "pullRequest": { 25 "type": "object", 26 "required": ["targetBranch", "sourceSha"], 27 "description": "TODO: reference PR record with strongRef instead of embedding raw values", 28 "properties": { 29 "sourceRepo": { 30 "type": "string", 31 "format": "did", 32 "description": "Repository DID to check out code and workflow definitions from, if different from the target repo." 33 }, 34 "sourceBranch": { 35 "type": "string" 36 }, 37 "targetBranch": { 38 "type": "string" 39 }, 40 "sourceSha": { 41 "type": "string", 42 "minLength": 40, 43 "maxLength": 40 44 }, 45 "pull": { 46 "type": "string", 47 "format": "at-uri", 48 "description": "AT-URI of the sh.tangled.repo.pull record this run belongs to" 49 } 50 } 51 }, 52 "manual": { 53 "type": "object", 54 "required": ["sha"], 55 "properties": { 56 "sha": { 57 "type": "string", 58 "description": "commit SHA the manual run targets", 59 "minLength": 40, 60 "maxLength": 40 61 }, 62 "ref": { 63 "type": "string", 64 "description": "optional ref the SHA was resolved from, for display and TANGLED_REF" 65 }, 66 "sourceRepo": { 67 "type": "string", 68 "format": "did", 69 "description": "Repository DID to check out code and workflow definitions from, if different from the target repo." 70 }, 71 "inputs": { 72 "type": "array", 73 "items": { 74 "type": "ref", 75 "ref": "#pair" 76 } 77 } 78 } 79 }, 80 "pair": { 81 "type": "object", 82 "required": ["key", "value"], 83 "properties": { 84 "key": { 85 "type": "string" 86 }, 87 "value": { 88 "type": "string" 89 } 90 } 91 } 92 } 93}