deps/minor-patch-core
branch.deps/minor-patch-contrib
branch.dependencies
label to a pull request.Renovate can run as hosted GitHub app or as a standalone self-hosted service in your CI provider (GitHub or CircleCI).
A self-hosted service can be beneficial when your project is restricted in terms of third-party access.
renovate.json
to your repository.renovate.json
to your repository..github/workflows/renovate.yml
to your repository.RENOVATE_TOKEN
environment variable in GitHub Secrets.renovate.json
to your repository..circleci/config.yml
to your CI config.
a. Update RENOVATE_REPOSITORIES
with the name of your repository.
b. Update cron schedule to run as often as you like (once or twise a day).RENOVATE_TOKEN
environment variable in CircleCI UI. This is used to submit PRs and update Renovate dashboard issues.GITHUB_COM_TOKEN
environment variable in CircleCI UI. This is used to overcome GitHub API rate limit when Renovate downloads information aboout your packages.Read more about environment variables Renovate Authentication.
Provided composer.json
and composer.lock
are used to test Renovates configuration.
Note that in addition to Drupal and Composer packages, we are using 3 custom (empty) packages with specific versions:
Expected minor and patch updates for core
- drupal/core-composer-scaffold (9.2.0 -> 9.3.13)
- drupal/core-project-message (9.3.12 -> 9.3.13)
- drupal/core-recommended (9.3.12 -> 9.3.13)
Expected minor and patch updates for contribs
- drevops/renovate-example-source (1.0.0 => 1.0.4)
- drevops/renovate-example-source2 (1.0.0 => 1.2.0)
- drupal/coffee (1.0.0 => 1.2.0)
- drupal/core-dev (9.3.12 -> 9.3.13)
- drupal/core-composer-scaffold (9.2.0 => 9.3.12)
- vlucas/phpdotenv (v5.0.0 => v5.4.1)
- drupal/core-composer-scaffold (9.2.0 => 9.3.12)
- drevops/renovate-example-source (1.0.0 => 1.0.4)
- drevops/renovate-example-source2 (1.0.0 => 1.2.0)
- drupal/coffee (1.0.0 => 1.2.0)
- vlucas/phpdotenv (v5.0.0 => v5.4.1)
Should not update
- drush/drush (10.* => 11.*) - Drush updates are excluded
- drevops/renovate-example-source3 (1.* => 3.*) - Major versions are updated manually
RenovateBot assesses 3 places to determine the PHP platform requirements:
require.php
version value in composer.json
.config.platform
version value in composer.json
.constraints.php
version value in renovate.json
.The purpose of require.php
is to set the minimum PHP language requirements
for a package. For example, the minimum version required for Drupal 10 is 8.0.2
or above, which can be specified as >=8
.
The purpose of config.platform
is to set the PHP language requirements for the
specific instance of the package running in the current environment. For
example, while the minimum version required for Drupal 10 is 8.0.2 or above, the
actual PHP version on the hosting provider could be 8.1.0
. The value of this
field should provide your exact version of PHP with all 3 parts of the version.
The purpose of constraints.php
is to set the PHP language requirements for the
RenovateBot run, in case the above two values are not set or need to be
overridden.
It is recommended to specify require.php
as a range constraint (e.g. >=8.1
)
to ensure it is used as the minimum requirement for project dependencies.
It is also recommended to specify config.platform
as a specific version (e.g.
8.1.19
) constraint to ensure that only the package versions supported by your
current environment are used.
Once the PHP version of your environment is updated, the config.platform
value should also be updated to the specific version.
It is not recommended to use constraints.php
in renovate.json
, as every
project may use a different version of PHP. This value should only be used if
your Drupal project does not have require.php
or config.platform
provided
(in which case those values should be provided instead).