-
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,14 @@ | ||
| # To get started with Dependabot version updates, you'll need to specify which | ||
| # package ecosystems to update and where the package manifests are located. | ||
| # Please see the documentation for all configuration options: | ||
| # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
|
||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "composer" # See documentation for possible values | ||
| directory: "/" # Location of package manifests | ||
| - package-ecosystem: "composer" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 10 | ||
| versioning-strategy: increase | ||
| commit-message: | ||
| prefix: "composer" | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
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.
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: increasewill 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
increasehere and that it’s the desired policy? If needed, we can switch to the default behavior by removing the key.🌐 Web query:
💡 Result:
Dependabot supports
versioning-strategy: increasefor the Composer ecosystem independabot.yml. The allowed values forversioning-strategyin Composer (and other supported ecosystems) are:auto,increase,increase-if-necessary,lockfile-only, andwiden1.Details of allowed values and their effects:
Example (for
composer.jsonconstraint^1.0.0→ new version1.2.0or2.0.0):increase:1.2.0→^1.2.02.0.0→^2.0.0increase-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: increaseor any of the above strategies in your Composer section independabot.ymlto 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:
Citations:
Clarify Composer versioning strategy configuration
File: .github/dependabot.yml
Lines: 8
Using
versioning-strategy: increasewill 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 thewidenstrategy 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:If you’d rather stick with Dependabot’s default behavior, remove the
versioning-strategykey or choose one of the strategies above that best fits your project’s needs.🤖 Prompt for AI Agents