fix(ci): message part types across the strict shared build, formatting and trip member write tests

This commit is contained in:
Maurice
2026-10-22 13:03:59 +02:00
parent 76c7323e23
commit fd7fbef295
7 changed files with 129 additions and 20 deletions
@@ -171,7 +171,7 @@ function pushCard(blocks: MessageBlock[], entry: CardEntry, group: string): void
function withoutYielded(blocks: MessageBlock[], rules: CardRules): MessageBlock[] {
const changes = blocks.flatMap((b) => (b.kind === 'change' ? b.items.flatMap((i) => (i.card ? [i.card] : [])) : []));
if (changes.length === 0) return blocks;
return blocks.flatMap((block) => {
return blocks.flatMap((block): MessageBlock[] => {
if (block.kind !== 'cards') return [block];
const entries = block.entries.filter((e) => !changes.some((change) => rules.yieldsToChange(e.card, change)));
return entries.length > 0 ? [{ ...block, entries }] : [];