Skip to content

Add all packages to dependabot and add cooldown - #217

Merged
Avni2000 merged 3 commits into
mainfrom
update-dependabot-config
Apr 4, 2026
Merged

Avni2000 merged 3 commits into
mainfrom
update-dependabot-config

Conversation

@Avni2000

@Avni2000 Avni2000 commented Apr 4, 2026 •

Copy link
Copy Markdown
Owner

Motivation

I was under the impression that dependabot already tracked all packages automatically, for some reason.

Solution

Summary by CodeRabbit

  • Chores
    • Updated automated dependency management: added a 21-day cooldown between update PRs, standardized commit-message prefixes to lowercase, and reworked grouping rules to broadly separate development vs production dependencies and simplify which packages are targeted for updates.

@coderabbitai

coderabbitai Bot commented Apr 4, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Updated .github/dependabot.yml: added a 21-day cooldown, changed npm commit-message prefixes to lowercase, and reworked npm dependency groups by broadening patterns and setting explicit dependency-type for dev and production groups.

Changes

Cohort / File(s) Summary
Dependabot configuration
​.github/dependabot.yml
Added cooldown.default-days: 21 for npm and GitHub Actions; changed npm commit-message.prefix values to lowercase (chore, ci); set groups.dev-dependencies.dependency-type: "development" and patterns: ["*"]; set groups.production-dependencies.dependency-type: "production" with patterns: ["*"]; removed prior exclude-patterns and update-types scoping. Review attention: commit-message format, grouping semantics, and potential inclusion of dev packages in production group due to pattern changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰
I nibbled lines in YAML light,
Set cooldowns to keep PRs polite,
Lowercase labels, tidy and spry,
Dependencies hop — but not too high! 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add all packages to dependabot and add cooldown' directly and clearly summarizes the two main changes in the pull request: expanding Dependabot to track all packages and introducing a cooldown period.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-dependabot-config

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.dependencies vs groups.production-dependencies.patterns would 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

📥 Commits

Reviewing files that changed from the base of the PR and between ee71f6e and 3cc7517.

📒 Files selected for processing (1)
  • .github/dependabot.yml

Comment thread .github/dependabot.yml Resolved
@Avni2000 Avni2000 changed the title Add all used packages to dependabot and add cooldown Add all packages to dependabot and add cooldown Apr 4, 2026
@Avni2000
Avni2000 enabled auto-merge April 4, 2026 03:33
@Avni2000
Avni2000 merged commit 285e7a9 into main Apr 4, 2026
6 checks passed
@Avni2000
Avni2000 deleted the update-dependabot-config branch April 4, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant