Sort pipelines based on creation date (#1159)

This commit is contained in:
Anbraten 2022-09-03 19:58:34 +02:00 committed by GitHub
parent d45310c804
commit 297732eab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ export function isProcRunning(proc: BuildProc): boolean {
* @returns {number}
*/
export function compareBuilds(a: Build, b: Build): number {
return (b.started_at || b.created_at || -1) - (a.started_at || a.created_at || -1);
return (b.created_at || -1) - (a.created_at || -1);
}
export function isBuildActive(build: Build): boolean {