Skip to content

Commit

Permalink
fix(status): properly handle workflow completed / action_required
Browse files Browse the repository at this point in the history
reported as Running for now, for lack of better option
  • Loading branch information
tsimbalar committed Apr 26, 2021
1 parent 412c12e commit c434d00
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 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.10.0
version: 0.10.1
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.10.0",
"version": "0.10.1",
"buildInfo": {
"commitSha": "_CI_GIT_COMMIT_SHA",
"buildDate": "_CI_BUILD_DATE",
Expand Down
3 changes: 3 additions & 0 deletions src/infra/github/WorkflowRunRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ export class WorkflowRunRepository implements IWorkflowRunRepository {
if (runConclusion === 'startup_failure') {
return 'Failed';
}
if (runConclusion === 'action_required') {
return 'Running';
}
break;
case 'in_progress':
return 'Running';
Expand Down

0 comments on commit c434d00

Please sign in to comment.