From 09e5aebfb831244bdb80b6b60465b88fa4d64142 Mon Sep 17 00:00:00 2001 From: Dave <47763218+AliiiBenn@users.noreply.github.com> Date: Tue, 21 Apr 2026 11:08:00 +0200 Subject: [PATCH 1/2] Apply suggested fix to packages/repofetch/src/cli.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- packages/repofetch/src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/repofetch/src/cli.ts b/packages/repofetch/src/cli.ts index aa2b7fa..df1a45d 100644 --- a/packages/repofetch/src/cli.ts +++ b/packages/repofetch/src/cli.ts @@ -215,7 +215,7 @@ async function main() { const entries = Object.entries(node); entries.forEach(([name, value], index) => { const isEntryLast = index === entries.length - 1; - const connector = isEntryLast ? '└── ' : '│ '; + const connector = isEntryLast ? '└── ' : '├── '; const newPrefix = prefix + (isEntryLast ? " " : "| "); console.log(prefix + connector + name); if (value !== "file" && typeof value === "object" && value !== null) { From 339503a82ec2e53e64f8b06f1d094631a41ddf0b Mon Sep 17 00:00:00 2001 From: Dave <47763218+AliiiBenn@users.noreply.github.com> Date: Tue, 21 Apr 2026 11:08:00 +0200 Subject: [PATCH 2/2] Apply suggested fix to packages/repofetch/src/cli.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- packages/repofetch/src/cli.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/repofetch/src/cli.ts b/packages/repofetch/src/cli.ts index df1a45d..9f9e723 100644 --- a/packages/repofetch/src/cli.ts +++ b/packages/repofetch/src/cli.ts @@ -7,8 +7,7 @@ import { createClient } from './index.js'; import { setToken, deleteToken } from '@nesalia/repofetch-sdk'; import { homedir } from 'os'; import { join } from 'path'; -import { mkdirSync, readFileSync, writeFileSync, existsSync } from 'fs'; -import { chmod } from 'fs/promises'; +import { mkdirSync, readFileSync, writeFileSync, existsSync, chmodSync } from 'fs'; // Helper type guard functions for SDK errors @@ -24,7 +23,7 @@ function ensureConfigDir(): void { const dir = join(homedir(), '.config', 'repofetch'); if (!existsSync(dir)) { mkdirSync(dir, { recursive: true }); - chmod(dir, 0o700); // Owner-only access + chmodSync(dir, 0o700); // Owner-only access } }