Skip to content

Commit

Permalink
feat: Success status wins over waiting
Browse files Browse the repository at this point in the history
If a successful deployment or check is found that wins over a waiting
status.
  • Loading branch information
colinjfw committed Aug 24, 2019
1 parent 8bd07f3 commit 7e781da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apps/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ export function AggregateStatus(statuses: string[]) {
if (statuses.find(s => pending.includes(s.toUpperCase()))) {
return "PENDING";
}
if (statuses.find(s => waiting.includes(s.toUpperCase()))) {
return "WAITING";
}
if (statuses.find(s => success.includes(s.toUpperCase()))) {
return "SUCCESS";
}
if (statuses.find(s => waiting.includes(s.toUpperCase()))) {
return "WAITING";
}
return "WAITING";
}

Expand Down

0 comments on commit 7e781da

Please sign in to comment.