Monorepo for Tangled
tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.ci.queryPipelines",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Query pipelines in git repository",
8 "parameters": {
9 "type": "params",
10 "required": ["repo"],
11 "properties": {
12 "repo": {
13 "type": "string",
14 "format": "did",
15 "description": "DID of the repository"
16 },
17 "commits": {
18 "type": "array",
19 "items": {
20 "type": "string",
21 "description": "commit id (SHA-1 or SHA-265)"
22 },
23 "description": "Filter pipelines by commits. When provided, maximum one pipeline per commit id will be returned."
24 },
25 "limit": {
26 "type": "integer",
27 "description": "Maximum number of pipelines to return",
28 "minimum": 1,
29 "maximum": 250,
30 "default": 50
31 },
32 "cursor": {
33 "type": "string",
34 "description": "Pagination cursor"
35 }
36 }
37 },
38 "output": {
39 "encoding": "application/json",
40 "schema": {
41 "type": "object",
42 "required": ["total", "pipelines"],
43 "properties": {
44 "cursor": { "type": "string" },
45 "total": {
46 "type": "integer",
47 "description": "Maximum number of pipelines"
48 },
49 "pipelines": {
50 "type": "array",
51 "items": { "type": "ref", "ref": "sh.tangled.ci.defs#pipeline" }
52 }
53 }
54 }
55 },
56 "errors": [
57 {
58 "name": "InvalidRequest",
59 "description": "Invalid request parameters"
60 }
61 ]
62 }
63 }
64}