This repository has no description
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 "kinds": {
26 "type": "array",
27 "items": {
28 "type": "string",
29 "enum": ["push", "pull_request", "manual"]
30 },
31 "description": "Filter pipelines by trigger kind. When provided, pipelines matching any listed kind are returned; when omitted, every kind is returned."
32 },
33 "limit": {
34 "type": "integer",
35 "description": "Maximum number of pipelines to return",
36 "minimum": 1,
37 "maximum": 250,
38 "default": 50
39 },
40 "cursor": {
41 "type": "string",
42 "description": "Pagination cursor"
43 }
44 }
45 },
46 "output": {
47 "encoding": "application/json",
48 "schema": {
49 "type": "object",
50 "required": ["total", "pipelines"],
51 "properties": {
52 "cursor": { "type": "string" },
53 "total": {
54 "type": "integer",
55 "description": "Maximum number of pipelines"
56 },
57 "pipelines": {
58 "type": "array",
59 "items": { "type": "ref", "ref": "sh.tangled.ci.pipeline" }
60 }
61 }
62 }
63 },
64 "errors": [
65 {
66 "name": "InvalidRequest",
67 "description": "Invalid request parameters"
68 }
69 ]
70 }
71 }
72}