Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/check-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
[ -n "$issue" ] && gh issue close "$issue" --comment "Nothing behind any more."
exit 0
fi
# A blank line first: right after a list item, Markdown folds this text into the last item.
body="$report

Repos to leave off both pages go in \`.github/drift-ignore\`, one name per line.
Merged PRs or whole repos to leave off go in \`leftOut\` in \`src/data/upstream.ts\`."
if [ -n "$issue" ]; then
Expand Down
4 changes: 3 additions & 1 deletion scripts/evidence.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export function evidenceDrift({ curated, leftOut, merged, fetchedAt, today }) {
for (const pr of merged) {
const k = key(pr.repo, pr.number);
if (!listed.has(k) && !skipped.has(k) && !skipped.has(pr.repo.toLowerCase())) {
lines.push(`- merged [${pr.repo}#${pr.number}](https://github.com/${pr.repo}/pull/${pr.number}) is not listed`);
lines.push(
`- merged [${pr.repo}#${pr.number}](https://github.com/${pr.repo}/pull/${pr.number}) is not listed; to keep it off, add \`"${pr.repo}#${pr.number}"\` to \`leftOut\``,
);
}
}
for (const u of curated) {
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/evidence.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ test("evidenceDrift flags unlisted merged PRs, listed PRs not merged and a stale
});
assert.match(report, /merged \[a\/new#5\]\(https:\/\/github\.com\/a\/new\/pull\/5\)/);
assert.match(report, /merged \[a\/list#10\]/);
// Each line carries the entry to paste into leftOut, so a PR that should stay off needs no lookup.
assert.match(report, /add `"a\/new#5"` to `leftOut`/);
assert.doesNotMatch(report, /a\/list#9|a\/b#1\b|a\/hobby/);
assert.match(report, /listed `a\/b#2` is not among the merged/);
assert.match(report, /was last fetched on 2026-09-01, 58 days ago/);
Expand Down
Loading