mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-05 08:29:30 +03:00
Show PR checks progress as error if any check has failed
This commit is contained in:
parent
0d2024e7fa
commit
c2f79818c8
@ -154,7 +154,7 @@
|
||||
}
|
||||
|
||||
return {
|
||||
style: 'warning',
|
||||
style: status.failed > 0 ? 'error' : 'warning',
|
||||
icon: 'spinner',
|
||||
text: getChecksCount(status)
|
||||
};
|
||||
|
@ -381,6 +381,7 @@ export class GitHubService {
|
||||
startedAt: firstStart,
|
||||
hasChecks: !!totalCount,
|
||||
success,
|
||||
failed,
|
||||
completed,
|
||||
queued,
|
||||
totalCount,
|
||||
|
@ -60,14 +60,15 @@ export function parseGitHubDetailedPullRequest(
|
||||
|
||||
export type ChecksStatus =
|
||||
| {
|
||||
startedAt?: Date;
|
||||
completed?: boolean;
|
||||
success?: boolean;
|
||||
hasChecks?: boolean;
|
||||
queued?: number;
|
||||
totalCount?: number;
|
||||
skipped?: number;
|
||||
finished?: number;
|
||||
startedAt: Date;
|
||||
completed: boolean;
|
||||
success: boolean;
|
||||
hasChecks: boolean;
|
||||
failed: number;
|
||||
queued: number;
|
||||
totalCount: number;
|
||||
skipped: number;
|
||||
finished: number;
|
||||
}
|
||||
| null
|
||||
| undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user