Skip to main content

require-dependabot-cooldown

Rule catalog ID: R086

Targeted pattern scopeโ€‹

Dependabot update entries in .github/dependabot.yml.

What this rule reportsโ€‹

This rule reports update entries that omit the cooldown key.

Why this rule existsโ€‹

Cooldown settings reduce noisy pull request churn by delaying fresh version updates for a defined period. Requiring the key makes update pacing an explicit policy decision instead of an accidental default.

โŒ Incorrectโ€‹

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"

โœ… Correctโ€‹

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
cooldown:
default-days: 3
schedule:
interval: "weekly"

Additional examplesโ€‹

Teams that prefer fewer routine Dependabot pull requests often combine cooldown with grouped updates and explicit pull request limits.

ESLint flat config exampleโ€‹

import githubActions from "eslint-plugin-github-actions-2";

export default [githubActions.configs.dependabot];

When not to use itโ€‹

Disable this rule if the repository intentionally wants Dependabot to consider each new release immediately.

Further readingโ€‹