Commit Graph

102 Commits

Author SHA1 Message Date
Sebastian Poxhofer df8c4051ff test(core): replace file snapshots with explicit assertions (#45660)
* test(core): replace file snapshots with explicit assertions

* test(core): replace inline snapshots with explicit assertions

* test(core): assert on relevant sections instead of full bodies

* test(core): drop assertions implied by full equality

* test(core): address review feedback

* test(core): use resolves instead of awaiting inside expect
2026-09-04 10:28:55 +00:00
Jamie Tanna 69a629031b feat(templates): always expose renovateVersion (#44969)
As noted in #44756, this would allow templates across Renovate's
different usages to be able to use the `renovateVersion` string as a
template variable.

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
2026-07-30 16:01:51 +00:00
Felipe Santos 42864ebb4d fix(config): move checkedBranches and rebaseAllOpenBranches into GlobalConfig (#44611)
* refactor(config): move checkedBranches and rebaseAllOpenBranches into GlobalConfig

Both options are globalOnly but were being read directly off the
repository config object instead of GlobalConfig, so they weren't
part of the RepoGlobalConfig contract enforced elsewhere.

* test: reset GlobalConfig in beforeEach instead of per-test

Matches the pattern used elsewhere (common.spec.ts, error-config.spec.ts,
prune.spec.ts) and resets before each test instead of after, so a failed
assertion can't leak state into the next test.

* refactor: use isNonEmptyArray instead of .length check
2026-07-15 15:41:03 +00:00
Felipe Santos 13b5ae4307 feat: add --rebase-all-open-branches (#44607)
* feat: add `--rebase-all-open-branches`

* feat: mark rebaseAllOpenBranches as cli: true explicitly

* feat: mark checkedBranches as cli: true explicitly
2026-07-15 14:44:11 +00:00
Sebastian Poxhofer 00043d193e test(linters): add codeblock linter rule for spec fixtures (#44551)
* ci(linter): add renovate/codeblock-in-spec-fixtures rule

Add a custom oxlint rule that requires the codeBlock (or stripIndent)
template helper from common-tags for multi-line string fixtures in spec
files (enabled for **/*.spec.ts and test/** only).

The rule only flags shapes whose value can round-trip through the
common-tags helpers unchanged, since both codeBlock and stripIndent trim
the end result and strip the shortest line indentation:

- only literals spanning multiple source lines are flagged (escaped \n
  one-liners are left alone: tagging them is not value-preserving in
  general and gains nothing)
- values with leading/trailing whitespace (e.g. fixtures ending in a
  newline) are not flagged
- tagged templates, describe/it titles, and inline snapshot arguments
  are skipped

All 55 pre-existing violations (22 files) were fixed with a one-off
codemod that re-emits each fixture indented to the statement depth and
verifies value preservation by evaluating codeBlock on the rewritten
template (substitutions kept as opaque placeholders). One site
(pip_requirements/artifacts.spec.ts) mixes line continuations with
escaped newlines and was tagged verbatim instead of re-indented.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(linter): address review findings

Make getSimpleRequirementsFile in pip-compile/extract.spec.ts
value-preserving again: tagging the whole template with codeBlock
trimmed the trailing blank line when deps is empty (the headerOnly.txt
case), silently changing the fixture from ending in '#\n\n' to '#'.
Tag only the static header and append the deps section via a
single-line template, which reproduces the original string exactly
for both empty and non-empty deps (verified by executing old vs new
in node).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 13:00:02 +00:00
Felipe Santos 3032c960b3 fix: avoid proposing replacements when the new dependency already exists (#40149)
* fix(npm): remove old dependency when replacement exists

* Add coverage ignore comments

* Simplify implementation

* Rename to removeAsString

* Move it after replaceAsString

* Improve test case

* Improve error message of replaceAsString

* Fix coverage

* Fix coverage again

* Only remove dependency at depType like replaceAsString

* Refactor tests

* Fix tsc

* fix(npm): skip update when replacement dependency already exists

* Simplify else

* Avoid returning an error

* fix(flatten): skip replacement updates when a sibling dependency already exists

* Revert the other changes

* Also handle it in the Dependency Dashboard

* Filter out earlier

* Try some other way

* Try fix dep dashboard

* Try fix again

* Extract helper

* Improve some stuff

* Improve assertion

* Remove misleading comment

* Address review comments
2026-07-13 18:13:53 +00:00
Jamie Tanna e1e5c398e0 chore: ensure we use productLinks for docs site links where possible (#44066)
* chore: ensure we use `productLinks` for docs site links where possible

Where possible, we should be making sure that we're using the
`productLinks`' configuration for  the documentation site, especially
where self-hosted users may create a mirror of their docs[0].

To make sure we catch this in the future, we can introduce a custom
linting rule with Oxlint to enforce this.

Where we (currently) can't wire in the config, we can disable it against
that line.

[0]: https://www.jvt.me/posts/2024/11/19/renovate-private-docs/

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

* fixup! chore: ensure we use `productLinks` for docs site links where possible

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

* fixup! chore: ensure we use `productLinks` for docs site links where possible

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

---------

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-06-18 08:55:27 +00:00
Sebastian Poxhofer 0793274b86 refactor: prefer templates rather than + in test files (#43441)
refactor: prefer templates rather than `+`
2026-05-19 09:52:28 +00:00
Adam Setch 27f0797396 refactor(dashboard): align terminology with other sections (#42354)
* refactor(dependency-dashboard): align terminology with other sections.

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* Apply suggestion from @RahulGautamSingh

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

* test: update expectations

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
2026-04-13 14:50:45 +00:00
Adam Setch ea8ff660bd feat(dependency-dashboard): hyperlink packages (#41116)
* feat(dependency-dashboard): hyperlink packages

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat(dependency-dashboard): hyperlink packages

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* Update dependency-dashboard.ts

* Update dependency-dashboard.ts

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2026-02-18 08:48:44 +00:00
Sergei Zharinov 9d857c1f68 refactor(lint): Organize imports with biome (#40966) 2026-02-06 13:40:01 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Adam Setch ec4c23e57d feat: emojify truncated notes (#40367)
* feat: emojify truncated notes

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: emojify truncated notes

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: emojify truncated notes

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: emojify dashboard notices

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: emojify dashboard notices

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2026-01-11 09:34:14 +00:00
Adam Setch 44ddf5d16b feat: emojify dashboard notices (#40369)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
2026-01-11 08:03:05 +00:00
Adam Setch a3fdd35366 feat(dashboard): open all awaiting schedule PRs (#39674)
* feat(dashboard): open all PR controls for schedule and status checks

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat(dashboard): open all pending schedule PRs

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat(dashboard): open all awaiting schedule PRs

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat(dashboard): open all awaiting schedule PRs

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* fix order

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat(dashboard): open all awaiting schedule PRs

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* Update read-only-issue-body.ts

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-08 20:49:02 +00:00
Adam Setch 2020e43132 feat(dashboard): add deprecations / replacements section (#39752)
* feat(dashboard): deprecations / replacements section

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* rename

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-04 13:56:50 +00:00
Adam Setch 68baaa2856 refactor(dashboard): consistently use title case for headings (#39754)
* refactor(dashboard): proper-case section headings

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* refactor(dashboard): proper-case section headings

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-04 13:55:44 +00:00
Adam Setch ba0ec80219 fix(dashboard): formatting for vulnerabilities section (#39775)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-04 09:20:31 +00:00
Michael Kriese c641239c19 fix: use stricter types for renovate config (#39594)
* fix: use stricter types for renovate config

* fix: revert changes

* Apply suggestions from code review
2025-11-28 13:16:27 +00:00
Rhys Arkins 4e4a0f99b0 fix!: remove the "Bot" from user-agent header (#37535) 2025-11-06 08:07:40 +00:00
Anne Stellingwerf b5c4657f7e feat(dependency-dashboard): support for grouping branches in the dependency dashboard (#37140)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-09-11 22:20:51 +00:00
RahulGautamSingh 5de27f7fdd feat(config): minimumGroupSize (#37242)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
2025-08-13 15:43:28 +00:00
Adam Setch f62047d68b refactor(dashboard): align verbiage for update type desc and interaction instructions (#36936)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-07-18 16:09:16 +00:00
Jörg Thalheim 06198496cf fix(dashboard): don't show undefined being displayed (#36132)
Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
2025-05-26 13:07:35 +00:00
Sergei Zharinov 1aa2972bac feat: Display abandoned packages (#35868)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2025-05-25 14:32:04 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
Michael Kriese 1644d9cb18 test: migrate more to vitest (#34500) 2025-02-26 15:45:17 +00:00
Trim21 6e5731b554 test: migrate from jest to vitest (#34499) 2025-02-26 14:18:38 +00:00
Michael Kriese 997c23502e test: migrate to vitest (#34475)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2025-02-26 09:35:54 +00:00
RahulGautamSingh 499ea9c747 feat(dashboard): on demand config migration (#31129)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2024-10-17 12:44:55 +00:00
Sebastian Poxhofer 3681b2a945 chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
Michael Kriese a02c850453 fix(dependency-dashboard): fix truncated issue body (#30081) 2024-07-08 12:14:27 +00:00
Rhys Arkins 03c034fbb5 feat(dashboard): show deprecated dependency warnings (#29694)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2024-06-17 10:50:23 +00:00
Rhys Arkins 654c447e6e feat: mode=silent (#28396) 2024-05-06 11:40:54 +00:00
Rhys Arkins 9cff4f5d1f fix(dependency-dashboard): skip unnecessary cache bust when unchanged (#26794)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-01-22 09:07:37 +00:00
Maxime Brunet e9f6edb4ca fix(dashboard): improve note (#26281) 2023-12-14 07:16:13 +00:00
Philip 8ea53c8465 fix(checkedBranches): Checked branches should work regardless of dependencyDashboard=false (#25832)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-11-16 15:53:27 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Rhys Arkins 5befa30dd6 fix(dashboard): double line return after note (#24690) 2023-09-28 13:46:16 +02:00
Michael Kriese 84a97a62fa test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
Philip 15cfe4bece feat: possibility to change Repository Problems header in dependency dashboard issue (#23551)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
2023-08-08 15:36:36 +00:00
RahulGautamSingh 04c8bda2e6 fix: handle empty dependencyDashboard issue body (#23019) 2023-06-29 08:36:56 +00:00
RahulGautamSingh 932012fa20 refactor(test): fix getConfig imports (#22819) 2023-06-16 17:57:34 +00:00
Sebastian Poxhofer 3fccfbe927 feat(vulnerabilities): add option to add summary to dashboard (#21766)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-05-17 08:15:12 +00:00
Philip 5511f33d06 feat: checkedBranches (#21845)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2023-05-02 08:54:49 +00:00
Rhys Arkins cc33d34ca8 refactor: PackageFile types (#20498)
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-20 14:58:49 +00:00
Rhys Arkins 3cef2f2e4f refactor: PackageFile -> PackageFileContent (#20502) 2023-02-19 12:43:48 +00:00
Sergei Zharinov 49cdaf2ac2 feat: Support for logging once per repo (#20168) 2023-02-03 07:00:58 +00:00
RahulGautamSingh 8e4b5231f8 refactor: convert enums to unions (#18900) 2022-11-20 07:34:23 +00:00
Jamie Magee 92eb2200fd refactor(jest): enable clearMocks (#18779) 2022-11-14 22:46:37 -08:00