chore(docs-util): fix freshness check script (#5518)

This commit is contained in:
Shahed Nasser
2023-11-01 12:28:34 +02:00
committed by GitHub
parent 6060b88360
commit 4692f54b49

View File

@@ -4,6 +4,7 @@ import { LinearClient } from "@linear/sdk"
import { Octokit } from "@octokit/core"
import fs from "fs"
import path from "path"
import { fileURLToPath } from "url"
const octokit = new Octokit({
auth: process.env.GH_TOKEN,
@@ -13,6 +14,9 @@ const linearClient = new LinearClient({
apiKey: process.env.LINEAR_API_KEY,
})
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const repoPath = path.join(
__dirname,
"..",