mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-18 11:40:39 +09:00
10 lines
301 B
TypeScript
10 lines
301 B
TypeScript
|
|
import type { LiveRunForIssue } from "../api/heartbeats";
|
||
|
|
|
||
|
|
export function collectLiveIssueIds(liveRuns: readonly LiveRunForIssue[] | null | undefined): Set<string> {
|
||
|
|
const ids = new Set<string>();
|
||
|
|
for (const run of liveRuns ?? []) {
|
||
|
|
if (run.issueId) ids.add(run.issueId);
|
||
|
|
}
|
||
|
|
return ids;
|
||
|
|
}
|