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); }