Skip to content

Commit

Permalink
Merge pull request #86 from crazy-max/copilot-status
Browse files Browse the repository at this point in the history
copilot status support
  • Loading branch information
crazy-max authored May 6, 2023
2 parents 91377a0 + 40dd406 commit a7aa712
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Following inputs can be used as `step.with` keys
| `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 |
| `copilot_threshold`**²** | String | Defines threshold for Copilot 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
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ inputs:
codespaces_threshold:
description: 'Defines threshold for Codespaces to fail the job (operational, degraded_performance, partial_outage or major_outage)'
required: false
copilot_threshold:
description: 'Defines threshold for Copilot to fail the job (operational, degraded_performance, partial_outage or major_outage)'
required: false

runs:
using: 'node16'
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.

1 change: 1 addition & 0 deletions src/githubstatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export enum Component {
Packages = 'Packages',
Pages = 'Pages',
Codespaces = 'Codespaces',
Copilot = 'Copilot',
Other = 'Other'
}

Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ async function run() {
[Component.Actions, await getComponentStatus('actions_threshold')],
[Component.Packages, await getComponentStatus('packages_threshold')],
[Component.Pages, await getComponentStatus('pages_threshold')],
[Component.Codespaces, await getComponentStatus('codespaces_threshold')]
[Component.Codespaces, await getComponentStatus('codespaces_threshold')],
[Component.Copilot, await getComponentStatus('copilot_threshold')]
]);

// Global
Expand Down

0 comments on commit a7aa712

Please sign in to comment.