You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/auto-issue-comment.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,5 +22,5 @@ jobs:
22
22
issue_number: context.issue.number,
23
23
owner: context.repo.owner,
24
24
repo: context.repo.repo,
25
-
body: '@claude review this issue and do a detailed analysis and fix this if the existing code doesn\'t have the solution implemented. Making sure it has backward compatibility, no existing features removed. After making those changes, again review the applied changes. Use @web to search if you dont know any information or to find the latest documentation or to find the latest version. Run the code if you think you need to run it to test it. Minimal code change to start with if required any changes. **Please create a PR with your changes**.'
25
+
body: '@claude review this issue and do a detailed analysis and fix this if the existing code doesn\'t have the solution implemented. Making sure it has backward compatibility, no existing features removed. After making those changes, again review the applied changes. Use @web to search if you dont know any information or to find the latest documentation or to find the latest version. Run the code if you think you need to run it to test it. Minimal code change to start with if required any changes. **Please create a PR using gh tool with your changes**.'
} else if (context.eventName === 'issue_comment' && context.payload.issue.pull_request) {
138
140
// This is a comment on a PR (not an issue)
139
141
issueNumber = context.payload.issue.number;
142
+
isPR = true;
140
143
} else {
141
-
// This is a regular issue
144
+
// This is a regular issue - don't post review comment
142
145
issueNumber = context.issue.number;
146
+
isPR = false;
143
147
}
144
148
145
-
console.log(`Posting review comment on issue/PR #${issueNumber}`);
146
-
147
-
await github.rest.issues.createComment({
148
-
issue_number: issueNumber,
149
-
owner: context.repo.owner,
150
-
repo: context.repo.repo,
151
-
body: '@claude review if the changes made in the above branch are as per the requirements and make changes to the above branch if issues still exist. Please create a Pull Request with gh tool with your changes.'
152
-
});
149
+
// Only post review comment on PRs, not regular issues
150
+
if (isPR) {
151
+
console.log(`Posting review comment on PR #${issueNumber}`);
152
+
153
+
await github.rest.issues.createComment({
154
+
issue_number: issueNumber,
155
+
owner: context.repo.owner,
156
+
repo: context.repo.repo,
157
+
body: '@claude review if the changes made in the above branch are as per the requirements and make changes to the above branch if issues still exist.'
158
+
});
159
+
} else {
160
+
console.log(`Skipping review comment for regular issue #${issueNumber}`);
0 commit comments