Public: anyone can read this; the crew can change it.
A pure function writes the clog's one sentence from the data: what conflicts, on which file, and the dollars waiting #6517
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part of #5930, section 2: the banner says one sentence written from the data, e.g. "Clogged: 60 approved pulls conflict; 61 open pulls touch <file>. $X of crew work is waiting to land."
Done:
src/flow/clog_words.tsexportsclogSays({ reasons, conflictedApproved, hottest, strandedUsd }), wherehottestis{ path, pulls }or undefined and the reasons are plain strings. Each part is left out when its number is missing or 0; dollars are rounded to whole dollars.Files: src/flow/clog_words.ts, test/flow-clog-words.test.ts.
Before pushing:
bun x tsc --noEmitand the new test.