There was an error while loading. Please reload this page.
1 parent 656eb85 commit 301229fCopy full SHA for 301229f
1 file changed
.github/workflows/unassign-stale-issues.yml
@@ -44,7 +44,9 @@ jobs:
44
}
45
const assignedAt = new Date(assignedEvent.created_at);
46
// Find the first PR linked event date
47
- const prLinkedEvent = timeline.find(event => event.event === 'connected');
+ const prLinkedEvent = timeline
48
+ .filter(e => e.event === 'connected' && new Date(e.created_at) >= assignedAt)
49
+ .at(0); // earliest link *after* assignment
50
const prLinkedAt = prLinkedEvent ? new Date(prLinkedEvent.created_at) : null;
51
52
// Calculate days since assignment
0 commit comments