Skip to content

Commit

Permalink
Add issues_threshold and prs_threshold inputs
Browse files Browse the repository at this point in the history
Remove ipp_threshold input
  • Loading branch information
crazy-max committed Sep 19, 2020
1 parent c5d2c85 commit 52ee551
Show file tree
Hide file tree
Showing 9 changed files with 3,602 additions and 3,442 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog

## 2.0.0 (2020/09/20)

* Add `issues_threshold` and `prs_threshold` inputs
* Remove `ipp_threshold` input
* Update deps

## 1.0.1 (2020/05/23)

* Update generated content
Expand Down
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -94,7 +94,8 @@ Following inputs can be used as `step.with` keys
| `git_threshold`**²** | String | Defines threshold for Git Operations to fail the job |
| `api_threshold`**²** | String | Defines threshold for API Requests to fail the job |
| `webhooks_threshold`**²** | String | Defines threshold for Webhooks to fail the job |
| `ipp_threshold`**²** | String | Defines threshold for Issues, PRs, Projects to fail the job |
| `issues_threshold`**²** | String | Defines threshold for Issues to fail the job |
| `prs_threshold`**²** | String | Defines threshold for Pull Requests to fail the job |
| `actions_threshold`**²** | String | Defines threshold for GitHub Actions to fail the job |
| `packages_threshold`**²** | String | Defines threshold for GitHub Packages to fail the job |
| `pages_threshold`**²** | String | Defines threshold for GitHub Pages to fail the job |
Expand Down
192 changes: 155 additions & 37 deletions __tests__/data-summary.json
Expand Up @@ -12,10 +12,11 @@
"name": "Git Operations",
"status": "operational",
"created_at": "2017-01-31T20:05:05.370Z",
"updated_at": "2020-05-15T21:09:07.219Z",
"updated_at": "2020-09-02T15:40:02.167Z",
"position": 1,
"description": "Performance of git clones, pulls, pushes, and associated operations",
"showcase": true,
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
Expand All @@ -24,12 +25,13 @@
{
"id": "brv1bkgrwx7q",
"name": "API Requests",
"status": "partial_outage",
"status": "operational",
"created_at": "2017-01-31T20:01:46.621Z",
"updated_at": "2020-05-22T17:00:13.168Z",
"updated_at": "2020-09-08T17:16:59.324Z",
"position": 2,
"description": "Requests for GitHub APIs",
"showcase": true,
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
Expand All @@ -40,10 +42,11 @@
"name": "Webhooks",
"status": "operational",
"created_at": "2019-11-13T18:00:24.256Z",
"updated_at": "2020-04-23T15:04:54.597Z",
"updated_at": "2020-09-07T01:36:09.887Z",
"position": 3,
"description": "Real time HTTP callbacks of user-generated and system events",
"showcase": true,
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
Expand All @@ -58,20 +61,37 @@
"position": 4,
"description": null,
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
"only_show_if_degraded": false
},
{
"id": "kr09ddfgbfsf",
"name": "Issues, Pull Requests, Projects",
"status": "partial_outage",
"name": "Issues",
"status": "operational",
"created_at": "2017-01-31T20:01:46.638Z",
"updated_at": "2020-05-22T16:54:00.852Z",
"updated_at": "2020-09-08T16:14:03.625Z",
"position": 5,
"description": "Web requests for github.com UI and services",
"showcase": true,
"description": "Requests for Issues on GitHub.com",
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
"only_show_if_degraded": false
},
{
"id": "hhtssxt0f5v2",
"name": "Pull Requests",
"status": "operational",
"created_at": "2020-09-02T15:39:06.329Z",
"updated_at": "2020-09-08T16:14:05.407Z",
"position": 6,
"description": "Requests for Pull Requests on GitHub.com",
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
Expand All @@ -80,12 +100,13 @@
{
"id": "br0l2tvcx85d",
"name": "GitHub Actions",
"status": "partial_outage",
"status": "operational",
"created_at": "2019-11-13T18:02:19.432Z",
"updated_at": "2020-05-22T17:01:05.383Z",
"position": 6,
"updated_at": "2020-09-02T15:40:47.790Z",
"position": 7,
"description": "Workflows, Compute and Orchestration for GitHub Actions",
"showcase": true,
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
Expand All @@ -96,10 +117,11 @@
"name": "GitHub Packages",
"status": "operational",
"created_at": "2019-11-13T18:02:40.064Z",
"updated_at": "2020-05-22T20:50:20.454Z",
"position": 7,
"updated_at": "2020-09-08T15:50:32.845Z",
"position": 8,
"description": "API requests and webhook delivery for GitHub Packages",
"showcase": true,
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
Expand All @@ -108,26 +130,13 @@
{
"id": "vg70hn9s2tyj",
"name": "GitHub Pages",
"status": "partial_outage",
"created_at": "2017-01-31T20:04:33.923Z",
"updated_at": "2020-05-22T20:37:37.733Z",
"position": 8,
"description": "Frontend application and API servers for Pages builds",
"showcase": true,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
"only_show_if_degraded": false
},
{
"id": "5l5rlzqm4yzy",
"name": "Other",
"status": "operational",
"created_at": "2019-11-13T18:03:05.012Z",
"updated_at": "2020-05-15T19:59:51.187Z",
"created_at": "2017-01-31T20:04:33.923Z",
"updated_at": "2020-09-17T16:30:28.895Z",
"position": 9,
"description": "Other",
"description": "Frontend application and API servers for Pages builds",
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
Expand Down Expand Up @@ -252,7 +261,116 @@
]
}
],
"scheduled_maintenances": [],
"scheduled_maintenances": [
{
"id": "skzhfwy9kf8q",
"name": "Deprecating password authentication",
"status": "scheduled",
"created_at": "2020-09-14T09:33:28.071Z",
"updated_at": "2020-09-14T09:36:29.610Z",
"monitoring_at": null,
"resolved_at": null,
"impact": "maintenance",
"shortlink": "http://stspg.io/z0gf9ffzy530",
"started_at": "2020-09-14T09:33:28.065Z",
"page_id": "kctbh9vrtdwd",
"incident_updates": [
{
"id": "xwjsnptt3v4g",
"status": "scheduled",
"body": "As mentioned in our <a href=\"https://developer.github.com/changes/2020-02-14-deprecating-password-auth/\">developer guide</a>, GitHub no longer supports basic authentication using a username and password. Instead, we recommend using personal access tokens or the web application flow.",
"incident_id": "skzhfwy9kf8q",
"created_at": "2020-09-14T09:33:28.126Z",
"updated_at": "2020-09-14T09:36:29.607Z",
"display_at": "2020-09-14T09:33:28.126Z",
"affected_components": [
{
"code": "brv1bkgrwx7q",
"name": "API Requests",
"old_status": "operational",
"new_status": "operational"
}
],
"deliver_notifications": true,
"custom_tweet": null,
"tweet_id": null
}
],
"components": [
{
"id": "brv1bkgrwx7q",
"name": "API Requests",
"status": "operational",
"created_at": "2017-01-31T20:01:46.621Z",
"updated_at": "2020-09-08T17:16:59.324Z",
"position": 2,
"description": "Requests for GitHub APIs",
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
"only_show_if_degraded": false
}
],
"scheduled_for": "2020-09-30T07:00:00.000Z",
"scheduled_until": "2020-09-30T10:00:00.000Z"
},
{
"id": "ry5psbndh11j",
"name": "Deprecating password authentication",
"status": "scheduled",
"created_at": "2020-09-14T09:34:09.320Z",
"updated_at": "2020-09-14T09:35:34.843Z",
"monitoring_at": null,
"resolved_at": null,
"impact": "maintenance",
"shortlink": "http://stspg.io/r7b3cwdr1hll",
"started_at": "2020-09-14T09:34:09.316Z",
"page_id": "kctbh9vrtdwd",
"incident_updates": [
{
"id": "9pyd05dq9dmh",
"status": "scheduled",
"body": "As mentioned in our <a href=\"https://developer.github.com/changes/2020-02-14-deprecating-password-auth\">developer guide</a>, GitHub no longer supports basic authentication using a username and password. Instead, we recommend using personal access tokens or the web application flow.",
"incident_id": "ry5psbndh11j",
"created_at": "2020-09-14T09:34:09.369Z",
"updated_at": "2020-09-14T09:35:34.841Z",
"display_at": "2020-09-14T09:34:09.369Z",
"affected_components": [
{
"code": "brv1bkgrwx7q",
"name": "API Requests",
"old_status": "operational",
"new_status": "operational"
}
],
"deliver_notifications": true,
"custom_tweet": null,
"tweet_id": null
}
],
"components": [
{
"id": "brv1bkgrwx7q",
"name": "API Requests",
"status": "operational",
"created_at": "2017-01-31T20:01:46.621Z",
"updated_at": "2020-09-08T17:16:59.324Z",
"position": 2,
"description": "Requests for GitHub APIs",
"showcase": false,
"start_date": null,
"group_id": null,
"page_id": "kctbh9vrtdwd",
"group": false,
"only_show_if_degraded": false
}
],
"scheduled_for": "2020-09-30T16:00:00.000Z",
"scheduled_until": "2020-09-30T19:00:00.000Z"
}
],
"status": {
"indicator": "minor",
"description": "Minor Service Outage"
Expand Down
7 changes: 5 additions & 2 deletions action.yml
Expand Up @@ -19,8 +19,11 @@ inputs:
webhooks_threshold:
description: 'Defines threshold for Webhooks to fail the job (operational, degraded_performance, partial_outage or major_outage)'
required: false
ipp_threshold:
description: 'Defines threshold for Issues, PRs, Projects to fail the job (operational, degraded_performance, partial_outage or major_outage)'
issues_threshold:
description: 'Defines threshold for Issues to fail the job (operational, degraded_performance, partial_outage or major_outage)'
required: false
prs_threshold:
description: 'Defines threshold for Pull Requests to fail the job (operational, degraded_performance, partial_outage or major_outage)'
required: false
actions_threshold:
description: 'Defines threshold for GitHub Actions to fail the job (operational, degraded_performance, partial_outage or major_outage)'
Expand Down

0 comments on commit 52ee551

Please sign in to comment.