mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-07 02:11:11 +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 {
|
return {
|
||||||
style: 'warning',
|
style: status.failed > 0 ? 'error' : 'warning',
|
||||||
icon: 'spinner',
|
icon: 'spinner',
|
||||||
text: getChecksCount(status)
|
text: getChecksCount(status)
|
||||||
};
|
};
|
||||||
|
@ -381,6 +381,7 @@ export class GitHubService {
|
|||||||
startedAt: firstStart,
|
startedAt: firstStart,
|
||||||
hasChecks: !!totalCount,
|
hasChecks: !!totalCount,
|
||||||
success,
|
success,
|
||||||
|
failed,
|
||||||
completed,
|
completed,
|
||||||
queued,
|
queued,
|
||||||
totalCount,
|
totalCount,
|
||||||
|
@ -60,14 +60,15 @@ export function parseGitHubDetailedPullRequest(
|
|||||||
|
|
||||||
export type ChecksStatus =
|
export type ChecksStatus =
|
||||||
| {
|
| {
|
||||||
startedAt?: Date;
|
startedAt: Date;
|
||||||
completed?: boolean;
|
completed: boolean;
|
||||||
success?: boolean;
|
success: boolean;
|
||||||
hasChecks?: boolean;
|
hasChecks: boolean;
|
||||||
queued?: number;
|
failed: number;
|
||||||
totalCount?: number;
|
queued: number;
|
||||||
skipped?: number;
|
totalCount: number;
|
||||||
finished?: number;
|
skipped: number;
|
||||||
|
finished: number;
|
||||||
}
|
}
|
||||||
| null
|
| null
|
||||||
| undefined;
|
| undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user