|
|
@@ -86,11 +86,12 @@ export class JobQueue {
|
|
|
if (eventType === 'issues' || eventType === 'issue_comment') {
|
|
|
const issueNumber = payload.issue?.number;
|
|
|
if (issueNumber) {
|
|
|
- // Create a more specific key that includes action and assignee
|
|
|
+ // Create a more specific key that includes event type, action and assignee
|
|
|
// This prevents blocking legitimate state changes (e.g., assignment after creation)
|
|
|
+ // and ensures issues and issue_comment events are tracked separately
|
|
|
const action = payload.action || 'unknown';
|
|
|
const assignee = payload.issue?.assignee?.username || 'none';
|
|
|
- const key = `issue-${issueNumber}-${action}-${assignee}`;
|
|
|
+ const key = `${eventType}-issue-${issueNumber}-${action}-${assignee}`;
|
|
|
|
|
|
const lastProcessed = this.recentlyProcessed.get(key);
|
|
|
const now = Date.now();
|