From c89ed8e5a8a6cbc9cf0a1adcd11a6bed0dc83956 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Fri, 10 May 2024 17:15:52 -0700 Subject: [PATCH] Sync labels --- eng/common/scripts/sync-labels.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/sync-labels.ts b/eng/common/scripts/sync-labels.ts index ff1c868e28..5f98796a36 100644 --- a/eng/common/scripts/sync-labels.ts +++ b/eng/common/scripts/sync-labels.ts @@ -1,9 +1,11 @@ import { Octokit } from "@octokit/rest"; import { readFile } from "fs/promises"; +import { dirname, resolve } from "path"; +import { fileURLToPath } from "url"; import { inspect, parseArgs } from "util"; import { parse } from "yaml"; -const labelFile = "../labels.yaml"; +const labelFile = resolve(dirname(fileURLToPath(import.meta.url)), "../labels.yaml"); const repo = { owner: "microsoft",