Skip to content

Commit

Permalink
fix(workflow-status): fix incorrect fix for "waiting" status
Browse files Browse the repository at this point in the history
  • Loading branch information
tsimbalar committed Apr 12, 2021
1 parent 7b63e95 commit 7c6038f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ components:
bearerFormat: JWT
info:
title: gha-build-monitor
version: 0.9.1
version: 0.9.2
description: 'Adapter to give access to GitHub Actions status via the CatLight Protocol'
license:
name: MIT
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gha-build-monitor",
"version": "0.9.1",
"version": "0.9.2",
"buildInfo": {
"commitSha": "_CI_GIT_COMMIT_SHA",
"buildDate": "_CI_BUILD_DATE",
Expand Down
5 changes: 2 additions & 3 deletions src/infra/github/WorkflowRunRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,13 @@ export class WorkflowRunRepository implements IWorkflowRunRepository {
if (runConclusion === 'startup_failure') {
return 'Failed';
}
if (runConclusion === 'waiting') {
return 'Queued';
}
break;
case 'in_progress':
return 'Running';
case 'queued':
return 'Queued';
case 'waiting':
return 'Queued';
}
throw new Error(
`Unsupported workflow run status/conclusion "${runStatus}" / "${runConclusion}"`
Expand Down

0 comments on commit 7c6038f

Please sign in to comment.