mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 23:14:13 +08:00
fix: enable automatic triggering for review mode on PR events
This commit is contained in:
@@ -30,10 +30,10 @@ export const reviewMode: Mode = {
|
||||
description: "Code review mode for inline comments and suggestions",
|
||||
|
||||
shouldTrigger(context) {
|
||||
if (!isEntityContext(context)) {
|
||||
return false;
|
||||
}
|
||||
return checkContainsTrigger(context);
|
||||
return (
|
||||
isEntityContext(context) &&
|
||||
(context.eventName === "pull_request" || checkContainsTrigger(context))
|
||||
);
|
||||
},
|
||||
|
||||
prepareContext(context, data) {
|
||||
|
||||
Reference in New Issue
Block a user