Commit Graph

60 Commits

Author SHA1 Message Date
Sebastian Poxhofer 9717259ffc refactor(oxlint): enable no-else-return and unicorn/no-lonely-if (#44553)
Enable no-else-return (with allowElseIf: false) and unicorn/no-lonely-if
as errors in .oxlintrc.json and fix all 131 pre-existing violations
(91 no-else-return, 40 unicorn/no-lonely-if) across 98 files.

The no-else-return violations were fixed with the oxlint autofix
(iterated to a fixpoint, plus two else-if chains that required
--fix-dangerously) followed by Prettier formatting. One comment dropped
by the autofix in lib/modules/manager/pub/artifacts.ts was restored
manually. The unicorn/no-lonely-if violations were merged by hand,
preserving comments and coverage-ignore hints.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 12:11:21 +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 bcecdadedc fix(workers/repository): correctly render schedule for vulnerability alerts (#43743)
* test(workers/repository): use more explicit test case

Otherwise this could pass unnecessarily if either `schedule` or
`automergeScheudle` renders to this.

* test(workers/repository): document `force` doesn't apply in this function

As it should've been performed higher up in the configuration merging.

* fix(workers/repository): correctly render `schedule` for vulnerability alerts

Otherwise we see i.e.

  - Branch creation
    - ""
  - Automerge
    - At any time (no schedule defined)
2026-06-03 06:41:09 +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
Jamie Tanna ac30b35f0c feat(pr): break Schedule definition over multiple lines + show cron syntax in code blocks (#42329)
* test(pr): add test coverage for `automergeSchedule`

* test(pr): validate full `Schedule` text

As part of a future change, we'll be modifying this, so we should
clarify the exact behaviour.

* feat(pr): break `Schedule` definition over multiple lines

To provide a more readable set of `schedule` and `automergeSchedule`
configuration options, we can break these over multiple lines, which
makes it clearer where there are multiple schedules that may apply at
a given time, as well as making it clearer between branch creation vs
automerge, which isn't necessarily clear.

* feat(pr): show cron syntax in code blocks

As it can make it clearer, as well as avoiding potential interpretation
as Markdown.

* fix(pr): ensure enough whitespace between elements

Although it's unlikely to hit our currently used Platforms, it's worth
making sure we do it right.
2026-04-02 11:56:10 +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
renovate[bot] acacad57c6 chore(deps): update linters (main) (#40277)
* chore(deps): update linters

| datasource | package              | from   | to     |
| ---------- | -------------------- | ------ | ------ |
| npm        | eslint-plugin-oxlint | 1.36.0 | 1.38.0 |
| npm        | typescript-eslint    | 8.50.1 | 8.52.0 |

* chore: enable oxlint gha format

* chore: fix lint

* chore: fix lint

* chore: fix lint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-01-14 15:32:48 +00:00
Adam Setch 7309d1897c refactor: use unicode right-arrow for changes template (#40033)
* refactor: use unicode right-arrow for changes template

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

* refactor: use unicode right-arrow for changes template

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

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-17 11:45:21 +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
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 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
RahulGautamSingh 9fe43ea69c feat(replacements): improve Package field for prs (#36815) 2025-07-13 08:25:33 +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
Tim Neumann e307fa284c feat(prBody): Support templates in changelogUrl (#35380) 2025-04-16 10:02:56 +00:00
RahulGautamSingh 4f0a15ba55 feat: readable cron schedule (#35356) 2025-04-15 07:02:15 +00:00
Johannes Feichtner 68a66a05a9 feat(bitbucket-server): add support for changelogs (#34569) 2025-04-09 09:45:32 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +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
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
Adam Setch c4f4934701 fix(bitbucket): source link root path (#32689)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
2024-11-27 08:54:58 +00:00
Sebastian Poxhofer 3681b2a945 chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
renovate[bot] eb8c08079e chore(deps): update typescript-eslint monorepo to v8 (major) (#30750)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-08-14 10:33:02 +00:00
HonkingGoose 5540e0b8aa chore: fix typos in test descriptions (#29011) 2024-05-12 07:00:23 +00:00
RahulGautamSingh d834281340 fix(update/pr): improve de-duplication of table rows (#26993) 2024-02-01 19:05:36 +00:00
RahulGautamSingh 88000a4f9b fix(workers/pr): improve deduplication in updates-table (#26771)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-01-30 08:13:17 +00:00
Michael Kriese adc3e4aa92 feat(workers/pr): add source with folder to depNameLinked (#26042) 2023-11-29 16:41:55 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
RahulGautamSingh d81494ab13 fix: improve branch code coverage (#24339) 2023-09-17 06:56:34 +00:00
Michael Kriese 84a97a62fa test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
Rhys Arkins 36e2b328bb chore: update types reference 2023-08-15 11:31:15 +02: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
Joseph Bradshaw ae8bb71f5d fix(config): Making suppression notification work for PR and onboardingPR for consistency (#22831) 2023-06-21 09:55:40 +00:00
MartijnLeijssen-TomTom e732a2a56a fix(changelog): always print dependency name (#22868) 2023-06-19 09:43:23 +00:00
RahulGautamSingh 2c264af8d2 feat: migraterecreateClosed to recreateWhen (#21039)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-06-12 15:48:40 +00:00
Rhys Arkins b5d74a8ffb feat: allow previously merged PRs, but block automerge (#22279) 2023-05-17 21:04:38 +00:00
RahulGautamSingh 3b82013ad2 feat: save targetBranch in prBody (#21724) 2023-04-29 13:01:51 +00:00
RahulGautamSingh acc6c59138 test: replace as assertions (#20527)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-25 18:56:23 +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
Rhys Arkins 98247d34f3 fix(templates): try/catch handlebars compile (#19794)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-01-14 09:35:33 +01:00
Gabriel-Ladzaretti fc81c60d05 feat(branch/update): add edited/blocked PR comment on modified branches (#18895)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Closes https://github.com/renovatebot/renovate/issues/18639
2022-11-26 06:58:09 +00:00
Rhys Arkins 586b96ec16 fix(pr): don’t mention failing checks for automerge (#18653) 2022-11-02 10:54:00 +02:00
Rhys Arkins a9922f5c2f fix(pr): don’t warn on edits (#18654) 2022-10-29 06:44:27 +00:00
RahulGautamSingh d6d9ee719d fix: make baseBranch type non-optional in BranchConfig (#17920)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-10-10 08:38:31 +02:00
RahulGautamSingh 1657c16136 chore(lint): add object shortand rule (#18080) 2022-10-02 21:20:24 +02:00
Rhys Arkins c8c0fad0ef fix(pr): include uncompiled pr body note if failing (#18000) 2022-09-27 14:05:55 +02:00
Maron c741649530 feat: show warning in pr body (#17609) 2022-09-12 09:08:45 +00:00
Hasan Awad d1cc6cd116 fix(repository/update/pr/body): fix a test having wrong homepage and use regex (#16970) 2022-08-04 19:33:15 +00:00
Michael Kriese 8270d5512d refactor: fix lint issues (#16779)
* refactor: fix lint issues

* Update lib/renovate.ts

* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00