Skip to content

Commit 40cac8e

Browse files
authored
feat: add support for filtering "List workflows runs for a repository" (GET /repos/{owner}/{repo}/actions/runs) and "List workflow runs [for a workflow]" (GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs ) by head_sha (see PR for other changes) (#239)
* feat: add support for filtering "List workflows runs for a repository" (`GET /repos/{owner}/{repo}/actions/runs`) and "List workflow runs [for a workflow]" (`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs `) by `head_sha` * fix: tweak the recently-added `state_reason` attribute on issues to be a enum (`completed`, `not_planned` or `reopened`) rather than an unbounded string
1 parent f28fe9e commit 40cac8e

File tree

21 files changed

+210
-51
lines changed

21 files changed

+210
-51
lines changed

cache/api.github.jpy.wang.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.8.0",
4+
"version": "7.9.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -21282,6 +21282,9 @@
2128221282
},
2128321283
{
2128421284
"$ref": "#/components/parameters/workflow-run-check-suite-id"
21285+
},
21286+
{
21287+
"$ref": "#/components/parameters/workflow-run-head-sha"
2128521288
}
2128621289
],
2128721290
"responses": {
@@ -22958,6 +22961,9 @@
2295822961
},
2295922962
{
2296022963
"$ref": "#/components/parameters/workflow-run-check-suite-id"
22964+
},
22965+
{
22966+
"$ref": "#/components/parameters/workflow-run-head-sha"
2296122967
}
2296222968
],
2296322969
"responses": {
@@ -36993,6 +36999,11 @@
3699336999
},
3699437000
"state_reason": {
3699537001
"type": "string",
37002+
"enum": [
37003+
"completed",
37004+
"not_planned",
37005+
"reopened"
37006+
],
3699637007
"nullable": true,
3699737008
"description": "The reason for the current state",
3699837009
"example": "not_planned"
@@ -64222,7 +64233,12 @@
6422264233
"description": "The reason for the current state",
6422364234
"example": "not_planned",
6422464235
"type": "string",
64225-
"nullable": true
64236+
"nullable": true,
64237+
"enum": [
64238+
"completed",
64239+
"reopened",
64240+
"not_planned"
64241+
]
6422664242
},
6422764243
"title": {
6422864244
"description": "Title of the issue",
@@ -78851,7 +78867,12 @@
7885178867
"description": "The reason for the current state",
7885278868
"example": "not_planned",
7885378869
"type": "string",
78854-
"nullable": true
78870+
"nullable": true,
78871+
"enum": [
78872+
"completed",
78873+
"reopened",
78874+
"not_planned"
78875+
]
7885578876
},
7885678877
"title": {
7885778878
"description": "Title of the issue",
@@ -113288,6 +113309,15 @@
113288113309
"type": "integer"
113289113310
}
113290113311
},
113312+
"workflow-run-head-sha": {
113313+
"name": "head_sha",
113314+
"description": "Only returns workflow runs that are associated with the specified `head_sha`.",
113315+
"in": "query",
113316+
"required": false,
113317+
"schema": {
113318+
"type": "string"
113319+
}
113320+
},
113291113321
"run-id": {
113292113322
"name": "run_id",
113293113323
"description": "The unique identifier of the workflow run.",

cache/ghes-3.2.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.8.0",
4+
"version": "7.9.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -32633,6 +32633,11 @@
3263332633
},
3263432634
"state_reason": {
3263532635
"type": "string",
32636+
"enum": [
32637+
"completed",
32638+
"not_planned",
32639+
"reopened"
32640+
],
3263632641
"nullable": true,
3263732642
"description": "The reason for the current state",
3263832643
"example": "not_planned"
@@ -54843,7 +54848,12 @@
5484354848
"description": "The reason for the current state",
5484454849
"example": "not_planned",
5484554850
"type": "string",
54846-
"nullable": true
54851+
"nullable": true,
54852+
"enum": [
54853+
"completed",
54854+
"reopened",
54855+
"not_planned"
54856+
]
5484754857
},
5484854858
"title": {
5484954859
"description": "Title of the issue",
@@ -66323,7 +66333,12 @@
6632366333
"description": "The reason for the current state",
6632466334
"example": "not_planned",
6632566335
"type": "string",
66326-
"nullable": true
66336+
"nullable": true,
66337+
"enum": [
66338+
"completed",
66339+
"reopened",
66340+
"not_planned"
66341+
]
6632766342
},
6632866343
"title": {
6632966344
"description": "Title of the issue",

cache/ghes-3.3.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.8.0",
4+
"version": "7.9.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -32322,6 +32322,11 @@
3232232322
},
3232332323
"state_reason": {
3232432324
"type": "string",
32325+
"enum": [
32326+
"completed",
32327+
"not_planned",
32328+
"reopened"
32329+
],
3232532330
"nullable": true,
3232632331
"description": "The reason for the current state",
3232732332
"example": "not_planned"
@@ -55079,7 +55084,12 @@
5507955084
"description": "The reason for the current state",
5508055085
"example": "not_planned",
5508155086
"type": "string",
55082-
"nullable": true
55087+
"nullable": true,
55088+
"enum": [
55089+
"completed",
55090+
"reopened",
55091+
"not_planned"
55092+
]
5508355093
},
5508455094
"title": {
5508555095
"description": "Title of the issue",
@@ -67013,7 +67023,12 @@
6701367023
"description": "The reason for the current state",
6701467024
"example": "not_planned",
6701567025
"type": "string",
67016-
"nullable": true
67026+
"nullable": true,
67027+
"enum": [
67028+
"completed",
67029+
"reopened",
67030+
"not_planned"
67031+
]
6701767032
},
6701867033
"title": {
6701967034
"description": "Title of the issue",

cache/ghes-3.4.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.8.0",
4+
"version": "7.9.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -34175,6 +34175,11 @@
3417534175
},
3417634176
"state_reason": {
3417734177
"type": "string",
34178+
"enum": [
34179+
"completed",
34180+
"not_planned",
34181+
"reopened"
34182+
],
3417834183
"nullable": true,
3417934184
"description": "The reason for the current state",
3418034185
"example": "not_planned"
@@ -57220,7 +57225,12 @@
5722057225
"description": "The reason for the current state",
5722157226
"example": "not_planned",
5722257227
"type": "string",
57223-
"nullable": true
57228+
"nullable": true,
57229+
"enum": [
57230+
"completed",
57231+
"reopened",
57232+
"not_planned"
57233+
]
5722457234
},
5722557235
"title": {
5722657236
"description": "Title of the issue",
@@ -69069,7 +69079,12 @@
6906969079
"description": "The reason for the current state",
6907069080
"example": "not_planned",
6907169081
"type": "string",
69072-
"nullable": true
69082+
"nullable": true,
69083+
"enum": [
69084+
"completed",
69085+
"reopened",
69086+
"not_planned"
69087+
]
6907369088
},
6907469089
"title": {
6907569090
"description": "Title of the issue",

cache/ghes-3.5.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.8.0",
4+
"version": "7.9.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -35437,6 +35437,11 @@
3543735437
},
3543835438
"state_reason": {
3543935439
"type": "string",
35440+
"enum": [
35441+
"completed",
35442+
"not_planned",
35443+
"reopened"
35444+
],
3544035445
"nullable": true,
3544135446
"description": "The reason for the current state",
3544235447
"example": "not_planned"
@@ -58516,7 +58521,12 @@
5851658521
"description": "The reason for the current state",
5851758522
"example": "not_planned",
5851858523
"type": "string",
58519-
"nullable": true
58524+
"nullable": true,
58525+
"enum": [
58526+
"completed",
58527+
"reopened",
58528+
"not_planned"
58529+
]
5852058530
},
5852158531
"title": {
5852258532
"description": "Title of the issue",
@@ -70650,7 +70660,12 @@
7065070660
"description": "The reason for the current state",
7065170661
"example": "not_planned",
7065270662
"type": "string",
70653-
"nullable": true
70663+
"nullable": true,
70664+
"enum": [
70665+
"completed",
70666+
"reopened",
70667+
"not_planned"
70668+
]
7065470669
},
7065570670
"title": {
7065670671
"description": "Title of the issue",

cache/ghes-3.6.json

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "7.8.0",
4+
"version": "7.9.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": {
@@ -22081,7 +22081,13 @@
2208122081
"category": "actions",
2208222082
"subcategory": "workflow-runs"
2208322083
},
22084-
"x-octokit": {}
22084+
"x-octokit": {
22085+
"diff": {
22086+
"api.github.com": {
22087+
"type": "changed"
22088+
}
22089+
}
22090+
}
2208522091
}
2208622092
},
2208722093
"/repos/{owner}/{repo}/actions/runs/{run_id}": {
@@ -23653,7 +23659,13 @@
2365323659
"category": "actions",
2365423660
"subcategory": "workflow-runs"
2365523661
},
23656-
"x-octokit": {}
23662+
"x-octokit": {
23663+
"diff": {
23664+
"api.github.com": {
23665+
"type": "changed"
23666+
}
23667+
}
23668+
}
2365723669
}
2365823670
},
2365923671
"/repos/{owner}/{repo}/assignees": {
@@ -35927,6 +35939,11 @@
3592735939
},
3592835940
"state_reason": {
3592935941
"type": "string",
35942+
"enum": [
35943+
"completed",
35944+
"not_planned",
35945+
"reopened"
35946+
],
3593035947
"nullable": true,
3593135948
"description": "The reason for the current state",
3593235949
"example": "not_planned"
@@ -62825,7 +62842,12 @@
6282562842
"description": "The reason for the current state",
6282662843
"example": "not_planned",
6282762844
"type": "string",
62828-
"nullable": true
62845+
"nullable": true,
62846+
"enum": [
62847+
"completed",
62848+
"reopened",
62849+
"not_planned"
62850+
]
6282962851
},
6283062852
"title": {
6283162853
"description": "Title of the issue",
@@ -75202,7 +75224,12 @@
7520275224
"description": "The reason for the current state",
7520375225
"example": "not_planned",
7520475226
"type": "string",
75205-
"nullable": true
75227+
"nullable": true,
75228+
"enum": [
75229+
"completed",
75230+
"reopened",
75231+
"not_planned"
75232+
]
7520675233
},
7520775234
"title": {
7520875235
"description": "Title of the issue",

0 commit comments

Comments
 (0)