From 624adc197603a8a3df441a7ba79b3f6b21778b13 Mon Sep 17 00:00:00 2001 From: km-anthropic Date: Tue, 29 Jul 2025 14:48:49 -0700 Subject: [PATCH] specify the type --- src/github/context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github/context.ts b/src/github/context.ts index 1301359..1cf3704 100644 --- a/src/github/context.ts +++ b/src/github/context.ts @@ -276,12 +276,12 @@ export function isIssuesAssignedEvent( export function isEntityContext( context: GitHubContext, ): context is ParsedGitHubContext { - return ENTITY_EVENT_NAMES.includes(context.eventName as any); + return ENTITY_EVENT_NAMES.includes(context.eventName as EntityEventName); } // Type guard to check if context is an automation context export function isAutomationContext( context: GitHubContext, ): context is AutomationContext { - return AUTOMATION_EVENT_NAMES.includes(context.eventName as any); + return AUTOMATION_EVENT_NAMES.includes(context.eventName as AutomationEventName); }