Rhys Arkins
dca3418bbd
refactor: lib/modules ( #14488 )
...
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/
BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00
Jamie Magee
b08439a6ed
fix: union types for ensurePR ( #14293 )
2022-03-02 06:09:06 +01:00
Sergei Zharinov
4f3dfbcc18
feat(platform): Cache created comments ( #14279 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-02-28 20:11:57 +01:00
Hasan Awad
77e48684e7
fix(pr): pr table for digests ( #14337 )
2022-02-28 18:47:19 +00:00
Rhys Arkins
68a4415eb4
refactor(config): rename preset packageName/pkgName to repo ( #14453 )
2022-02-28 17:39:44 +01:00
Rhys Arkins
08a44c9566
refactor(npm): npmrc handling ( #14443 )
2022-02-28 10:50:30 +01:00
Rhys Arkins
6c9aad38a8
refactor: remove unnecessarily long paths in imports and mocks ( #14429 )
2022-02-26 16:09:01 +00:00
Rhys Arkins
b130bf5afb
refactor: base64 util functions ( #14422 )
2022-02-26 10:16:54 +01:00
Florian Greinacher
a989c78800
fix: do not interpret value as version during flattening ( #14320 )
2022-02-24 09:41:47 +00:00
Sergei Zharinov
88ffc9c0b8
refactor(platform): Simplify comment deletion API ( #14363 )
...
* refactor(platform): Simplify comment deletion API
* Fix comment id types
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-02-23 12:28:36 +00:00
Ivan Katliarchuk
9a103cbb51
fix: ignore empty labels during label merge and templating ( #14322 )
2022-02-21 21:47:51 +01:00
Rhys Arkins
36a29974bb
fix: validate depName is a string ( #14342 )
...
Closes #14338
2022-02-21 15:38:24 +01:00
Serge K
c75f0e9b47
fix: check hashedBranchLength ( #14307 )
2022-02-19 09:57:01 +00:00
Rhys Arkins
f3bdb9470c
fix(composer): add support for github vulnerability alerts ( #14301 )
2022-02-18 16:48:40 +01:00
Philip
5480202a59
fix(PrBody): pr table 'Change' field shows only "All locks refreshed" ( #13963 )
...
* fix(PrBody): issue 5838,
* Update lib/workers/pr/body/updates-table.spec.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* fix(PrBody): issue 5838 review commits
* fix(PrBody): issue 5838 review commits
* fix(PrBody): issue 5838 review commits
* Update lib/workers/repository/updates/generate.ts
Co-authored-by: Rhys Arkins <rhys@arkins.net>
* 5838 - add import
* 5838 - add import
* 10033 - merge
* 5838 - new pull request commit
* 5838 - order imports
* Update lib/workers/repository/updates/generate.ts
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
* 5838 - fix tests
Co-authored-by: philipabed <philip.abed@whitesourcesoftware.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-02-15 20:44:53 +01:00
Sergei Zharinov
1e6ec07d8a
refactor(datasource/npm): Convert to class ( #14193 )
2022-02-15 08:20:45 +00:00
Sergei Zharinov
d09ce212c4
feat(util/git): Renovate custom refs periodic cleanup ( #14211 )
2022-02-15 05:50:08 +00:00
Sergei Zharinov
a86f23df09
refactor: Convert Maven-based datasources to class ( #14188 )
2022-02-15 05:12:30 +00:00
Rhys Arkins
b0d4012c45
fix(presets): set global host rules before validating presets ( #14213 )
2022-02-14 17:30:49 +00:00
Sergei Zharinov
00a2dce783
refactor(datasource/docker): Convert to class ( #14194 )
2022-02-13 19:13:13 +00:00
Sergei Zharinov
b0ce30b59a
refactor(datasource/nuget): Convert to class ( #14140 )
...
* refactor(datasource/nuget): Convert to class
* Fix strict nulls and obsolete URL
* Fixes
* Fix mutability
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-02-13 13:55:03 +00:00
Hasan Awad
f83c82b94f
fix: added filtering for empty depName ( #14037 )
2022-02-13 09:59:03 +01:00
Rhys Arkins
c6b1cda575
fix(pr): intelligently merge prBodyColumns ( #14198 )
2022-02-13 08:26:49 +00:00
Sergei Zharinov
8a7abfdf01
refactor(github): Convert datasources to class form ( #14124 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2022-02-13 03:24:40 +00:00
Oleg Krivtsov
0786775005
feat(workers/global): support eager resolving of presets ( #13279 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-02-11 11:35:29 +00:00
Michael Kriese
5723be1ac5
refactor: add strict null checks ( #14169 )
2022-02-11 11:02:30 +01:00
Jamie Magee
0a4b1036b5
refactor(packagist): convert to class-based datasource ( #12227 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-02-11 07:29:11 +00:00
Michael Kriese
8dee195d0e
fix: wrong config access ( #14164 )
2022-02-11 04:37:57 +00:00
Hasan Awad
bf0ebd2159
test: fix broken test of 'processBranch' function ( #14135 )
2022-02-10 16:21:05 +01:00
Rhys Arkins
9a43d32457
feat(npm): optimize remediation to detect already updated branches ( #14084 )
2022-02-08 09:41:26 +01:00
Rhys Arkins
98ed29c74b
fix(npm): don't disable lock file updates when remediating ( #14082 )
2022-02-08 08:55:27 +01:00
Rhys Arkins
bc300b858f
fix(automerge): don't reassign failing PRs if assignAutomerge=true ( #14065 )
2022-02-07 15:45:57 +01:00
Jamie Magee
3b7e9a17cb
refactor: set importsNotUsedAsValues to error ( #14052 )
2022-02-07 06:37:17 +00:00
Rhys Arkins
eba4e8f51b
fix(npm): remove failed remediations from dashboard ( #14025 )
...
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2022-02-07 03:27:24 +00:00
Malte Swart
67524192a1
fix: populate isLockFileMaintenance ( #14005 )
...
Lock file maintenance was broken as various managers rely on the
`isLockFileMaintenance` update flag to be set. This was not the
case as its config is generated afterwards (without the is*
auto-propagation).
2022-02-05 07:35:46 +01:00
Richard Versteeg
000142e5d5
feat(changelogs): Add github-changelog
and gitlab-changelog
hosttypes ( #13695 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-02-02 10:20:51 +00:00
Sergei Zharinov
8070f007a6
refactor: Use Windows-compatible regex for newlines ( #13956 )
2022-02-02 07:31:11 +00:00
Rhys Arkins
3a34d11e14
refactor(platform): remove unnecessary pr.canMerge cases ( #13914 )
2022-01-31 15:35:40 +01:00
Oleg Krivtsov
368903ab81
feat: support new rangeStrategy=in-range-only ( #13257 )
...
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-30 03:46:22 +00:00
Nils Plaschke
3c4a3c1c43
fix: pass undefined to global secret replace ( #13908 )
2022-01-29 12:47:09 +01:00
Maxime Brunet
3f403d232a
fix(dependency-dashboard): Add missing newline to "Awaiting Schedule" section ( #13905 )
2022-01-29 06:02:25 +01:00
Sergei Zharinov
0424518db2
refactor(git): Delegate commit function to platform ( #13823 )
2022-01-28 14:50:10 +01:00
Stefano Zaninetta
c4af347d78
fix(pr): monorepo changelog with sourceDirectory ( #13366 )
2022-01-28 14:49:35 +01:00
Nils Plaschke
c34c1a7e3c
feat(config): replace secrets in global config ( #13445 )
2022-01-28 14:49:21 +01:00
Martin Herndl
184a7755b4
fix: improve re-opening behaviour of group updates ( #13830 )
2022-01-28 14:18:03 +01:00
Sergei Zharinov
b72bff3046
refactor(datasource): Make "DigestConfig::lookupName" a required field ( #13608 )
2022-01-28 11:50:03 +00:00
Sergei Zharinov
73b74a5207
test(onboarding): Remove inconvenient helper function ( #13876 )
...
* test(onboarding): Remove inconvenient helper function
* Fix tests
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-28 11:34:21 +00:00
Rhys Arkins
e0d891799a
fix: baseBranches branchPrefix ( #13872 )
2022-01-27 20:38:15 +00:00
hasanawad94
ddd7fc58e0
fix: Some wrong logging for flattened updates ( #13853 )
2022-01-27 13:57:24 +00:00
Yannick Denimal
4b83298f75
feat(template): dashboard header/footer templating ( #13598 )
2022-01-26 12:23:56 +00:00
Oleg Krivtsov
25e62d54a4
feat(git-submodules): handle directory artifacts in postUpgradeTasks ( #13480 )
2022-01-25 16:29:39 +00:00
Sergei Zharinov
5ca701c5ee
feat(git): Use local git for conflict detection ( #12575 )
2022-01-24 11:25:15 +00:00
Rhys Arkins
2e35968146
feat(pr): display latest pending update in upgrades table ( #13768 )
2022-01-24 11:09:27 +00:00
Maksim
dabe3d0e29
refactor: introduce Fixtures util class ( #12638 )
...
* refactor: introduce Fixtures util class
* refactor: align yarn.spec
* refactor: move fs mocks to __mocks__ folder
* refactor: improve fs-extra mock
* refactor: move callsite to dev deps
* refactor: use fixtures class
* refactor: use fixtures class
* refactor: reduce external variables in tests
* refactor: improve Fixtures
* refactor: add type for realFs
* refactor: remove obsolete snapshot
* fix: by comments
* refactor: provide ability to spy on mocked fs methods
* refactor: fix build
* refactor: fix by comments
* refactor: add docs
* refactor: fix unit test
* refactor: return called times checks
* refactor: fix by comments
* refactor: adjust unit test
* refactor: adjust unit test
* refactor: fix unit test
* refactor: fix by comments
* refactor: fix by comments
* refactor: update jsdoc
* refactor: fix by comments
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-23 21:23:54 +00:00
Sergei Zharinov
dbe14ab438
refactor(git): Rename File interface to FileChange ( #13741 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-22 08:31:32 +00:00
Sergei Zharinov
8a5be3440f
refactor: Use eslint rule to prohibit enums ( #13703 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-21 15:33:23 +01:00
elmaso1620
49f5ac0b9b
feat: expose sourceRepo, sourceRepoOrg and sourceRepoName ( #13620 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-21 12:03:06 +00:00
Michael Kriese
3b651408e7
fix: readd missing config properties ( #13716 )
2022-01-21 10:58:29 +00:00
Sergei Zharinov
7424ae338e
refactor(workers): Make reuse logic more consistent ( #13701 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-21 10:00:13 +00:00
Oleg Krivtsov
a133bb96af
feat(workers/branch): allow to define a blocked label ( #12164 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-21 08:33:22 +00:00
Sergei Zharinov
4f18d76320
refactor: Use union type for SkipReason ( #13702 )
...
* refactor: Use union type for SkipReason
* Fix snapshot
* Fix snapshot
2022-01-21 08:59:36 +01:00
Sergei Zharinov
0c4d8c7180
refactor: Separate file addition and deletion data structures ( #13638 )
2022-01-21 06:47:49 +01:00
Richard Versteeg
c13b42c8f5
refactor(gitlab-changelog): Make url encoding consistent ( #13694 )
2022-01-20 20:05:54 +01:00
Oleg Krivtsov
e148b66d8a
feat(config): read config from branches in baseBranches ( #12514 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-20 08:11:25 +00:00
renovate[bot]
995dd0e670
build(deps): update dependency redis to v4 ( #13260 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-19 06:05:23 +00:00
Sebastian Poxhofer
e406cd1131
feat(autodiscover): allow usage of regex patterns ( #13243 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2022-01-18 20:23:35 +00:00
Oleg Krivtsov
531daff3dc
feat(schedule): support cron syntax for schedules ( #12801 )
2022-01-18 14:39:13 +01:00
Jan Molak
4a332e032d
fix(renovate): Print preset validation errors so that they don't get lost ( #13597 )
2022-01-17 15:52:16 +00:00
Sergei Zharinov
d5ddfe0fea
refactor(versioning): Remove deprecated functions for generic versioning creation ( #13481 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-14 09:33:49 +00:00
Sebastian Poxhofer
1194cc711d
feat(onboarding): merge labels
and addLabels
and template onboarding labels ( #13433 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-10 09:52:42 +00:00
renovate[bot]
b34b099899
chore(deps): update dependency eslint-plugin-jest to v25.3.2 ( #13353 )
...
* chore(deps): update dependency eslint-plugin-jest to v25.3.2
* chore: fix test lint issues
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-04 09:57:35 +00:00
Sergei Zharinov
f7869e19e4
test: Refactor snapshot-only test cases ( #13324 )
2022-01-02 16:25:53 +01:00
RahulGautamSingh
4f65b57225
refactor: refactor static regex out of for loops ( #13065 )
2021-12-29 07:26:13 +01:00
Rhys Arkins
24185b81b0
feat: detect already updated lock file updates ( #13258 )
2021-12-23 11:54:36 +01:00
Michael Kriese
5e0e9ac1c2
refactor: prepare esm helper ( #13250 )
...
* refactor: prepare esm helper
* chore: fix type name
2021-12-22 17:01:28 +01:00
Michael Kriese
038969bc86
refactor: fix more esm imports ( #13246 )
2021-12-22 15:19:53 +01:00
Michael Kriese
c5d50f6da3
refactor: more esm imports ( #13233 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 11:28:20 +00:00
Michael Kriese
2b24a98359
refactor: update imports for esm ( #13230 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 08:37:47 +00:00
Michael Kriese
aa58814dcd
fix: wrong import ( #13229 )
2021-12-22 08:43:39 +01:00
Oleg Krivtsov
dad3863e8a
fix(config): detect missing RENOVATE_CONFIG_FILE ( #13196 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-22 08:38:49 +01:00
Rhys Arkins
01b79c8433
chore: log when no updateLockedDependency
2021-12-21 21:39:21 +01:00
Rhys Arkins
347d7dc51f
fix: move rebaseWhen=never check earlier ( #13218 )
2021-12-21 20:23:08 +00:00
Rhys Arkins
f20a9de60d
feat(yarn): updateLockedDependency for yarn v1 ( #13212 )
2021-12-21 13:46:44 +01:00
Rhys Arkins
75b1d8fbc6
feat(npm): efficient update-lockfile branch reuse ( #13198 )
2021-12-20 05:30:24 +00:00
Rhys Arkins
25d3d626c9
refactor: simplify lockfile-update logic ( #13191 )
2021-12-19 11:29:46 +01:00
Rhys Arkins
1f1c86a4f7
feat(npm): check if branch already updated ( #13185 )
2021-12-18 17:09:49 +01:00
Rhys Arkins
b84ce2ad55
refactor(npm): updateLockedDependency result ( #13182 )
2021-12-18 15:39:55 +00:00
Michael Kriese
1e1bea200a
fix: use @sindresorhus/is
instead of is
( #13183 )
2021-12-18 14:50:51 +00:00
Sebastian Poxhofer
5eea19b5be
feat(autodiscover): reverts autodiscoverfilter as array ( #13169 )
...
This reverts commit a0a770338f
.
2021-12-17 13:44:40 +01:00
RahulGautamSingh
453c249e46
fix(regex): add option to disable caching regex ( #13068 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-17 09:43:33 +01:00
Sebastian Poxhofer
a0a770338f
feat(autodiscover): allow array for autodiscoverfilter ( #13100 )
2021-12-16 15:12:35 +00:00
Sergei Zharinov
8d1ac78504
test(workers/pr): Explicit snapshots for release notes ( #13145 )
2021-12-16 14:14:19 +01:00
Peter Valdemar Mørch
c7a7ffbeed
feat(config): allow exporting async config ( #13075 )
...
* feat(config): allow exporting async config (#13035 )
module.exports can now be a function and it can be/return a Promise,
allowing the results of asynchronous operations to be used in the
configuration.
The discussion leading up to this PR in #13035 assumed that
module.exports had to be a plain object.
But this commit:
commit 9aa97af5b3
Author: Nejc Habjan <hab.nejc@gmail.com>
Date: Thu Dec 9 13:45:48 2021 +0100
feat(config)!: parse JSON5/YAML self-hosted admin config (#12644 )
Adds support for alternative admin config file formats.
BREAKING CHANGE: Renovate will now fail if RENOVATE_CONFIG_FILE is specified without a file extension
Had as an undocumented side effect, that it also handled transparenty
if module.exports was assigned a Promise. With that commit, the
promise will be await-ed so the resolved value is returned from
getConfig(). That was not the case before that commit.
So in this commit, configs that export functions are handled, and
test cases for both promises and functions have been added.
* Update lib/workers/global/config/parse/__fixtures__/fileAsyncFunction.js
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
* Update lib/workers/global/config/parse/__fixtures__/fileFunctionPromise.js
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
* feat(config): Fixed linter problems (#13035 )
* feat(config)!: Add doc for JSON5/YAML self-hosted admin config (#12644 )
The code was introduced in 9aa97af5b
and here is the documentation to
go with it
* feat(config): Document config.js exports (#13035 )
* feat(config): Rename file*.js to config*.js because they really are config (#13035 )
* Update docs/usage/getting-started/running.md
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
* Update docs/usage/getting-started/running.md
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-13 21:51:36 +00:00
Sergey Vedmak
eca5de1955
fix: Deduplicate release notes ( #13088 )
2021-12-13 15:13:55 +00:00
Sergei Zharinov
b762656b7f
test(workers/branch): Explicit conditions for snapshots ( #13085 )
2021-12-13 12:09:06 +00:00
Sergei Zharinov
a02f3901f4
test(workers/branch): Refactor snapshots ( #13079 )
2021-12-13 09:55:26 +01:00
Oleg Krivtsov
b14e9fa8de
fix(workers/pr): wrong links to changelog when master branch doesn't exist ( #12937 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-12 09:53:08 +00:00
Sergei Zharinov
61c57a1321
test(workers): Explicit snapshot tests for generateBranchConfig ( #13049 )
2021-12-10 14:21:40 +00:00
Rhys Arkins
bcea3254ad
fix: check if currentValue is a string ( #13044 )
2021-12-10 09:49:58 +01:00
Nejc Habjan
9aa97af5b3
feat(config)!: parse JSON5/YAML self-hosted admin config ( #12644 )
...
Adds support for alternative admin config file formats.
BREAKING CHANGE: Renovate will now fail if RENOVATE_CONFIG_FILE is specified without a file extension
2021-12-09 13:45:48 +01:00