Skip to content

Commit 6ca7542

Browse files
Update .github/workflows/unassign-stale-issues.yml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 301229f commit 6ca7542

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/unassign-stale-issues.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ jobs:
4545
const assignedAt = new Date(assignedEvent.created_at);
4646
// Find the first PR linked event date
4747
const prLinkedEvent = timeline
48-
.filter(e => e.event === 'connected' && new Date(e.created_at) >= assignedAt)
48+
.filter(
49+
e =>
50+
['connected', 'cross-referenced'].includes(e.event) &&
51+
new Date(e.created_at) >= assignedAt
52+
)
4953
.at(0); // earliest link *after* assignment
5054
const prLinkedAt = prLinkedEvent ? new Date(prLinkedEvent.created_at) : null;
5155

0 commit comments

Comments
 (0)