Skip to content

Commit fbfea0c

Browse files
cliffhallclaude
andcommitted
File the monthly issue when unranked SHA pins are its only finding
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent 715bde0 commit fbfea0c

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

‎scripts/dependency-refresh.mjs‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,14 @@ const uvTable = (rows) =>
361361
export function buildIssueBody({ npm, uv, actions, unranked = [] }) {
362362
const npmBehind = npm.filter((i) => i.packages.length > 0);
363363
const uvBehind = uv.filter((i) => i.packages.length > 0);
364-
if (npmBehind.length === 0 && uvBehind.length === 0 && actions.length === 0) {
364+
// An unranked pin alone still files: it is something this sweep cannot
365+
// vouch for, and saying so is the point of listing it.
366+
if (
367+
npmBehind.length === 0 &&
368+
uvBehind.length === 0 &&
369+
actions.length === 0 &&
370+
unranked.length === 0
371+
) {
365372
return null;
366373
}
367374

‎scripts/dependency-refresh.test.mjs‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,18 @@ test("buildIssueBody is null when nothing is behind, and lists each half", () =>
312312
assert.ok(!actionsOnly.includes("## uv"));
313313
});
314314

315+
test("buildIssueBody files when unranked pins are the only finding", () => {
316+
const body = buildIssueBody({
317+
npm: [],
318+
uv: [],
319+
actions: [],
320+
unranked: ["actions/cache@d23441a"],
321+
});
322+
assert.ok(body?.startsWith(ISSUE_MARKER));
323+
assert.match(body, /`actions\/cache@d23441a`/);
324+
assert.ok(!body.includes("## GitHub Actions"));
325+
});
326+
315327
test("buildClearedBody keeps the marker and speaks for every ecosystem", () => {
316328
const body = buildClearedBody("2026-11-01");
317329
assert.ok(body.startsWith(ISSUE_MARKER));

0 commit comments

Comments
 (0)