Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copilot status support #86

Merged
merged 2 commits into from
May 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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