Commit Graph

112 Commits

Author SHA1 Message Date
renovate[bot] 9d74625d93 build(deps): update dependency prettier to v3.9.6 (main) (#45815)
* build(deps): update dependency prettier to v3.9.6

| datasource | package  | from  | to    |
| ---------- | -------- | ----- | ----- |
| npm        | prettier | 3.8.1 | 3.9.6 |

* chore: prettier fixes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@mend.io>
2026-09-09 13:50:03 +00:00
Jamie Tanna bb8c9cbc7f refactor(workers/repository): add a separate check for "don't make this branch as pending"
As part of follow-up changes, we're looking to correct behaviour when
rebasing a given open PR, where the PR includes a set of pending
changes.

Before we do this, we can refactor the dependency dashboard to add a new
`unpend` check type, to say "create a branch, even though I know the
branch is pending status checks".

Previously, this section would share `approvePr` alongside other checks,
which may not make sense.

As `approvePr` currently forces PR creation, we need to treat `unpend`
similarly, so we don't create the branch, but not the PR when i.e.
`prCreation=approval`.

As the Dashboard is being re-rendered, a checkbox that was previously
checked (before this version of Renovate) will need re-checking.

Co-authored-by: Claude Opus 5 <jamie.tanna+claude-code@mend.io>
2026-09-03 16:03:26 +01:00
Jamie Tanna f1c39b202a refactor(workers/repository): extract a type for the Dependency Dashboard checks
As part of future changes, we're adding a new type of checkbox for the
Dependency Dashboard.

Before we do this, we can extract an enum for the known types.

We don't touch `dependencyDashboardChecks` itself, as that also includes
`configMigrationCheckboxState`, which isn't related to the per-branch
checks.

Co-authored-by: Claude Opus 5 <jamie.tanna+claude-code@mend.io>
2026-09-03 16:03:26 +01: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
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
Alex Thomae f3492fe1c8 fix(workers/repository): use GlobalConfig for productLinks (#44126)
* fix(workers/repository): use GlobalConfig for productLinks

PR #44098 added productLinks to GlobalConfig.OPTIONS, which moves it into
GlobalConfig and deletes it from the per-repo config. Several readers
were not migrated and now receive undefined from config.productLinks.

Most visibly, setStability and setConfidence build the status check
target_url from config.productLinks?.documentation. With it now empty the
URL becomes scheme-relative (e.g. "key-concepts/minimum-release-age/"),
which GitLab rejects with HTTP 400. That throws in setBranchStatus and
aborts the branch before its merge request is created.

Migrate the remaining readers to GlobalConfig.get('productLinks'),
matching #44098, and drop the now-redundant coerceString calls and
non-null assertions.

* refactor(config): drop productLinks from RenovateSharedConfig

productLinks is globalOnly and is now read via GlobalConfig.get. Leaving
it on the per-repo RenovateSharedConfig let callers read the (always
empty) config.productLinks, which is the footgun this PR fixes. Remove it
from the shared interface so it only exists on RepoGlobalConfig, and the
type now prevents reintroducing config.productLinks.
2026-06-22 07:16:59 +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 73b90e958b refactor: remove string concetation for production code (#43442)
refactor: prefer templates rather than `+`
2026-05-19 13:31:27 +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
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
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 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 5c19dd608d feat(dashboard): add heading for abandoned deps section (#40381)
* feat(dashboard): heading for abandoned deps section

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

* feat(dashboard): heading for abandoned deps section

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

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2026-01-12 15:30:33 +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 4983ce4b59 refactor(dashboard): standardize blocked section headings (#39753)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-10 16:59:51 +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
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +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
Anne Stellingwerf f5a374a7e6 refactor(dependency-dashboard): improve readability and reuse utility functions (#37340) 2025-08-08 14:11:49 +00:00
Anne Stellingwerf 14c62bf7d1 refactor(dependency-dashboard): checkbox handling with reusable utility functions (#37339) 2025-08-05 20:09:36 +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
Felipe Santos c4212f7824 refactor: allow to use the rebase label in PR body, issues, or comments (#36374) 2025-07-11 08:01:04 +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
renovate[bot] 55845508b6 chore(deps): update eslint monorepo to v9 (major) (#33573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-02-20 11:31:13 +00:00
Rhys Arkins a413b758fd fix(logs): don't log all packageFiles when checking for deprecated (#32563) 2024-11-15 17:13:22 +00:00
TASNEEM KOUSHAR ed8c6f5d2a fix(dashboard): move header to top (#32160) 2024-10-28 16:27:39 +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
Michael Kriese a02c850453 fix(dependency-dashboard): fix truncated issue body (#30081) 2024-07-08 12:14:27 +00:00
Rhys Arkins 53d8e0b5e7 fix(dashboard): check packageFiles validity (#29765) 2024-06-19 11:19:03 +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
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
Michael Kriese f0d676242a fix: better branch code coverage (#24276) 2023-09-07 04:39:39 +00:00
Sergei Zharinov 6f7ac34a2f fix: Type errors (#24108) 2023-08-27 08:13:10 +00:00
Philip 0a47657451 feat: Enhance lookup logs with repository problems (#23896)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-08-25 08:22:14 +00:00
HonkingGoose 951f3d87b9 refactor: replace verb renovating with plain English (#23408)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-08-24 13:07:30 +00:00
Rhys Arkins 36e2b328bb chore: update types reference 2023-08-15 11:31:15 +02: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
renovate[bot] fe739befbf chore(deps): update linters to v6 (major) (#23325)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-08-02 15:07:49 +00:00
RahulGautamSingh 04c8bda2e6 fix: handle empty dependencyDashboard issue body (#23019) 2023-06-29 08:36:56 +00:00
Rhys Arkins 5d06a024e2 chore: logger.debug ensureDependencyDashboard() 2023-06-26 08:59:30 +02:00
Joseph Bradshaw 47ed308dd9 feat(config): Adding a suppression notification for dependency lookup warnings (#22763)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-06-14 15:13:52 +00:00
Philip 18bd6b6179 fix: log repo problems correctly (#22349) 2023-05-22 14:38:29 +00:00