From a8783a3e8a9fd0983fd3054ea72201a15026ff2e Mon Sep 17 00:00:00 2001 From: David Sanders Date: Mon, 15 Jun 2026 21:05:22 -0700 Subject: [PATCH] test: drop mock of getEnvVar --- spec/index.spec.ts | 4 ---- src/index.ts | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/spec/index.spec.ts b/spec/index.spec.ts index a2e4d89..7c82942 100644 --- a/spec/index.spec.ts +++ b/spec/index.spec.ts @@ -104,10 +104,6 @@ vi.mock('../src/utils', () => ({ updatePRBranch: vi.fn(), })); -vi.mock('../src/utils/env-util', () => ({ - getEnvVar: vi.fn(), -})); - vi.mock('../src/operations/update-manual-backport', () => ({ updateManualBackport: vi.fn(), })); diff --git a/src/index.ts b/src/index.ts index 6c5d6df..1473e48 100644 --- a/src/index.ts +++ b/src/index.ts @@ -267,10 +267,7 @@ const probotHandler: ApplicationFunction = async (robot, { getRouter }) => { } const FASTTRACK_PREFIXES = ['build:', 'ci:']; - const FASTTRACK_USERS = [ - getEnvVar('BOT_USER_NAME'), - getEnvVar('COMMITTER_USER_NAME'), - ]; + const FASTTRACK_USERS = [getEnvVar('BOT_USER_NAME')]; const FASTTRACK_LABELS: string[] = ['fast-track 🚅']; const failureMap = new Map();