Files to lowercase

This commit is contained in:
DaanV2
2024-05-11 11:16:00 +02:00
parent c727935dd0
commit e75ce9e7d0
7 changed files with 11 additions and 20 deletions

26
test/src/github.ts Normal file
View File

@@ -0,0 +1,26 @@
export interface ErrorAnnotation {
file?: string;
line?: number;
column?: number;
endLine?: number;
title?: string;
}
export namespace Github {
export function createError(message: string, error: ErrorAnnotation = {}): void {
const data = Object.entries(error)
.filter(([key, value]) => value !== undefined)
.map(([key, value]) => `${key}=${value}`)
.join(",");
console.log(`::error ${data}::${message}`);
}
export function startGroup(title: string): void {
console.log(`::group::${title}`);
}
export function endGroup(): void {
console.log(`::endgroup::`);
}
}