Skip to content

Commit

Permalink
feat: add support for filtering "List workflows runs for a repository…
Browse files Browse the repository at this point in the history
…" (`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
  • Loading branch information
octokitbot committed Sep 5, 2022
1 parent f28fe9e commit 40cac8e
Show file tree
Hide file tree
Showing 21 changed files with 210 additions and 51 deletions.
36 changes: 33 additions & 3 deletions cache/api.github.com.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.8.0",
"version": "7.9.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -21282,6 +21282,9 @@
},
{
"$ref": "#/components/parameters/workflow-run-check-suite-id"
},
{
"$ref": "#/components/parameters/workflow-run-head-sha"
}
],
"responses": {
Expand Down Expand Up @@ -22958,6 +22961,9 @@
},
{
"$ref": "#/components/parameters/workflow-run-check-suite-id"
},
{
"$ref": "#/components/parameters/workflow-run-head-sha"
}
],
"responses": {
Expand Down Expand Up @@ -36993,6 +36999,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 @@ -64222,7 +64233,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 @@ -78851,7 +78867,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 @@ -113288,6 +113309,15 @@
"type": "integer"
}
},
"workflow-run-head-sha": {
"name": "head_sha",
"description": "Only returns workflow runs that are associated with the specified `head_sha`.",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
"run-id": {
"name": "run_id",
"description": "The unique identifier of the workflow run.",
Expand Down
21 changes: 18 additions & 3 deletions cache/ghes-3.2.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.8.0",
"version": "7.9.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -32633,6 +32633,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 @@ -54843,7 +54848,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 @@ -66323,7 +66333,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
21 changes: 18 additions & 3 deletions cache/ghes-3.3.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.8.0",
"version": "7.9.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -32322,6 +32322,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 @@ -55079,7 +55084,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 @@ -67013,7 +67023,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
21 changes: 18 additions & 3 deletions cache/ghes-3.4.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.8.0",
"version": "7.9.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -34175,6 +34175,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 @@ -57220,7 +57225,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 @@ -69069,7 +69079,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
21 changes: 18 additions & 3 deletions cache/ghes-3.5.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.8.0",
"version": "7.9.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -35437,6 +35437,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 @@ -58516,7 +58521,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 @@ -70650,7 +70660,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
37 changes: 32 additions & 5 deletions cache/ghes-3.6.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "7.8.0",
"version": "7.9.0",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": {
Expand Down Expand Up @@ -22081,7 +22081,13 @@
"category": "actions",
"subcategory": "workflow-runs"
},
"x-octokit": {}
"x-octokit": {
"diff": {
"api.github.com": {
"type": "changed"
}
}
}
}
},
"/repos/{owner}/{repo}/actions/runs/{run_id}": {
Expand Down Expand Up @@ -23653,7 +23659,13 @@
"category": "actions",
"subcategory": "workflow-runs"
},
"x-octokit": {}
"x-octokit": {
"diff": {
"api.github.com": {
"type": "changed"
}
}
}
}
},
"/repos/{owner}/{repo}/assignees": {
Expand Down Expand Up @@ -35927,6 +35939,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 @@ -62825,7 +62842,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 @@ -75202,7 +75224,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 40cac8e

Please sign in to comment.