Repository navigation
feat(core): store Dependabot runs, lock concurrent checks, add dismissals - #38
Merged
Merged
Conversation
…s, add dismissals Each `gitlib dependabot check` now saves its result as the newest run in gitlib.db (dependabot_runs, dependabot_findings; the newest 60 runs are kept), so the findings can be read without the network. A lease row taken under BEGIN IMMEDIATE stops two checks from running at once; it lapses after 15 minutes if the holder crashed. Findings for an owner that could not be asked are carried forward from the previous run with their original time. Putting a PR aside is the user's decision, so it lives in planning.db (append-only migration 4) rather than in the derived findings. CLI: `check` saves by default (`--no-save` to skip), plus `show`, `dismiss` and `restore`. Reports leave dismissed or snoozed PRs out and count them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Slice 2 of the Dependabot watch, stacked on #37 (base branch is #37's; GitHub retargets it to
mainwhen #37 merges). Items 6 (the lease) and 7 (storage, dismiss/snooze) of the Recommendation indocs/dependabot-watch.md.packages/core/src/dependabot/store.ts):dependabot_runsanddependabot_findingsingitlib.db, created withCREATE TABLE IF NOT EXISTSlike the community cache. Findings are derived from GitHub, so they live with the other rebuildable data. The newest 60 runs are kept.NOT CHECKED. One blip no longer empties the list.BEGIN IMMEDIATEwith a 5 s busy timeout (the way the planning store opens its database), expiring after 15 minutes so a crashed holder cannot block checks forever.GitLibApp.runDependabotCheck()takes it, saves the run, and always releases it; it throwsDependabotBusyError(aGitLibError) if another check holds it.planning.dbvia append-only migration 4 (dependabot_dismissals), keyed by lowercasedowner/repo+ number.checknow saves by default (--no-saveprints only and takes no lock); newshow(last saved run, no network, works without a token),dismiss <owner/repo#n> [--until DATE]andrestore. Reports leave dismissed/snoozed PRs out and print them underPut aside (n). JSON gainedrun, per-PRobserved_atanddismissed.Review notes
checkwriting togitlib.dbchanges what feat(core): report-only Dependabot check for starred repositories #37's README said ("report-only"); the README section is updated. It still never writes to GitHub.Verification
npm run typecheck,npm test(429 tests; 32 new here) andnpm run buildpass. Mutation-checked: disabling the carry-forward, or ignoring lease expiry, fails tests.🤖 Generated with Claude Code