Skip to content

Commit

Permalink
Merge pull request #85 from crazy-max/rename-cpts
Browse files Browse the repository at this point in the history
components renamed
  • Loading branch information
crazy-max committed May 6, 2023
2 parents 8d9289b + dfbee6a commit 91377a0
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 30 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@ jobs:

Following inputs can be used as `step.with` keys

| Name | Type | Description |
|--------------------------------|---------|-------------------------------------------------------------------------------------|
| `overall_threshold`**¹** | String | Defines threshold for overall status (also called rollup) of GitHub to fail the job |
| `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 |
| `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 |
| `codespaces_threshold`**²** | String | Defines threshold for Codespaces to fail the job |
| Name | Type | Description |
|-----------------------------|--------|-------------------------------------------------------------------------------------|
| `overall_threshold`**¹** | String | Defines threshold for overall status (also called rollup) of GitHub to fail the job |
| `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 |
| `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 Actions to fail the job |
| `packages_threshold`**²** | String | Defines threshold for Packages to fail the job |
| `pages_threshold`**²** | String | Defines threshold for Pages to fail the job |
| `codespaces_threshold`**²** | String | Defines threshold for Codespaces to fail the job |

> * **¹** Accepted values are `minor`, `major`, `critical` or `maintenance`.
> * **²** Accepted values are `operational`, `degraded_performance`, `partial_outage` `major_outage`, `under_maintenance`.
Expand Down
10 changes: 5 additions & 5 deletions __tests__/fixtures/data-summary-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
},
{
"id": "br0l2tvcx85d",
"name": "GitHub Actions",
"name": "Actions",
"status": "under_maintenance",
"created_at": "2019-11-13T18:02:19.432Z",
"updated_at": "2020-12-15T10:00:40.029Z",
Expand All @@ -114,7 +114,7 @@
},
{
"id": "st3j38cctv9l",
"name": "GitHub Packages",
"name": "Packages",
"status": "operational",
"created_at": "2019-11-13T18:02:40.064Z",
"updated_at": "2020-12-17T00:54:37.707Z",
Expand All @@ -129,7 +129,7 @@
},
{
"id": "vg70hn9s2tyj",
"name": "GitHub Pages",
"name": "Pages",
"status": "operational",
"created_at": "2017-01-31T20:04:33.923Z",
"updated_at": "2020-10-10T00:02:38.220Z",
Expand Down Expand Up @@ -202,7 +202,7 @@
"affected_components": [
{
"code": "br0l2tvcx85d",
"name": "GitHub Actions",
"name": "Actions",
"old_status": "operational",
"new_status": "operational"
}
Expand All @@ -215,7 +215,7 @@
"components": [
{
"id": "br0l2tvcx85d",
"name": "GitHub Actions",
"name": "Actions",
"status": "under_maintenance",
"created_at": "2019-11-13T18:02:19.432Z",
"updated_at": "2020-12-15T10:00:40.029Z",
Expand Down
6 changes: 3 additions & 3 deletions __tests__/fixtures/data-summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
},
{
"id": "br0l2tvcx85d",
"name": "GitHub Actions",
"name": "Actions",
"status": "operational",
"created_at": "2019-11-13T18:02:19.432Z",
"updated_at": "2020-09-02T15:40:47.790Z",
Expand All @@ -114,7 +114,7 @@
},
{
"id": "st3j38cctv9l",
"name": "GitHub Packages",
"name": "Packages",
"status": "operational",
"created_at": "2019-11-13T18:02:40.064Z",
"updated_at": "2020-09-08T15:50:32.845Z",
Expand All @@ -129,7 +129,7 @@
},
{
"id": "vg70hn9s2tyj",
"name": "GitHub Pages",
"name": "Pages",
"status": "operational",
"created_at": "2017-01-31T20:04:33.923Z",
"updated_at": "2020-09-17T16:30:28.895Z",
Expand Down
2 changes: 1 addition & 1 deletion __tests__/githubstatus.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as fs from 'fs';
import {describe, expect, it, jest, test} from '@jest/globals';
import * as path from 'path';
import * as githubstatus from '../src/githubstatus';
import {Page, Status} from '../src/status';
import {Summary} from '../src/summary';
import fs from 'fs';

describe('githubstatus', () => {
it('returns GitHub Status (status)', async () => {
Expand Down
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ inputs:
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)'
description: 'Defines threshold for Actions to fail the job (operational, degraded_performance, partial_outage or major_outage)'
required: false
packages_threshold:
description: 'Defines threshold for GitHub Packages to fail the job (operational, degraded_performance, partial_outage or major_outage)'
description: 'Defines threshold for Packages to fail the job (operational, degraded_performance, partial_outage or major_outage)'
required: false
pages_threshold:
description: 'Defines threshold for GitHub Pages to fail the job (operational, degraded_performance, partial_outage or major_outage)'
description: 'Defines threshold for Pages to fail the job (operational, degraded_performance, partial_outage or major_outage)'
required: false
codespaces_threshold:
description: 'Defines threshold for GitHub Codespaces to fail the job (operational, degraded_performance, partial_outage or major_outage)'
description: 'Defines threshold for Codespaces to fail the job (operational, degraded_performance, partial_outage or major_outage)'
required: false

runs:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/githubstatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export enum Component {
Webhooks = 'Webhooks',
Issues = 'Issues',
PullRequests = 'Pull Requests',
Actions = 'GitHub Actions',
Packages = 'GitHub Packages',
Pages = 'GitHub Pages',
Actions = 'Actions',
Packages = 'Packages',
Pages = 'Pages',
Codespaces = 'Codespaces',
Other = 'Other'
}
Expand Down

0 comments on commit 91377a0

Please sign in to comment.