Commit Graph

760 Commits

Author SHA1 Message Date
Thomas Rouaux 0389869bfa feat(packageRules): bumpVersions.type sync (#42540)
* bumpVersions type match

* docs + code coverage

* match to sync

* nit

Co-authored-by: Michael Kriese <michael.kriese@gmx.de>

* nit description

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>

---------

Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
2026-04-14 09:29:08 +00:00
Stuart Whelan 9a76a15b76 docs(config): clarify commitMessagePrefix affects Dependency Dashboard (#42236)
* docs(config): clarify commitMessagePrefix affects Dependency Dashboard

* Update docs/usage/configuration-options.md

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>

* Apply suggestion from @jamietanna

Correcting a typo I'd accidentally introduced.

---------

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
2026-03-30 08:57:34 +00:00
Dinar Valeev 00fefaf800 feat(fleet): support registryAliases (#42045)
* feat(fleet): support registryAliases

Support registry aliases for pull through internal regitry case

Signed-off-by: Dinar Valeev <k0da@opensuse.org>

* Fix lint

Signed-off-by: Dinar Valeev <k0da@opensuse.org>

* Address review comments

Signed-off-by: Dinar Valeev <k0da@opensuse.org>

* Switch to inline codeBlock

Signed-off-by: Dinar Valeev <k0da@opensuse.org>

* inline registryConfig in tests

Signed-off-by: Dinar Valeev <k0da@opensuse.org>

---------

Signed-off-by: Dinar Valeev <k0da@opensuse.org>
2026-03-27 11:27:54 +00:00
Sebastian Poxhofer 7be38227f0 feat(package-rules): add matchRegistryUrls option (#41966)
* feat(package-rules): add matchRegistryUrls option

* chore: add patternMatch option

* Update docs/usage/configuration-options.md

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

---------

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
2026-03-19 11:42:27 +00:00
Johannes Feichtner 075dc48cf5 feat(bitbucket-server): reattempt platform automerge after PR updates (#41936)
* feat(bitbucket-server): reattempt platform automerge after PR updates

* extend docs too

* sort order
2026-03-19 11:38:05 +00:00
Timo Hankamer f593ffca20 feat(package-rules): support template compilation for sourceUrl (#41932)
Add template compilation support for sourceUrl in package rules,
allowing users to dynamically construct source URLs using template
syntax. This enables use cases like OpenTofu providers where the
source URL needs to be constructed from the package name.
2026-03-19 10:16:52 +00:00
Ville Skyttä 4ac878989e docs(vulnerabilityAlerts): update GitHub config navigation info (#39943) 2026-03-19 10:12:49 +00:00
Jamie Tanna e0ce9dabd6 docs: prefix child options with their parent (#41828)
This also makes sure that our URL fragments should be more consistent
over the years, as duplicate names (across parent and child options)
cannot clash.

This also corrects links from the code to include the new fragment.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-03-12 10:56:52 +00:00
Jamie Tanna 05148981f5 docs(config): move customizeDashboard (#41827)
As it was in the middle of the `customManagers` documentation.

As it's now in the correct place, we need to re-sort the headers so the
`customDatasources` options are in the right place.
2026-03-12 08:18:29 +00:00
Sebastian Poxhofer ee2b77542c feat(package-rules): add detectPlatform helper function (#41798)
feat(package-rules): add detectPlatform function
2026-03-11 10:38:51 +00:00
Jamie Tanna ed6f713c36 refactor(tools): use a distinct replacement start/end the lockFileMaintenance table (#41251)
As it makes it clearer what's being done.
2026-03-09 14:37:19 +00:00
Jamie Tanna 2026b4fdff docs: auto-generate config filenames (#41254)
As noted in #40608, we're currently showing an outdated list of possible
configuration filenames.

We can instead automate this by using the known configuration files we
know.

As we don't yet support the Platform-specific filenames, we shouldn't
include them, but add a TODO so we don't miss it.
2026-03-09 13:13:12 +00:00
Jamie Tanna bc82cff059 feat(managers/npm): allow specifying toolSettings.nodeMaxMemory (#40957)
* feat(managers/npm): allow specifying `toolSettings.nodeMaxMemory`

As noted in #40942, we're seeing an increase in memory usage across
`pnpm` and `yarn` users in Mend-hosted apps.

To allow limiting the maximum memory that any `node` child processes
will use, we can add a new `toolSettings.nodeMaxMemory` to (hopefully)
mitigate this.

Similar to the `toolSettings.jvmMaxMemory`, the self-hosted
administrator can set a maximum, which cannot be exceeded by repo-level
configuration.

* fixup! feat(managers/npm): allow specifying `toolSettings.nodeMaxMemory`
2026-03-05 12:56:02 +00:00
Jamie Tanna e83acfb2ef feat(postUpgradeTasks): allow specifying installTools (#41594)
* feat(postUpgradeTasks): allow specifying `installTools`

As noted in #8111 and #41569, it is possible that when using
`binarySource=install`, you can execute a `postUpgradeTasks`' given
command without Renovate having the right tools installed, dependent on
the Manager used for the update.

To make it possible for users to indicate that they explicitly need
given tools (at a given `constraint`), we can introduce a new
`installTools` option which will allow specifying which tools +
constraints to use when invoking the `postUpgradeTasks`'s command.

Right now, we're not defining what the `installTools'` interior type is,
but leaving it open to extension.

Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>

* docs: add examples for `toolVersions`

---------

Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>
2026-03-02 15:47:28 +00:00
mueller-ma 6ecb2d6d47 fix(docs): update description for regex (#41592) 2026-03-02 11:12:18 +00:00
Jamie Tanna b25102789e feat(gradle): set toolSettings' JVM limits when invoking ./gradlew (#41514)
As noted in #39559, we should also make it possible to use Renovate's
`toolSettings` to tune the Java Virtual Machine that's used to spawn
Gradle, via the Gradle Wrapper.

This will affect any `gradle` manager invocations, but will not apply to
`postUpgradeTasks`, as this is passed in as a parameter.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>
2026-02-26 17:40:59 +00:00
Jamie Tanna 1a129bf231 docs: clarify registryAliases with a pull-through cache (#41500) 2026-02-25 19:24:17 +00:00
Felipe Santos 7ebba26236 feat: add commitHourlyLimit (#36226)
* feat: add `commitHourlyLimit`

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>

* Update docs/usage/configuration-options.md

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Remove date optionality

* Fix lint comment

* Fix coverage

* Restore contents of commit.spec.ts

* Use ! somewhere else too

* Change optional parameter to nullish

* Refactor `!` to use proper check

* Fix set-branch-commit.spec.ts lint

* Fix test coverage

* Apply suggestions from code review

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Split commit-limit-reached into two

* Fix review comments

* Use toUTC() where applicable

* Simplify another test to utc()

---------

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-02-19 18:00:32 +00:00
RahulGautamSingh fbb564c196 fix: allow grouping of lockFileMaintenance updates (#41240)
* allow grouping of multiplt lockfile prs

* add test

* refactor docs and presets desc

* add tests

* refactor docs
2026-02-17 11:37:24 +00:00
RahulGautamSingh 4005872ff6 docs: autogenerate list of managers supporting lockfileMaintenance (#41135)
* feat(nuget): add supportsLockFileMaintenance flag

The NuGet manager supports lock file maintenance via `packages.lock.json`
but was missing the `supportsLockFileMaintenance` export.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(manager): add lockFileNames metadata to all lock file managers

Add `lockFileNames` field to `ManagerApi` interface and export it from
all 24 managers that support lock file maintenance. This metadata will
be used to auto-generate the lock file support table in docs.

Also adds a validation test ensuring managers with
`supportsLockFileMaintenance` always provide `lockFileNames`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(docs): auto-generate lockFileMaintenance lock files table

Replace the hardcoded lock file support table in configuration-options.md
with autogenerate markers and generate it from manager metadata during
docs build. This ensures the table stays in sync with manager code
automatically.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 07:59:29 +00:00
Robert Stupp c08656f4b7 feat(gradle): allow specifying Gradle daemon heap size (#40090)
This change introduces a heap size limitation for the Gradle daemon used
when updating the Gradle wrapper, defaults to 512m.

The heap size is limited to the globally configured limit, which
defaults to 512m. It can be configured on the repository level, but not
exceed the globally configured limit. A hard coded mimiumum heap size of
512m is enforced.

The configuration option is named `toolSettings`, which has two
properties for the maximum and initial heap size. See
`docs/usage/configuration-options#toolSettings` for more details.
2026-02-04 13:25:58 +00:00
Johannes Feichtner 2254178a7b feat(bitbucket-server): add support for platformAutomerge (#39885)
* feat(bitbucket-server): add support for platformAutomerge

* review comments
2026-02-02 10:07:18 +00:00
Michael Kriese 3ed1817e2b fix!: prevent grouping of lockfile maintenance updates (#40781) 2026-01-29 14:21:42 +00:00
RahulGautamSingh c7222c643d fix!: prevent grouping of replacement updates (#40758)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-01-29 13:28:06 +00:00
Jamie Tanna 1edb6c337f docs(json-schema): add separate documentation page (#40722)
As noted in #40716, we should provide more in-depth documentation about
Renovate's JSON Schemas as they are very useful for editor/agent
autocomplete.

Additionally, as part of the Renovate 43 release, it's something that
would be useful to link out to.
2026-01-27 14:40:03 +00:00
Punsoong Khut 20c0662fc9 fix(bazel-module): registryAliases for bazel-module oci.pull (#38511)
* registryAlias for bazel-module oci.pull

* use getDep from dockerfile manager instead

* expand testing for oci.pull

* test: merge autoReplaceStringTemplate assertion into registryAliases test

* move assertion to other test

* Update lib/modules/manager/bazel-module/extract.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@gmx.de>

---------

Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-01-13 10:21:10 +00:00
RahulGautamSingh 1272688411 docs: add note for no backslashes in matchStrings (#40061)
* docs: add note for backslashes in matchStrings

* apply suggestions
2026-01-07 16:04:31 +00:00
Mike Glazer 8557157edb feat: add support for go:generate directives in gomod (#39163)
* feat: add support for go:generate directives in gomod

This change adds a `goGenerate` postUpdateOption which enables
running `go generate ./...` after a dependency update.

Frequently when dependencies are brought in via tools or using
vendored code, and those dependencies are used for go:generate
instructions, we want to update the generated code after the dependency
has been updated.

Adding this as a postUpdateCommand wasn't really satisfactory since that
necessarily requires making a change in two spots (one in the allowed
commands, one in the postUpdateCommand). The other reason this was
undesirable was it would cause generate to run after every dependency
update, regardless of language.

* Updates

* Update fixes

* Self PR

* Fix docs link

* Trying to find the right path

* Fix

* Add deleted

* Fix

* And fix test...

* docs: tweak wording for `goGenerate`

* fix(types): don't default GlobalConfig

In a future change, `GlobalConfig.get` will correctly pull in the
defaults.

---------

Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
2025-12-12 12:43:54 +00:00
RahulGautamSingh 214e1da38d feat(config): allow template fields in allowedVersions (#38922)
* handlebars: regsiter add helper

* allow template fields in allowedVersions

* fix test

* fix doc example

* remove comments

* Apply Suggestions

* use empty object instead of undefined

* template(helpers/add): handle undefined/null

* Apply Suggestions

* Apply suggestion from @RahulGautamSingh

* Apply suggestion from @RahulGautamSingh

* fix conflict

* remove unused function

* fix lint issue

* fix test

* Update docs/usage/configuration-options.md

Co-authored-by: Anne Stellingwerf <1637358+astellingwerf@users.noreply.github.com>

* prettier

* throw error if invalid inputs used

---------

Co-authored-by: Anne Stellingwerf <1637358+astellingwerf@users.noreply.github.com>
2025-12-11 14:52:15 +00:00
Elaman Imashov 01801296a7 fix(composer): do not use --minimal-changes with lockFileMaintenance and add postUpdateOption for not using it (#39824)
* Make --minimal-config configurable.

* Fix accidental remove.

* Remove composerMinimalChange from wrong file

* Update docs/usage/configuration-options.md

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Add composerMinimalChanges to the renovateconfig interface.

* Use postupdateoptions.

* Remove the lock file before lock file maintenance upgrade.

* Import

* Flip to use composerNoMinimalChanges

* Minor fixes.

* Update artifacts.spec.ts

* Ignore tests for exception during lock file deletion (similar to npm, pnpm, etc)

* Move v8 comment.

* Remove composer lock removal

* docs(composer): reword `composerNoMinimalChanges`

* Fix Markdown formatting

---------

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
2025-12-11 11:17:28 +00:00
Felipe Santos d32eedbb10 feat(lookup): add maxMajorIncrement (#38854)
* feat(lookup): add `maxMajorIncrement`

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>

* Update lib/workers/repository/process/lookup/filter.ts

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>

---------

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>
Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
2025-12-10 22:32:05 +00:00
Edgar Ramírez Mondragón d1ba25028d docs: Add 'uv.lock' to supported lock files table (#39819) 2025-12-08 20:17:35 +00:00
Jamie Tanna d5f1c61c9b fix(docs): correct broken link (#39616)
As it was renamed in #39406, but looks like there were warnings we
didn't spot, which are now failing when the docs attempt to build with
these new changes.
2025-11-28 16:26:51 +00:00
Jamie Tanna 70c1075010 docs(constraints): clarify that binarySource=global ignores them (#39561)
* docs(constraints): clarify that `binarySource=global` ignores them

Although this is a somewhat commonly known behaviour, it's worth making
this more clear, by clarifying this in the `constraints` docs, as well
as add a debug log.

* docs(constraints): simplify message

As noted by Michael, these may not be user-facing `constraints`, but the
constraints a Manager sets.

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

---------

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-11-27 17:41:39 +00:00
RahulGautamSingh 61c943c028 feat: prBodyHeadingDefinitons (#39460)
* feat: prBodyHeadingDefinitons

* Apply Suggestions

* Apply suggestions

* Update docs/usage/configuration-options.md

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>

---------

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
2025-11-26 10:15:41 +00:00
RahulGautamSingh 93b1bac02e docs: update documentation on branchConcurrentLimit (#39526)
* Update documentation on branchConcurrentLimit

Clarified the explanation of concurrent branch limits and their default values.

* Update docs/usage/configuration-options.md

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>

* Apply suggestion from @RahulGautamSingh

---------

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
2025-11-25 20:00:56 +00:00
Michael Kriese 77de384ba7 fix(forgejo): properly handle team reviewers (#39533)
* fix(forgejo): properply handle team reviewers

* fix(forgejo): properply handle team reviewers like github
2025-11-25 14:36:30 +00:00
Jamie Tanna a216ed1121 docs(minimumReleaseAge): explicitly note 0 days is treated as null (#39495)
As part of a change in #39494, which made for a "rough edge".
2025-11-24 21:29:36 +00:00
RahulGautamSingh 177e187c5c docs(baseBranchPatterns): mention useBaseBranchConfig (#39381)
docs: mention useBaseBranchConfig
2025-11-18 19:08:38 +00:00
RahulGautamSingh 0188496bf1 docs: modify link text (#39325)
Fix link text for GitHub Merge Queue documentation
2025-11-17 08:01:18 +00:00
Michael Kriese 2c96c9973f feat(bumpVersions): support short versions (#39280) 2025-11-13 11:22:01 +00:00
Jamie Tanna e4cf1165ab docs(minimumReleaseAge): clarify behaviour with prCreation and internalChecksFilter (#39116)
This was reported on Twitter/X[0], and we should make sure it's more
explicit.

[0]: https://xcancel.com/meijer_s/status/1967846408356241584
2025-11-05 17:28:23 +00:00
Jamie Tanna cba077ed1d docs(minimumReleaseAge): add separate, in-depth documentation (#38873)
Ahead of Renovate 42, where `minimumReleaseAge` is enforced by default
for `config:best-practices` users of npm, and an increase in users of
the functionality given recent supply chain attacks, we should add more
in-depth documentation about how it works, how to tune it, and how to
determine which datasources, registries, packages and `updateType`s
support it.

Co-authored-by: gpt-oss:20b <jamie.tanna+ollama@mend.io>
2025-11-05 13:59:05 +00:00
akern40 75c443577a docs(rangeStrategy): document that rangeStrategy=update-lockfile works with uv (#38912) 2025-10-30 09:22:51 +00:00
Jamie Tanna c17126619e docs(minimumReleaseAge): add more information about confirming support (#38655)
As we've had a few recent questions about how to use it and to confirm
whether it works on a given registry, and as we're promoting it to a
"best practices" feature, we should clarify how to confirm the
datasource supports it, as well as hint at how to add it yourself.
2025-10-21 14:32:19 +00:00
RahulGautamSingh a86b32ea0f feat: configurable repo config filenames (#36644)
* feat: configurable repo config filenames

* docs: configFileNames

* fix tests

* update tests

* fix coverage

* Apply Suggestions

* refactor: remove platform-based filename filtering

* docs

* refactor

* docs: add note for config-validator use

* feat: add inherited config support

* fix: build

* fix lint

* fix test
2025-10-20 06:19:01 +00:00
Jamie Tanna 4393503d55 feat(minimumReleaseAge): optionally enforce presence of releaseTimestamp (#38363)
As noted in #38290, #38348, a "rough edge" of the current implementation
of `minimumReleaseAge` is that:

- if we have set `minimumReleaseAge` to apply to a given dependency
- and we have 3 dependencies that need an update
  - 2 of which have a `releaseTimestamp` that is not yet "stable"
  - 1 of which does not have a `releaseTimestamp`

The dependency update that does not have a `releaseTimestamp` will be
treated as "stable", and will receive an update immediately.

To make this a little more predictable, and explicit, we should add a
new configuration item, `minimumReleaseAgeBehaviour`, to control this
behaviour.

This adds the new configuration field, as well as making it available as
a strongly typed field in the codebase.

In the case that `minimumReleaseAgeBehaviour=timestamp-optional` is
being used, we will WARN on any packages that are being updated, but
maybe shouldn't be, as a way to proactively inform the user of possible
misconfiguration.

Closes #38290, #38348.
2025-10-16 10:27:03 +00:00
Timo Pagel ebf111f72f docs(osv): clarify all calls are via offline copy of OSV database (#38492)
Document offline database querying with renovate-offline

Added information about offline database usage with renovate-offline.
2025-10-10 08:15:48 +00:00
Anne Stellingwerf 9fae0192a1 docs: introduce JSON schema validation and migration checks (#38145)
* docs: introduce JSON schema validation and migration checks

* refactor(tools): enhance code clarity with additional typings, comments, and optional chaining

* ci(workflows): add build steps to lint and type-check jobs

* Update tools/check-fenced-code.mjs

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Partial revert

* docs(jsonata): fix wording in code block title in readme

* ci(workflows): remove redundant build steps from workflows

* ci(workflows): remove redundant build steps from workflows

* refactor(tools): simplify error reporting

* Incorporate feedback

* Incorporate feedback

* Incorporate feedback

---------

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
2025-10-07 10:54:48 +00:00
Jamie Tanna 20ff1c4295 docs(replacements): point to the Discussion (#38367)
As the Issue was migrated to a Discussion, and it's confusing.
2025-10-06 16:21:15 +00:00