This repository has no description
0

Configure Feed

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

core / lexicons / ci / defs.json
2.1 kB 87 lines
1{ 2 "lexicon": 1, 3 "id": "sh.tangled.ci.defs", 4 "defs": { 5 "pipeline": { 6 "type": "object", 7 "required": ["id", "trigger", "commit", "workflows"], 8 "properties": { 9 "id": { 10 "type": "string", 11 "description": "Spindle-local pipeline id" 12 }, 13 "repo": { 14 "type": "string", 15 "format": "did", 16 "description": "Repository DID" 17 }, 18 "trigger": { 19 "type": "union", 20 "refs": [ 21 "sh.tangled.ci.trigger#push", 22 "sh.tangled.ci.trigger#pullRequest", 23 "sh.tangled.ci.trigger#manual" 24 ], 25 "description": "Trigger event metadata" 26 }, 27 "commit": { 28 "type": "string", 29 "description": "Commit Id this pipeline is running on" 30 }, 31 "createdAt": { 32 "type": "string", 33 "format": "datetime" 34 }, 35 "workflows": { 36 "type": "array", 37 "description": "Triggered workflows", 38 "minLength": 1, 39 "maxLength": 50, 40 "items": { 41 "type": "ref", 42 "ref": "#workflow" 43 } 44 } 45 } 46 }, 47 "workflow": { 48 "type": "object", 49 "required": ["id", "name", "status"], 50 "properties": { 51 "id": { 52 "type": "string", 53 "description": "Spindle-local workflow id. Unique per pipeline, usually same as name." 54 }, 55 "name": { 56 "type": "string", 57 "description": "Name of the workflow", 58 "minGraphemes": 1, 59 "maxGraphemes": 40 60 }, 61 "status": { 62 "type": "string", 63 "description": "Workflow status", 64 "enum": [ 65 "pending", 66 "running", 67 "failed", 68 "timeout", 69 "cancelled", 70 "success" 71 ] 72 }, 73 "startedAt": { 74 "type": "string", 75 "format": "datetime" 76 }, 77 "finishedAt": { 78 "type": "string", 79 "format": "datetime" 80 }, 81 "error": { 82 "type": "string" 83 } 84 } 85 } 86 } 87}