Skip to content

Commit b8bf2a4

Browse files
committed
fix(pull-requests): use the NodeOS namespace import in the attachment proxy
1 parent 6cc5d08 commit b8bf2a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/assets/GitHubAttachmentProxy.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as os from "node:os";
1+
import * as NodeOS from "node:os";
22

33
import * as Context from "effect/Context";
44
import * as Effect from "effect/Effect";
@@ -32,7 +32,7 @@ const make = Effect.gen(function* () {
3232
const readToken = yield* Effect.cachedWithTTL(
3333
gitHubCli
3434
// `auth token` ignores the cwd; the home directory always exists.
35-
.execute({ cwd: os.homedir(), args: ["auth", "token", "--hostname", "github.com"] })
35+
.execute({ cwd: NodeOS.homedir(), args: ["auth", "token", "--hostname", "github.com"] })
3636
.pipe(
3737
Effect.map((output) => output.stdout.trim() || null),
3838
Effect.orElseSucceed(() => null),

0 commit comments

Comments
 (0)