Commit graph

7815 commits

Author SHA1 Message Date
Michael Kriese
4573bd78e6
feat(manager/npm): lerna buildpack support (#16991) 2022-08-05 15:00:34 +00:00
Michael Kriese
41894744ff
feat(manager/npm): full pnpm buildpack support (#16989) 2022-08-05 14:29:33 +00:00
Michael Kriese
b620f65577
feat(manager/npm): full yarn buildpack support (#16986)
* feat(manager/npm): full yarn buildpack support

* test: fix test
2022-08-05 14:17:37 +00:00
Michael Kriese
1035defa16
chore(manager/npm): remove empty preCommands (#16990) 2022-08-05 13:49:49 +00:00
Michael Kriese
6d426a0f88
feat(manager/poetry): support buildpack (#17002) 2022-08-05 13:35:39 +00:00
Michael Kriese
5138daede5
feat(manager/pip_requirements): support buildpack (#16999)
* feat(manager/pip_requirements): support buildpack

* fix: install as user
2022-08-05 15:20:16 +02:00
Yun Lai
44059c3e20
fix: join env var lines with os.EOL to fix test failure on different systems (#16993)
* fix: join env var lines with os.EOL to fix test failure on different systems

* fix: update test data to achieve full test coverage

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-05 12:06:59 +00:00
Sergei Zharinov
813cc8d474
fix(manager/bazel): fix regex and tests for update function (#16992)
* test(bazel): Refactor tests for update function

- use smaller fragment for each use-case
- remove fixture usage
- fix regex to support `maybe`

* Compact formatting

* Don't use `replaceAll`

* Fix coverage
2022-08-05 13:24:10 +02:00
Michael Kriese
9b3a3f8d11
fix(buildpack): execute preCommads on install mode (#16995) 2022-08-05 12:20:22 +02:00
Yun Lai
87fc22a4ce
fix: fix failed hermit binary source tests due to findUp module acts differently in windows (#16985)
* fix: fix failed hermit binary source tests due to findUp module acts differently in windows

* fix: set localDir in GlobalConfig in getHermitEnvs test

* Apply suggestions from code review

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

* fix: added two more mockResolvedValueOnce for extra test case and remove mockResolvedValueOnce('')

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-05 09:21:54 +00:00
Michael Kriese
f414cf9a54
fix(manager/npm): support yarn update without yarnPath (#16988) 2022-08-05 07:49:58 +00:00
Michael Kriese
9d939f429e
test: fix typo (#16984) 2022-08-05 06:11:20 +00:00
Philip
4b0b49e1c6
fix(renovate-config-validator): add validate presets to the validator (#16468) 2022-08-05 05:31:37 +00:00
Yun Lai
f07dcfb03a
feat: add hermit binary source (#16259) 2022-08-05 05:17:11 +00:00
Maxime Brunet
8dd40fe523
feat(github-actions): update job and service containers (#16770) 2022-08-05 04:57:33 +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
3b699e9f7e
feat(manager/npm): prepare for buildpack support (#16979)
* feat(manager/npm): prepare for buildpack support

* chore: fixes
2022-08-04 21:18:43 +02:00
Sergei Zharinov
60609dcf59
fix(leiningen): Don't extract deps from commented vectors (#16978)
* fix(leiningen): Don't extract deps from commented vectors

* More precise detection
2022-08-04 20:13:36 +02:00
Gabriel-Ladzaretti
257d9a9d8e
fix(core/exec): use nodejs style error messages when throwing (#16961) 2022-08-04 14:29:11 +00:00
RahulGautamSingh
ff650ce822
chore: onboarding branch checkout log (#16966) 2022-08-04 14:21:09 +02:00
Michael Kriese
ababf34c7e
refactor(gitea): cleanup types (#16968) 2022-08-04 12:00:48 +00:00
Michael Kriese
1bc8fee494
refactor: cleanup http option interface (#16967) 2022-08-04 12:54:52 +02:00
HonkingGoose
6b584c2793
docs(hermit versioning): fix typos (#16929) 2022-08-04 09:12:36 +02:00
Maxime Brunet
cbe8bfc4cf
feat(config-validator): read filenames from CLI arguments (#16475) 2022-08-04 06:25:18 +00:00
IKEDA Sho
fe27734715
docs(manager/swift): Set displayName and url (#16944) 2022-08-03 17:55:29 +02:00
Durim Morina
075bf89e23
feat(datasource/docker): populate gitRef from OCI annotation (#16859) 2022-08-03 06:00:21 +00:00
Maron
868fa3cb15
refactor(dependencyDashboard): split parseDashboardIssue function (#16782)
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-08-03 07:33:16 +02:00
Jamie Magee
778f0aba6e
feat(manager/azure-pipelines): extract azure-pipelines tasks (#16882)
* feat(manager/azure-pipelines): extract azure-pipelines tasks

* test coverage

* PR comments

* PR comments
2022-08-03 06:49:55 +02:00
IKEDA Sho
1558c9be61
docs(manager/circleci): Set displayName and url (#16919) 2022-08-03 06:11:56 +02:00
Maron
dd5ca94a03
feat(dashboard): include dependency lookup warnings (#16297) 2022-08-02 13:06:37 +00:00
Michael Kriese
a251fc494d
feat(platform/gitea): support native automerge (#16885)
* feat(platform/gitea): support native automerge

* Update lib/modules/platform/gitea/index.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/platform/gitea/index.ts

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/platform/gitea/index.spec.ts

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2022-08-02 12:29:08 +02:00
Michael Kriese
16ea835218
feat(platform/gitea): support draft PR (#16888)
* feat(platform/gitea): support draft PR

* docs: update support state

* Update docs/usage/configuration-options.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2022-08-02 09:47:52 +00:00
Michael Kriese
61c045ca2f
feat: use sha512 for hashes (#16907) 2022-08-02 11:36:26 +02:00
Gabriel-Ladzaretti
bee604a1a3
feat(repository/config-migration): Adjust config migration PR title to not show filenames (#16781)
* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

* Apply suggestions from code review

Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>

* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

* refactor(repository/config-migration): dont show file name in pr title

Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-02 06:08:51 +00:00
Sergei Zharinov
765a76319b
feat(sbt-package): Fallback to Maven datasource for GitLab packages (#16817)
* feat(sbt-package): Fallback to Maven datasource for GitLab packages

* Fix

* Use `detectPlatform`

* Tests for hostType
2022-08-01 11:05:17 +00:00
HonkingGoose
0154fe0314
docs(bitbucket server support): fix typo (#16891)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-01 10:20:58 +00:00
HonkingGoose
e81b552abc
fix(platform/github): rewrite debug message (#16889)
chore(github): rewrite debug message
2022-08-01 11:58:15 +02:00
Sergei Zharinov
f8c789efb4
feat(github): Log warning when GitHub token is not configured (#16566)
* feat(github): Log warning when GitHub token is not configured

* Check `sourceUrl`

* Add tests

* Fix test

* Fix

* Remove `sourceUrl` check

* Test nullable input

* Fix nulls
2022-08-01 06:16:09 +00:00
IKEDA Sho
2dbc15e679
docs(manager): Set displayName and url for nodenv and nvm managers (#16878) 2022-08-01 04:48:45 +00:00
IKEDA Sho
72db89f6e5
refactor: Fix constraint typos (#16879) 2022-08-01 04:02:55 +00:00
Sergei Zharinov
e4dbd4ad49
fix(ci): Restrict template expressions (#16834)
* fix(ci): Restrict template expressions

* Fix

* Fix

* Fix
2022-07-30 16:28:31 +02:00
Yun Lai
b696abb3c2
feat: add Hermit package manager (#16258)
* feat: add Hermit package manager

* fix: pass bin directory into getRepoStatus as string rather than an array

* fix: fix up hermit manager implementations

* add docker support in exec
* move fs related operations back into  util/fs
* remove ENVVar passed on by process.env
* set concurrency in pMap
* use for instead of pMap for concurrency = 1
* use regex to pick up package reference parts

* fix: fix manager updateArtifacts test after change

* Update lib/modules/manager/hermit/extract.ts

Co-authored-by: Philip <42116482+PhilipAbed@users.noreply.github.com>

* fix: fix up test and docker reference for hermit manager

* test refer to internal fs
* docker image change to sidecar
* only symlink are read for the changed file content after hermit
  install
* no more global mock in artifacts test

* fix: use warn instead of error so error better flows up in hermit manager

* fix: partial for test type, use throw instead of reject

* fix: update snapshot

* fix: combine install packages, also make extractPackageFile async

* fix: remove weird generated readLocalSynmlink in test

* fix: removes old test

* fix: use ensureLocalPath and fix test coverage

* fix: more test coverage

* fix: use ensureLocalPath in readLocalSymlink

* Apply suggestions from code review

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

* fix: remove unused functions and types

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* fix: use execSnapshots and for of loop when returning the result

* Update lib/modules/manager/hermit/artifacts.spec.ts

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

* fix: move exports below imports

Co-authored-by: Philip <42116482+PhilipAbed@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-30 08:41:45 +00:00
Rhys Arkins
bba3c782e2
chore: fix packageRules test (#16866) 2022-07-30 07:49:05 +03:00
Michael Kriese
ab7ddb5e3c
feat(platform/gitea): support automergeStrategy (#16851)
* feat(platform/gitea): support `automergeStrategy`

* chore: revert change

* Update docs/usage/configuration-options.md

* Update docs/usage/configuration-options.md
2022-07-29 14:40:26 +02:00
Michael Kriese
2c5fd14e25
fix(git): remove wrong submodule file filter (#16848) 2022-07-29 08:32:05 +00:00
Michael Kriese
a3d1235032
feat(manager/pipenv): support binarySource=install (#16828)
* feat(manager/pipenv): support binarySource=install

* docs: update docs

* fix: linting
2022-07-28 17:17:02 +00:00
IKEDA Sho
16705ed083
docs(manager/argocd): Set displayName and url (#16838) 2022-07-28 16:15:33 +00:00
Michael Kriese
cf7bb3226d
feat(manager/gradle-wrapper): support binarySource=install (#16830)
* feat(manager/gradle-wrapper): support `binarySource=install`

* docs: update docs
2022-07-28 13:47:56 +00:00
Michael Kriese
a7a44b32db
fix(manager/pip_requirements): remove invalid tagScheme (#16829) 2022-07-28 10:27:12 +00:00
Przemysław Romanik
ac7aa81eda
docs: Gitea account must have full name set for Git identity (#16792)
* Gitea account must have full name set for Git identity

* Update lib/modules/platform/gitea/index.md

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

* Update index.md

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-27 17:33:52 +00:00
Sergei Zharinov
e4716ead14
refactor(github): Simplify long-form condition in findPr (#16813) 2022-07-27 16:27:46 +00:00
Sergei Zharinov
eed6fe3349
refactor(github): Sort cached PR list (#16815) 2022-07-27 16:09:03 +00:00
Sergei Zharinov
d774d82fcd
test(github): Remove unnecessary type casts (#16816) 2022-07-27 15:44:37 +00:00
Sergei Zharinov
1c2a78bd67
test(sbt-package): Refactor tests (#16804) 2022-07-27 13:40:15 +02:00
Thorsten Essig
5bbb4c6054
fix(datasource/go): consider all available datasources for go-import (#16544)
* fix(16543): consider all available datasources for go-import

* fix(datasource/go): add test for go-import with gitlab datasource

* refactor: rename param to reduce diff

* fix(datasource/go): return early on datasource detection

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-27 09:13:39 +02:00
IKEDA Sho
caa720401a
docs(manager/gomod): Set displayName and url (#16796) 2022-07-27 08:51:17 +03:00
Gabriel-Ladzaretti
871b069d83
fix(logs): remove variable from a template literal for a warn message for gradle (#16789)
logs: tidy up warn message for grade file not found
2022-07-26 15:03:05 +00:00
Piotr Krzemiński
adccb9c0ca
feat(manager): add support for Kotlin Script (#16684) 2022-07-26 13:37:34 +02:00
Sebastian Poxhofer
90f85b9958
feat(manager/fleet): implement Rancher Fleet manager (#16138)
* feat(manager/fleet): implement Rancher Fleet manager

* Apply suggestions from code review

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/manager/fleet/extract.spec.ts

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

* docs(fleet): add tsdocs

* fixup test null checks

* docs: add default filematch

* chore: rename tempDep to dep

* apply change requests

* catch exceptions from yaml-js

* trigger yaml parse error

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-26 08:48:50 +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
Yun Lai
f1bcafc584
feat(fs): add localPathIsSymbolicLink and readLocalSymlink (#16673)
* fix: add localPathIsSymbolicLink and readLocalSymlink to fs module

* Update lib/util/fs/index.ts

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

* Update lib/util/fs/index.ts

* Apply suggestions from code review

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-26 08:19:20 +00:00
IKEDA Sho
8bff91a48b
feat(datasource): add cpan datasource (#16545)
* feat(datasource): add cpan datasource

* Update perl versioning's readme

* Extract copystr function to lib/util/string.ts

* Remove unnecessary optional chaining

* Use registryUrl and logger.trace

* Use `perl` versioning's `isStable`

* Remove possibly unnecessary try/catch

* Use MetaCPAN API

* Use reduce

* Use maturity field for `isStable` handling

https://metacpan.org/pod/CPAN::DistnameInfo#maturity

* Revert "Extract copystr function to lib/util/string.ts"

This reverts commit 51ebf55c90.

# Conflicts:
#	lib/modules/datasource/cpan/index.ts

* Remove downloadUrl

* Extract types

* Use toMatchObject

* Improve tests

* Rename to MetaCpanSearchResult

* Rename to searchUrl

* Rename to MetaCpanFileSearchResult and add tsdoc

* Use for...of over reduce

* More safely handle the response JSON

* Use joinUrlParts

* Don't embed distribution info

* Split tsdoc comments
2022-07-26 06:39:51 +00:00
aKzenT
5bcbedcde1
feat(preset): include applicationinsights-dotnet as monorepo (#16685)
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2022-07-26 05:40:27 +00:00
Rhys Arkins
8d0c72af06
fix(config): filter out invalid massaged packageRules (#16778)
Closes #16777
2022-07-26 08:25:37 +03:00
Gabriel-Ladzaretti
2446f446b7
fix(git/cache): getCachedBehindBaseResult returns true when branch is not modified (#16752) 2022-07-26 04:41:09 +00:00
IKEDA Sho
6f42227e5e
docs(manager/cocoapods): Configure ModuleApi's displayName and url (#16760)
* docs(manager/cocoapods): Configure `ModuleApi`'s displayName and url

* Revert export order

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-26 04:18:43 +00:00
Gabriel-Ladzaretti
24a237c15b
fix(git/cache): getCachedBranchParentShaResult returns unexpected undefined (#16762) 2022-07-25 20:23:25 +02:00
Johannes Feichtner
d6fa2fefda
fix(gradle): silence warning for file not found via "apply from" (#16767) 2022-07-25 19:06:56 +02:00
Michael Kriese
17387fcf48
fix(manager/nuget): skip invalid xml files (#16758) 2022-07-25 14:54:46 +02:00
Michael Kriese
2bbbc956e9
fix(manager/nuget): Skip dep if version is undefined (#16757) 2022-07-25 12:31:53 +00:00
Maron
6246a61bf4
fix(datasource/docker): Docker tags list for library images not working (#16509) 2022-07-25 08:23:42 +02:00
IKEDA Sho
1ad61a7ebd
refactor(manager): consistently write as export const language = ... (#16739)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-25 06:13:57 +00:00
RahulGautamSingh
9778ca67d9
feat: use getBranchParentSha cached result (#16724) 2022-07-24 19:49:39 +02:00
Johannes Feichtner
a3c3f11860
fix(gradle): adjust max. recursion depth and logger warning (#16734) 2022-07-24 13:28:04 +02:00
Yun Lai
a7202c4f46
fix: add excludeCommitPaths for hermit manager (#16674) 2022-07-24 08:56:13 +00:00
Sergei Zharinov
6e01af9320
fix(bundler): fix recursive resolved dependencies (#16462)
* fix(bundler): fix recursive resolved dependencies

* Remove ugly type assertions

* fixes

* fix

* fix

* Add recursion limit

* Extract unique packages

* pr fixes

* Add `exec-error.ts`

* fix

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-24 11:45:01 +03:00
foolioo
bb52f9785a
docs(regex): clarify regex manager limitations (#16709) 2022-07-24 09:25:45 +03:00
Johannes Feichtner
1b36708c64
feat(gradle): always add depType to extracted dependencies (#16725) 2022-07-24 06:14:29 +00:00
IKEDA Sho
45d0dbf884
refactor(workers): Prefer interface over type (#16727)
https://github.com/renovatebot/renovate/blob/main/docs/development/best-practices.md#general
2022-07-24 08:53:54 +03:00
IKEDA Sho
c803825f7c
test: Fix requireConfig test name (#16728) 2022-07-24 06:13:46 +02:00
IKEDA Sho
04ba9cd44e
test(config/decrypt): Use CONFIG_VALIDATION constant (#16730) 2022-07-24 06:13:21 +02:00
Michael Kriese
6854145528
feat(manager/elixir): support install binary source (#16710)
* feat(manager/elixir): support install binary source

* test: fix snapshot
2022-07-22 16:35:20 +00:00
Gabriel-Ladzaretti
892595aea8
feat(util/exec): use spawn instead of exec (#16414)
* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - init spawn-util

* refactor(util): use spawn instead of exec

 - spawn-util

* refactor(util): use spawn instead of exec

 - init index-spawn.spec.ts

* refactor(util): use spawn instead of exec

 - fixed various tests

* refactor(util): use spawn instead of exec

 - fix all artifacts.spec.ts

* refactor(util): use spawn instead of exec

 - fix all artifacts.spec.ts

* refactor(util): use spawn instead of exec

 - fix npm post update imports

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff
 - destroy stdio when terminating child process

* refactor(util): use spawn instead of exec

 - delete and revert dev related changes

* refactor(util): use spawn instead of exec
 - fix support for windows

* refactor(util): use spawn instead of exec

 - handle SIGSTOP and such
 - add test coverage

* refactor(util): use spawn instead of exec

 - now converts to strings when resolving/rejecting

* refactor(util): use spawn instead of exec

 - logs improvements
 - force shell (exec like)
 - fix tests

* refactor(util): use spawn instead of exec

 - strongly type listeners

* refactor(util): use spawn instead of exec

 - create helper mock for spawn

* refactor(util): use spawn instead of exec

 - cr changes

* Update lib/util/exec/common.ts

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* refactor(util): use spawn instead of exec

 - documentation

* refactor(util): use spawn instead of exec

 - revert unnecessary formatting

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

 - added ExecError class

* refactor(util): use spawn instead of exec

 - exec-error.ts restructure

* refactor(util): use spawn instead of exec

* Apply suggestions from code review

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

 - deprecated RawExecOptions.encoding property

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-22 15:43:28 +00:00
horihel
c2b19d8dd0
feat(preset): add grafana monorepo (#16697)
add grafana monorepo to monorepo list
2022-07-22 07:55:13 -07:00
Hasan Awad
9ca19dbe24
refactor(config/presets): for loop of resolveConfigPresets (#16677) 2022-07-22 12:53:56 +00:00
IKEDA Sho
2241daaada
refactor(datasource): Prefer interface over type (#16707)
https://github.com/renovatebot/renovate/blob/main/docs/development/best-practices.md#general
2022-07-22 12:18:58 +00:00
Michael Kriese
ed538ac304
fix(manager/kubernetes): log filename on parse error (#16676) 2022-07-22 09:17:16 +00:00
Michael Kriese
0cc8e2bb02
refactor(preset): sort monorepos (#16695) 2022-07-22 11:03:35 +02:00
Michael Kriese
6c78237993
test: simplify exec mock (#16698) 2022-07-22 07:42:30 +00:00
Michael Kriese
13027fd4f5
fix(manager/nuget): optimize xml error handling (#16681)
* fix(manager/nuget): optimize xml error handling

* Update lib/modules/manager/nuget/package-tree.spec.ts

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-22 09:15:25 +02:00
Michael Kriese
c95024bb2c
fix(manager/argocd): catch invalid definitions (#16675) 2022-07-22 06:11:01 +00:00
IKEDA Sho
497b5de6c2
test(datasource): Avoid snapshots for testing EXTERNAL_HOST_ERROR (#16692) 2022-07-22 06:49:05 +02:00
Philip
b8c5a87bc4
fix(manage/gomod): Golang fix pin (#16682)
* Add .whitesource configuration file (#3)

Co-authored-by: whitesource-for-github-com[bot] <50673670+whitesource-for-github-com[bot]@users.noreply.github.com>

* Update .whitesource

* build(deps): update dependency simple-git to v3.5.0 (#17)

Co-authored-by: whitesource-for-github-com[bot] <whitesource-for-github-com[bot]@users.noreply.github.com>

* golang fix pin

* golang fix pin

Co-authored-by: whitesource-for-github-com[bot] <50673670+whitesource-for-github-com[bot]@users.noreply.github.com>
Co-authored-by: whitesource-for-github-com[bot] <whitesource-for-github-com[bot]@users.noreply.github.com>
2022-07-21 17:29:15 +02:00
Michael Kriese
4f82df4c3d
feat(buildpack): enable cache (#16591) 2022-07-21 07:00:02 +00:00
RahulGautamSingh
93707c1ed7
feat: use isBranchBehindBase cached result (#16595) 2022-07-21 07:48:02 +02:00
RahulGautamSingh
5b74dad583
refactor(migrations): migrate depTypes (#16421)
* migrate depTypes

* migrate more depTypes

* Revert "migrate more depTypes"

This reverts commit 3f97d9eb82.

* more migrations

* Update dep-types-migration.ts

* Update dep-types-migration.ts

* refactor: add tests and revert some changes

* add separate class for each dep-type

* Update peer-dependencies-migration.ts

* add tests

* update types

* modify test

* - Use regex to detect all depTypes
- Fix arrMigrate -> arrMigrate.migratedConfig

* add new interface for depTypes

* remove if-block

* Update lib/config/migrations/custom/dep-types-migration.ts

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

* run prettier

* Update lib/config/migrations/custom/dep-types-migration.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-21 05:06:32 +00:00
Johannes Feichtner
a6b747444a
feat(gradle): add support for further apply-from patterns (#16507) 2022-07-20 05:45:31 +00:00
Sebastian Poxhofer
d0926c3d61
fix(manager/regex): depName requirement if using the recursive strategy (#16225)
* fix(manager/regex): depName requirement if using the recursive strategy

* chore(manager/regex): implement code suggestions

* chore: replace Boolean with Is function

* chore: abort if match strings are empty

* refactor: do not parse regexes on each recursion and filter after all matches are processed

* fixup! test name

* Revert "chore: abort if match strings are empty"

This reverts commit bf41a92f

* refactor: extract inline function

* fix: out-of-bound check

* feat: allow currentDigest as valid alternative to currentValue

* Update lib/modules/manager/regex/utils.ts

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

* chore: prettier

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-19 12:02:42 +00:00
Hasan Awad
3c8d1d6076
refactor(darasource): checks and massage url in metadata (#16632)
* refactor hostname check

* changes

* switch back check

* changes

* changes

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-19 05:31:01 +00:00
IKEDA Sho
ef11336ed9
refactor(versioning): use versioning's id consistently (#16640) 2022-07-19 07:36:52 +03:00
RahulGautamSingh
54cff9aeb8
refactor: throw error if issue with git (#16618) 2022-07-18 12:33:20 +00:00
Maron
a93cd9f4bd
refactor: move dependencyDashboardRebaseAllOpen parameter closely to worker (#16628) 2022-07-18 10:06:16 +02:00
Philip
a6e5eefb64
feat(manager/gomod): support updating go version in go.mod files (#16541) 2022-07-18 06:22:50 +00:00
cl
496e12f795
feat: add librarian-puppet support (#14789) 2022-07-17 05:27:35 +03:00
Rhys Arkins
0fc2a55624
fix(git-refs): gracefully ignore git-refs auth error (#16617) 2022-07-16 15:48:26 +02:00
Michael Kriese
71f96f1f88
fix(manager/kubernetes): filter invalid documents (#16598) 2022-07-15 15:00:53 +00:00
Michael Kriese
47b9493fe2
test(git): raise timeout to 60s (#16599) 2022-07-15 16:47:39 +02:00
Rhys Arkins
cf4fcce8de
fix(onboarding): use default preset only if truthy (#16596)
Closes #16526
2022-07-15 15:34:31 +02:00
Michael Kriese
ef64863f88
fix(preset/gitlab): manual parse json (#16592) 2022-07-15 10:32:12 +00:00
renovate[bot]
0ed7072a1f
chore(deps): update dependency type-fest to v2.16.0 (#16473)
* chore(deps): update dependency type-fest to v2.16.0

* chore: fix type issues

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-15 10:09:50 +00:00
Yun Lai
9280430f4c
feat: add datasource for Hermit package manager (#16257)
* feat: add datasource for Hermit package manager

* fix: make hermit datasource use http.stream instead of http.get

* chore: inline small function and return null on error in hermit datasource

* fix: use regExp to extract owner and repo from registryUrl

* fix: use http from super & use error instead of debug on datasource error

* fix: fix type check failure for github-release test

* Update lib/modules/datasource/hermit/index.spec.ts

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

* Update lib/modules/datasource/hermit/index.spec.ts

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

* Update lib/modules/datasource/hermit/index.spec.ts

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

* Update lib/modules/datasource/hermit/index.ts

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

* fix: wrap JSON.parse to avoid breaking process, plus more comment onto the search manifest streaming process

* fix: add test to cover the invalid json case

* fix: change some logger.errors to logger.warn in hermit datasource, error will exit the whole process

* Update lib/modules/datasource/hermit/index.spec.ts

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

* Update lib/modules/datasource/hermit/index.spec.ts

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

* Update lib/modules/datasource/hermit/index.ts

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

* Update lib/modules/datasource/hermit/index.ts

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

* Update lib/modules/datasource/hermit/index.ts

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

* fix: use parseUrl and use hermit as GithubHttp id

* fix: added test to include HermitDatasource type in GITHUB_API_USING_HOST_TYPES

* fix: handle invalid url & achieve code coverage

* fix: move url parsing to parent function

* Update lib/modules/datasource/hermit/index.ts

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

* chore: clean up HermitDataSource class doc

* fix: getHermitSearchManifest cache key function should expect undefined

* fix: pass GetReleasesConfig into getHermitSearchManifest to get proper caching working

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* chore: fix json block in datasource readme.md

* Put packageRules example in step 4

* fix: fix lint error

* fix: pass parsedUrl into getHermitSearchManifest, add warning and simplifies type

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2022-07-15 09:57:05 +00:00
RahulGautamSingh
c7507255b7
refactor: rename isBranchStale -> isBranchBehindBase (#16577)
* rename

* rename to isBranchBehindBase

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-15 09:21:32 +00:00
RahulGautamSingh
cc55f15f82
feat: semantic pr title for migrationPRs (#16490)
* generate PR title using ConfigMigrationCommitMessageFactory

* add test
2022-07-15 07:20:55 +00:00
RahulGautamSingh
f506580e40
fix: add repoCache-check before cloning (#16533) 2022-07-15 09:09:08 +02:00
Michael Kriese
fb0dad1e42
refactor(datasource/docker): types cleanup (#16578) 2022-07-14 22:27:31 +03:00
Michael Kriese
ad70360fda
fix(utils/fs): make assertions windows compatible (#16583)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-14 17:33:28 +02:00
Michael Kriese
62d5d670bf
test(git): tmp dir can be missing (#16585) 2022-07-14 16:17:19 +03:00
Sergei Zharinov
d0fe5f904e
feat(fs): Scope checks for filesystem functions (#16511) 2022-07-14 07:53:26 +00:00
RahulGautamSingh
2d5c8230d0
feat: run prettier on migratedJSON (#16471) 2022-07-14 06:05:31 +00:00
IKEDA Sho
9a413e5f2e
test(datasource): remove unnecessary optional chaining in tests (#16572) 2022-07-14 05:28:51 +00:00
Olivier Michaelis
5568420c78
feat(github): support unprefixed App Installation Token (#16174) 2022-07-14 04:42:05 +00:00
Jamie Magee
98b19615fa
feat(manager/kubernetes): extract kubernetes api versions (#16556)
* feat(manager/kubernetes): extract kubernetes api versions

* Update lib/modules/manager/kubernetes/extract.ts

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

* coverage

* inline small fixture

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-13 21:09:15 +02:00
Florian Greinacher
2b582140c2
fix(manager/docker): use correct autoreplace string for registry aliases (#16542)
* fix(manager/docker): use correct autoreplace string for registry aliases

* fix: re-establish old behavior
2022-07-13 06:22:52 +00:00
IKEDA Sho
0d2d22167d
feat(versioning): add perl versioning (#16518) 2022-07-12 10:29:27 +02:00
Jamie Magee
c3c493baf1
docs(azure): merge azure devops docs (#16432) 2022-07-12 04:59:43 +00:00
renovate[bot]
210695c1a0
build(deps): update dependency git-url-parse to v12 (#16458)
* build(deps): update dependency git-url-parse to v12

* fix: add workaround

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-11 19:37:56 +00:00
Gabriel-Ladzaretti
6202b1c264
refactor(util/exec): change mocked modules in existing tests (#16519) 2022-07-11 11:41:24 +02:00
RahulGautamSingh
e10aa6aa5a
fix: check cache before cloning (#16517) 2022-07-11 10:58:51 +02:00
Steffen Schroeder
fa17909e8f
feat(preset): extend NestJS monorepo (#16520) 2022-07-11 08:26:51 +00:00
RahulGautamSingh
5774fb3f2a
refactor(migrations): class-based migration for packageRules (#16390)
* use class-based migration for packageRules

* fix errors

* refactor: remove unnecessaru if statement

* refactor: use argument

* refactor: apply suggestions

* Update lib/config/migrations/custom/package-rules-migration.ts

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

* Update lib/config/migrations/custom/package-rules-migration.ts

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

* refactor: import type PackageRule

* Update lib/config/migrations/custom/package-rules-migration.ts

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

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-11 04:59:06 +00:00
Johannes Feichtner
21d5e6829d
feat(gradle): add support for variable assignments with rootProject and project (#16505)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-10 14:06:50 +00:00
Sergei Zharinov
e26130329d
refactor(fs): Add tests for every filesystem function (#16495)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-09 18:50:45 +00:00
Philip
6453c3833f
feat(PrBody): log when PR was created and updated (#15809) 2022-07-09 08:50:19 +02:00
Michael Kriese
677fc8b332
fix(datasource/docker): do not use json for '/v2/' (#16482)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-08 14:05:29 +00:00
Yun Lai
605f35c45c
feat: add versioning for Hermit package manager (#16256)
* feat: add versioning for Hermit package manager

* Update lib/modules/versioning/hermit/index.ts

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>

* Update lib/modules/versioning/hermit/index.ts

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>

* Update index.ts index.spec.ts and readme.md according to PR comments

* fix: fix versioning test double negation and _parseVersion function which is just for testing

* fix: simplify hermit versioning implementation as suggested

* fix: use _compare to simplify versioning implementation

* fix: reword version in hermit versioning and make _isChannel & _getChannel static

* fix: remove duplicated title in test and make _config readonly

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-07 13:30:22 +00:00
RahulGautamSingh
5bfa68b8d3
refactor(migrations): migrate package files (#16393)
* create file

* use class-based migration for packageFiles

* add tests

* fix errors

* fix merge errors

* Update lib/config/migrations/custom/package-files-migration.ts

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>

* Update lib/config/migrations/custom/package-files-migration.ts

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>

* add test

* Update index.ts

* modify test

* fix type

* refactor

* Update lib/config/migrations/custom/package-files-migration.ts

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

* Update lib/config/migrations/custom/package-files-migration.ts

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

* readd todo

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-07 07:53:47 +00:00
Florian Greinacher
93c2d053a3
feat(manager/gitlabci): add support for registryAliases (#16227)
* feat(manager/gitlabci): add support for CI_REGISTRY

* fix: pass correct property

* chore: adapt tests

* docs; add documentation for the new option

* test: extend test cases

* fix: do the abc properly

* refactor: switch to using registryAliases option

* docs: mention registry variable

* style: remove extra heading

* docs: fix sentence

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* docs: move documentation to managers

* docs: fix formatting

* refactor: handle default value in function body

* refactor: remove unused function

* refactor: move registry alias handling to dockerfile manager

* style: remove unused import

* refactor: use match groups directly

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

* refactor: add dockerfile manager tests

* chore: fix variable name

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-07 09:42:31 +02:00
Sergei Zharinov
83f67c27d5
refactor(fs): Rename getSubDirectory to getParentDir (#16446)
* refactor(fs): Rename `getSubDirectory` to `getParentDir`

* Add tests for `getSiblingFileName`

* fix

* fix
2022-07-07 06:44:21 +00:00
Paul Gschwendtner
c8921582ce
fix(npm): properly handle lock file maintenance for nested independent yarn workspaces (#16451) 2022-07-06 20:49:55 +00:00
Johannes Feichtner
19254ca0a4
fix(gradle): remove default maven central registry (#16430) 2022-07-06 20:33:56 +00:00
Yun Lai
793095c1a0
fix(git): add options to getRepoStatus (#16253) 2022-07-06 05:17:39 +00:00
RahulGautamSingh
8b9d038fa3
refactor(migrations): migrate node (#16422)
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2022-07-06 04:39:48 +00:00
RahulGautamSingh
895218d2a9
refactor: migration semantic prefix (#16218) 2022-07-06 02:34:21 +00:00
Jamie Magee
3589d0e222
refactor: remove deprecated loadFixture calls (#16404)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-04 04:18:53 +00:00
Johannes Feichtner
8738b0a47c
feat(versioning/redhat): Support for Red Hat release versioning (#16294) 2022-07-03 23:39:13 +00:00
Johannes Feichtner
db6de24756
fix(gradle): resolve escaped registry URLs in gradle.properties (#16403) 2022-07-03 15:53:43 -07:00
Jamie Magee
1c30a3d8cc
refactor(manager/jenkins): correct type-check for version (#16395) 2022-07-03 20:48:53 +02:00
Johannes Feichtner
351fd363c1
fix(gradle): ignore stages() method from reckon plugin (#16401) 2022-07-03 16:25:36 +00:00
Rhys Arkins
b49849b2a0
fix: assign default versioning before applying package rules (#16392) 2022-07-03 18:11:20 +02:00
Nuno Marujo
426d3f34cf
docs: Maven - Ensure changelog is fetchable (#16389) 2022-07-03 15:31:23 +00:00