-
Notifications
You must be signed in to change notification settings - Fork 2
Enable Dependabot #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughDependabot configuration updated: the previously commented Composer example is replaced with an explicit Composer updater configuration, including weekly schedule, open pull request limit, versioning strategy, and commit message prefix. The existing GitHub Actions updater remains, scheduled weekly. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
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 (5)
.github/dependabot.yml (5)
5-6: Consider setting day/time/timezone for predictable runsDefining a specific day/time/timezone reduces noise during business hours and makes runs deterministic.
Apply this diff to refine the schedule:
schedule: interval: "weekly" + day: "monday" + time: "02:00" + timezone: "Europe/Prague"
9-10: Enhance commit messages for clarityIncluding scope and distinguishing dev dependency bumps makes PRs easier to scan.
Apply this diff:
commit-message: prefix: "composer" + prefix-development: "composer-dev" + include: "scope"
3-10: Optionally group Composer updates to reduce PR noiseGrouping can bundle similar updates (e.g., dev deps) and cut PR volume without losing clarity.
Apply this diff after the commit-message block:
commit-message: prefix: "composer" + prefix-development: "composer-dev" + include: "scope" + groups: + prod-dependencies: + patterns: + - "*" + update-types: + - "patch" + - "minor" + dev-dependencies: + dependency-type: "development"
11-12: Add labels and clearer commit prefix for GitHub Actions updatesThis helps triage and distinguishes CI bumps from library deps.
Apply this diff:
- package-ecosystem: "github-actions" directory: "/" + labels: + - "dependencies" + - "ci" + commit-message: + prefix: "ci"
13-14: Optionally add day/time/timezone for Actions updater tooKeeps both updaters aligned and predictable.
Apply this diff:
schedule: interval: "weekly" + day: "monday" + time: "02:30" + timezone: "Europe/Prague"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/dependabot.yml(1 hunks)
🔇 Additional comments (1)
.github/dependabot.yml (1)
1-14: Config is valid and achieves the PR goalDependabot is correctly enabled for Composer and GitHub Actions with a weekly cadence. This aligns with the PR objective and is a solid baseline.
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 10 | ||
| versioning-strategy: increase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Validate Composer’s versioning strategy; confirm intended behavior
Using versioning-strategy: increase will widen version constraints in composer.json to the latest allowed versions. Ensure this matches your policy (often preferred for apps; libraries might prefer default behavior).
Would you like to confirm Composer supports increase here and that it’s the desired policy? If needed, we can switch to the default behavior by removing the key.
🌐 Web query:
Does Dependabot support `versioning-strategy: increase` for the Composer ecosystem in dependabot.yml? What are the allowed values and their effects?
💡 Result:
Dependabot supports versioning-strategy: increase for the Composer ecosystem in dependabot.yml. The allowed values for versioning-strategy in Composer (and other supported ecosystems) are: auto, increase, increase-if-necessary, lockfile-only, and widen1.
Details of allowed values and their effects:
| Value | Effect |
|---|---|
| auto | Default: For "app"-type dependencies, increases the minimum version; for "library"-type, widens version range. |
| increase | Always increases the minimum version requirement to match the new version. If a range exists, typically only the lower bound is increased. |
| increase-if-necessary | Changes the constraint only if the new version is not already allowed by the original constraint. |
| lockfile-only | Only updates the lockfile, never modifies the manifest version requirements. |
| widen | Widens the allowed version range to include both the new and old versions, typically only increasing the upper bound. |
Example (for composer.json constraint ^1.0.0 → new version 1.2.0 or 2.0.0):
increase:1.2.0→^1.2.02.0.0→^2.0.0
increase-if-necessary:1.2.0→^1.0.0(unchanged if within initial range)2.0.0→^2.0.0(changed since outside range)
widen:1.2.0→^1.0.02.0.0→>=1.0.0 <3.0.01.
Summary for Composer:
You can use versioning-strategy: increase or any of the above strategies in your Composer section in dependabot.yml to control exactly how manifest version requirements are updated1. The strategies allow fine control over how strict or permissive version bumps are when Dependabot proposes updates.
References:
- The most up-to-date and authoritative information comes from the official GitHub Docs3.
Citations:
- 1: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference
- 2: https://docs.github.com/en/enterprise-cloud@latest/code-security/dependabot/dependabot-version-updates/controlling-dependencies-updated
- 3: https://docs.github.com/en/enterprise-cloud@latest/code-security/dependabot/working-with-dependabot/dependabot-options-reference?learn=dependency_version_updates&learnProduct=code-security
- 4: https://github.blog/changelog/2022-10-24-reduce-dependabot-version-updates-in-your-python-projects-with-the-increase-if-necessary-strategy/
- 5: https://github.blog/security/supply-chain-security/5-tips-for-prioritizing-dependabot-alerts/
- 6: https://mglaman.dev/blog/my-dependabot-configuration-drupal-and-other-php-projects
- 7: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/controlling-dependencies-updated
- 8: https://www.ruby-toolbox.com/projects/dependabot-composer
- 9: https://cloud.gov/pages/knowledge-base/dependabot-with-pages/
- 10: https://www.velir.com/ideas/2022/11/28/how-to-automate-dependency-updates-with-github-dependabot
Clarify Composer versioning strategy configuration
File: .github/dependabot.yml
Lines: 8
Using versioning-strategy: increase will bump only the minimum version requirement in your composer.json (i.e. update the lower bound to the new version). It does not widen the upper bound—that’s what the widen strategy does. Make sure always forcing a minimum-version bump aligns with your policy (apps often use it; libraries frequently prefer a more conservative or default approach).
Consider these options instead of (or in place of) increase:
- auto: default; apps → increase minimum, libraries → widen range
- increase: always bump the lower bound to the latest version
- increase-if-necessary: only bump if the new version falls outside the existing constraint
- lockfile-only: update the lockfile without touching your composer.json
- widen: extend the version range to include both old and new versions
If you’d rather stick with Dependabot’s default behavior, remove the versioning-strategy key or choose one of the strategies above that best fits your project’s needs.
🤖 Prompt for AI Agents
.github/dependabot.yml around line 8: the file currently sets
versioning-strategy: increase which only bumps the minimum version (lower bound)
in composer.json and may not be the intended policy; update this key to the
desired strategy (e.g., remove the key to use Dependabot default, or set it to
auto, widen, increase-if-necessary, or lockfile-only depending on whether you
want to widen upper bounds, only adjust lockfile, or use Dependabot’s
app/library defaults) so the composer dependency updates match the project’s
intent.
This PR enables Dependabot for Composer and GitHub Actions.
Summary by CodeRabbit