Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,16 @@ export async function toSortedLabelsArray(
labels.push(label);
}

let labelsViaPageIterator: SettingLabel[] = [];
/*
Copy link
Preview

Copilot AI Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment should use proper TSDoc format with /** instead of /* for multi-line comments in TypeScript files.

Suggested change
/*
/**

Copilot uses AI. Check for mistakes.

Comment out the sanity check. During the live test, there might be other parallel tests adding labels, which causes the sanity check to fail.
*/
// let labelsViaPageIterator: SettingLabel[] = [];

for await (const page of pagedIterator.byPage()) {
labelsViaPageIterator = labelsViaPageIterator.concat(page.items);
}
// for await (const page of pagedIterator.byPage()) {
// labelsViaPageIterator = labelsViaPageIterator.concat(page.items);
// }

// just a sanity-check
assert.deepEqual(labels, labelsViaPageIterator);
// assert.deepEqual(labels, labelsViaPageIterator);

labels.sort((a, b) => (compareFn ? compareFn(a, b) : `${a.name}`.localeCompare(`${b.name}`)));

Expand Down