Repository navigation
Add all packages to dependabot and add cooldown - #217
Conversation
📝 WalkthroughWalkthroughUpdated Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/dependabot.yml (1)
42-55: Add a CI guardrail to prevent allowlist drift.The explicit production allowlist is easy to forget during future dependency adds. A small CI check comparing
package.json.dependenciesvsgroups.production-dependencies.patternswould keep this objective enforced.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/dependabot.yml around lines 42 - 55, Add a CI guard that fails if the explicit production allowlist in .github/dependabot.yml (groups.production-dependencies.patterns) drifts from package.json dependencies: implement a script (run as a workflow step) that reads package.json.dependencies and compares keys against the patterns listed under groups.production-dependencies.patterns, reporting any missing production dependency entries or extra patterns; hook this script into the repository CI (e.g., in .github/workflows/dependabot-guard.yml) so pull requests will be blocked until the allowlist is updated when new dependencies are added (use the exact identifiers groups.production-dependencies.patterns and package.json.dependencies to locate the config and package file).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/dependabot.yml:
- Around line 22-36: The dependabot configuration lists "knip" under the
dev-only group but package.json currently declares "knip" as a runtime
dependency; fix by making the declarations consistent: either move "knip" from
package.json to devDependencies, or move "knip" out of the dev-only group in
.github/dependabot.yml into the production-dependencies group so Dependabot will
check it; locate the "knip" entry in package.json and the array in
.github/dependabot.yml (the group containing "@clack/prompts",
"@playwright/test", etc.) and update one of them accordingly, then run a quick
install/lint to verify no unresolved imports.
---
Nitpick comments:
In @.github/dependabot.yml:
- Around line 42-55: Add a CI guard that fails if the explicit production
allowlist in .github/dependabot.yml (groups.production-dependencies.patterns)
drifts from package.json dependencies: implement a script (run as a workflow
step) that reads package.json.dependencies and compares keys against the
patterns listed under groups.production-dependencies.patterns, reporting any
missing production dependency entries or extra patterns; hook this script into
the repository CI (e.g., in .github/workflows/dependabot-guard.yml) so pull
requests will be blocked until the allowlist is updated when new dependencies
are added (use the exact identifiers groups.production-dependencies.patterns and
package.json.dependencies to locate the config and package file).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: b680588e-143a-49a2-86de-a74dba365cb7
📒 Files selected for processing (1)
.github/dependabot.yml
Motivation
I was under the impression that dependabot already tracked all packages automatically, for some reason.
Solution
Summary by CodeRabbit