fix: enable automatic triggering for review mode on PR events

This commit is contained in:
km-anthropic
2025-07-30 16:28:58 -07:00
parent 204205777f
commit 463c7151e3

View File

@@ -30,10 +30,10 @@ export const reviewMode: Mode = {
description: "Code review mode for inline comments and suggestions", description: "Code review mode for inline comments and suggestions",
shouldTrigger(context) { shouldTrigger(context) {
if (!isEntityContext(context)) { return (
return false; isEntityContext(context) &&
} (context.eventName === "pull_request" || checkContainsTrigger(context))
return checkContainsTrigger(context); );
}, },
prepareContext(context, data) { prepareContext(context, data) {