mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 15:04: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",
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user