Skip to content

Commit e815e2d

Browse files
authored
feat: allow 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 body for other changes) (#285)
* feat: allow 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 1473f78 commit e815e2d

38 files changed

+12455
-382
lines changed

cache/api.github.com.deref.json

Lines changed: 149 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22160,7 +22160,12 @@
2216022160
"description": "The reason for the current state",
2216122161
"example": "not_planned",
2216222162
"type": "string",
22163-
"nullable": true
22163+
"nullable": true,
22164+
"enum": [
22165+
"completed",
22166+
"reopened",
22167+
"not_planned"
22168+
]
2216422169
},
2216522170
"title": {
2216622171
"description": "Title of the issue",
@@ -37241,7 +37246,12 @@
3724137246
"description": "The reason for the current state",
3724237247
"example": "not_planned",
3724337248
"type": "string",
37244-
"nullable": true
37249+
"nullable": true,
37250+
"enum": [
37251+
"completed",
37252+
"reopened",
37253+
"not_planned"
37254+
]
3724537255
},
3724637256
"title": {
3724737257
"description": "Title of the issue",
@@ -43080,7 +43090,12 @@
4308043090
"description": "The reason for the current state",
4308143091
"example": "not_planned",
4308243092
"type": "string",
43083-
"nullable": true
43093+
"nullable": true,
43094+
"enum": [
43095+
"completed",
43096+
"reopened",
43097+
"not_planned"
43098+
]
4308443099
},
4308543100
"title": {
4308643101
"description": "Title of the issue",
@@ -72615,7 +72630,12 @@
7261572630
"description": "The reason for the current state",
7261672631
"example": "not_planned",
7261772632
"type": "string",
72618-
"nullable": true
72633+
"nullable": true,
72634+
"enum": [
72635+
"completed",
72636+
"reopened",
72637+
"not_planned"
72638+
]
7261972639
},
7262072640
"title": {
7262172641
"description": "Title of the issue",
@@ -81775,7 +81795,12 @@
8177581795
"description": "The reason for the current state",
8177681796
"example": "not_planned",
8177781797
"type": "string",
81778-
"nullable": true
81798+
"nullable": true,
81799+
"enum": [
81800+
"completed",
81801+
"reopened",
81802+
"not_planned"
81803+
]
8177981804
},
8178081805
"title": {
8178181806
"description": "Title of the issue",
@@ -145379,6 +145404,15 @@
145379145404
"schema": {
145380145405
"type": "integer"
145381145406
}
145407+
},
145408+
{
145409+
"name": "head_sha",
145410+
"description": "Only returns workflow runs that are associated with the specified `head_sha`.",
145411+
"in": "query",
145412+
"required": false,
145413+
"schema": {
145414+
"type": "string"
145415+
}
145382145416
}
145383145417
],
145384145418
"responses": {
@@ -163246,6 +163280,15 @@
163246163280
"schema": {
163247163281
"type": "integer"
163248163282
}
163283+
},
163284+
{
163285+
"name": "head_sha",
163286+
"description": "Only returns workflow runs that are associated with the specified `head_sha`.",
163287+
"in": "query",
163288+
"required": false,
163289+
"schema": {
163290+
"type": "string"
163291+
}
163249163292
}
163250163293
],
163251163294
"responses": {
@@ -247491,7 +247534,12 @@
247491247534
"description": "The reason for the current state",
247492247535
"example": "not_planned",
247493247536
"type": "string",
247494-
"nullable": true
247537+
"nullable": true,
247538+
"enum": [
247539+
"completed",
247540+
"reopened",
247541+
"not_planned"
247542+
]
247495247543
},
247496247544
"title": {
247497247545
"description": "Title of the issue",
@@ -271502,7 +271550,12 @@
271502271550
"description": "The reason for the current state",
271503271551
"example": "not_planned",
271504271552
"type": "string",
271505-
"nullable": true
271553+
"nullable": true,
271554+
"enum": [
271555+
"completed",
271556+
"reopened",
271557+
"not_planned"
271558+
]
271506271559
},
271507271560
"title": {
271508271561
"description": "Title of the issue",
@@ -274358,7 +274411,12 @@
274358274411
"description": "The reason for the current state",
274359274412
"example": "not_planned",
274360274413
"type": "string",
274361-
"nullable": true
274414+
"nullable": true,
274415+
"enum": [
274416+
"completed",
274417+
"reopened",
274418+
"not_planned"
274419+
]
274362274420
},
274363274421
"title": {
274364274422
"description": "Title of the issue",
@@ -280360,7 +280418,12 @@
280360280418
"description": "The reason for the current state",
280361280419
"example": "not_planned",
280362280420
"type": "string",
280363-
"nullable": true
280421+
"nullable": true,
280422+
"enum": [
280423+
"completed",
280424+
"reopened",
280425+
"not_planned"
280426+
]
280364280427
},
280365280428
"title": {
280366280429
"description": "Title of the issue",
@@ -284272,7 +284335,12 @@
284272284335
"description": "The reason for the current state",
284273284336
"example": "not_planned",
284274284337
"type": "string",
284275-
"nullable": true
284338+
"nullable": true,
284339+
"enum": [
284340+
"completed",
284341+
"reopened",
284342+
"not_planned"
284343+
]
284276284344
},
284277284345
"title": {
284278284346
"description": "Title of the issue",
@@ -288066,7 +288134,12 @@
288066288134
"description": "The reason for the current state",
288067288135
"example": "not_planned",
288068288136
"type": "string",
288069-
"nullable": true
288137+
"nullable": true,
288138+
"enum": [
288139+
"completed",
288140+
"reopened",
288141+
"not_planned"
288142+
]
288070288143
},
288071288144
"title": {
288072288145
"description": "Title of the issue",
@@ -290765,6 +290838,11 @@
290765290838
},
290766290839
"state_reason": {
290767290840
"type": "string",
290841+
"enum": [
290842+
"completed",
290843+
"not_planned",
290844+
"reopened"
290845+
],
290768290846
"nullable": true,
290769290847
"description": "The reason for the current state",
290770290848
"example": "not_planned"
@@ -290894,7 +290972,12 @@
290894290972
"description": "The reason for the current state",
290895290973
"example": "not_planned",
290896290974
"type": "string",
290897-
"nullable": true
290975+
"nullable": true,
290976+
"enum": [
290977+
"completed",
290978+
"reopened",
290979+
"not_planned"
290980+
]
290898290981
},
290899290982
"title": {
290900290983
"description": "Title of the issue",
@@ -293753,7 +293836,12 @@
293753293836
"description": "The reason for the current state",
293754293837
"example": "not_planned",
293755293838
"type": "string",
293756-
"nullable": true
293839+
"nullable": true,
293840+
"enum": [
293841+
"completed",
293842+
"reopened",
293843+
"not_planned"
293844+
]
293757293845
},
293758293846
"title": {
293759293847
"description": "Title of the issue",
@@ -296415,7 +296503,12 @@
296415296503
"description": "The reason for the current state",
296416296504
"example": "not_planned",
296417296505
"type": "string",
296418-
"nullable": true
296506+
"nullable": true,
296507+
"enum": [
296508+
"completed",
296509+
"reopened",
296510+
"not_planned"
296511+
]
296419296512
},
296420296513
"title": {
296421296514
"description": "Title of the issue",
@@ -317719,7 +317812,12 @@
317719317812
"description": "The reason for the current state",
317720317813
"example": "not_planned",
317721317814
"type": "string",
317722-
"nullable": true
317815+
"nullable": true,
317816+
"enum": [
317817+
"completed",
317818+
"reopened",
317819+
"not_planned"
317820+
]
317723317821
},
317724317822
"title": {
317725317823
"description": "Title of the issue",
@@ -449687,7 +449785,12 @@
449687449785
"description": "The reason for the current state",
449688449786
"example": "not_planned",
449689449787
"type": "string",
449690-
"nullable": true
449788+
"nullable": true,
449789+
"enum": [
449790+
"completed",
449791+
"reopened",
449792+
"not_planned"
449793+
]
449691449794
},
449692449795
"title": {
449693449796
"description": "Title of the issue",
@@ -482046,7 +482149,12 @@
482046482149
"description": "The reason for the current state",
482047482150
"example": "not_planned",
482048482151
"type": "string",
482049-
"nullable": true
482152+
"nullable": true,
482153+
"enum": [
482154+
"completed",
482155+
"reopened",
482156+
"not_planned"
482157+
]
482050482158
},
482051482159
"title": {
482052482160
"description": "Title of the issue",
@@ -485247,7 +485355,12 @@
485247485355
"description": "The reason for the current state",
485248485356
"example": "not_planned",
485249485357
"type": "string",
485250-
"nullable": true
485358+
"nullable": true,
485359+
"enum": [
485360+
"completed",
485361+
"reopened",
485362+
"not_planned"
485363+
]
485251485364
},
485252485365
"title": {
485253485366
"description": "Title of the issue",
@@ -488450,7 +488563,12 @@
488450488563
"description": "The reason for the current state",
488451488564
"example": "not_planned",
488452488565
"type": "string",
488453-
"nullable": true
488566+
"nullable": true,
488567+
"enum": [
488568+
"completed",
488569+
"reopened",
488570+
"not_planned"
488571+
]
488454488572
},
488455488573
"title": {
488456488574
"description": "Title of the issue",
@@ -499956,7 +500074,12 @@
499956500074
"description": "The reason for the current state",
499957500075
"example": "not_planned",
499958500076
"type": "string",
499959-
"nullable": true
500077+
"nullable": true,
500078+
"enum": [
500079+
"completed",
500080+
"reopened",
500081+
"not_planned"
500082+
]
499960500083
},
499961500084
"title": {
499962500085
"description": "Title of the issue",
@@ -503159,7 +503282,12 @@
503159503282
"description": "The reason for the current state",
503160503283
"example": "not_planned",
503161503284
"type": "string",
503162-
"nullable": true
503285+
"nullable": true,
503286+
"enum": [
503287+
"completed",
503288+
"reopened",
503289+
"not_planned"
503290+
]
503163503291
},
503164503292
"title": {
503165503293
"description": "Title of the issue",

0 commit comments

Comments
 (0)