Skip to content

Commit

Permalink
Add Dependabot config to alert only major updates for Composer
Browse files Browse the repository at this point in the history
This configuration file sets up Dependabot to check for updates to Composer dependencies on a weekly basis. It specifically ignores minor and patch updates for all dependencies, focusing on major updates only. An exception is made for `phpunit/phpunit`, which is also monitored for major updates.
  • Loading branch information
koriym committed Nov 2, 2024
1 parent b725b57 commit 57c0501
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Alerts only major updates for Packagist (Composer)
#
# 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" # Specify the correct package ecosystem for PHP
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
ignore:
- dependency-name: "*" # Ignore all dependencies for specific update types
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- dependency-name: "phpunit/phpunit"
update-types: ["version-update:semver-major"]

0 comments on commit 57c0501

Please sign in to comment.