Skip to content

Commit

Permalink
feat: allow filtering "List workflows runs for a repository" (`GET /r…
Browse files Browse the repository at this point in the history
…epos/{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
  • Loading branch information
octokitbot authored Sep 5, 2022
1 parent 1473f78 commit e815e2d
Show file tree
Hide file tree
Showing 38 changed files with 12,455 additions and 382 deletions.
170 changes: 149 additions & 21 deletions cache/api.github.com.deref.json
Original file line number Diff line number Diff line change
Expand Up @@ -22160,7 +22160,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -37241,7 +37246,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -43080,7 +43090,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -72615,7 +72630,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -81775,7 +81795,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -145379,6 +145404,15 @@
"schema": {
"type": "integer"
}
},
{
"name": "head_sha",
"description": "Only returns workflow runs that are associated with the specified `head_sha`.",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -163246,6 +163280,15 @@
"schema": {
"type": "integer"
}
},
{
"name": "head_sha",
"description": "Only returns workflow runs that are associated with the specified `head_sha`.",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -247491,7 +247534,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -271502,7 +271550,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -274358,7 +274411,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -280360,7 +280418,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -284272,7 +284335,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -288066,7 +288134,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -290765,6 +290838,11 @@
},
"state_reason": {
"type": "string",
"enum": [
"completed",
"not_planned",
"reopened"
],
"nullable": true,
"description": "The reason for the current state",
"example": "not_planned"
Expand Down Expand Up @@ -290894,7 +290972,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -293753,7 +293836,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -296415,7 +296503,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -317719,7 +317812,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -449687,7 +449785,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -482046,7 +482149,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -485247,7 +485355,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -488450,7 +488563,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -499956,7 +500074,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down Expand Up @@ -503159,7 +503282,12 @@
"description": "The reason for the current state",
"example": "not_planned",
"type": "string",
"nullable": true
"nullable": true,
"enum": [
"completed",
"reopened",
"not_planned"
]
},
"title": {
"description": "Title of the issue",
Expand Down
Loading

0 comments on commit e815e2d

Please sign in to comment.