Monorepo for Tangled
tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.ci.pipeline.triggerPipeline",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Manually trigger a pipeline at an explicit commit. Runs the named workflows, or every workflow defined in the repo when none are named.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": ["repo", "sha"],
13 "properties": {
14 "repo": {
15 "type": "string",
16 "format": "at-uri",
17 "description": "AT-URI of the sh.tangled.repo record"
18 },
19 "sha": {
20 "type": "string",
21 "minLength": 40,
22 "maxLength": 40,
23 "description": "commit SHA to run the pipeline at"
24 },
25 "ref": {
26 "type": "string",
27 "description": "optional ref the SHA was resolved from, for display"
28 },
29 "workflows": {
30 "type": "array",
31 "items": {
32 "type": "string",
33 "description": "workflow name"
34 },
35 "description": "Workflow names to run. When not provided, every dispatchable workflow is run."
36 }
37 }
38 }
39 },
40 "output": {
41 "encoding": "application/json",
42 "schema": {
43 "type": "object",
44 "required": ["pipeline"],
45 "properties": {
46 "pipeline": {
47 "type": "string",
48 "format": "at-uri",
49 "description": "AT-URI of the created pipeline"
50 }
51 }
52 }
53 },
54 "errors": [
55 {
56 "name": "InvalidRequest",
57 "description": "Invalid request parameters"
58 }
59 ]
60 }
61 }
62}