|
|
@@ -47,10 +47,10 @@ if (import.meta.url === `file://${process.argv[1]}`) {
|
|
|
process.exit(0);
|
|
|
}
|
|
|
|
|
|
- // Skip if pusher is claude AND assignee is NOT claude (avoid loops)
|
|
|
- // Allow Claude to work on issues it created and assigned to itself
|
|
|
- if (pusher === 'claude' && assignee !== 'claude') {
|
|
|
- console.log('Pusher is claude and issue not assigned to claude, skipping automation to avoid loops');
|
|
|
+ // Skip if pusher is claude for issue_comment events (avoid comment loops)
|
|
|
+ // commentBody is only populated for issue_comment events, not issues events
|
|
|
+ if (pusher === 'claude' && commentBody) {
|
|
|
+ console.log('Pusher is claude for issue_comment event, skipping automation to avoid loops');
|
|
|
process.exit(0);
|
|
|
}
|
|
|
|