Commit graph

10759 commits

Author SHA1 Message Date
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
HonkingGoose
f7d76bb2e9
chore: sort keys replacement presets (#13090)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-13 20:31:25 +00:00
renovate[bot]
2f6a99ba70
chore(deps): update linters to v5.6.0 (#13091)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-13 18:56:45 +00:00
Sergey Vedmak
eca5de1955
fix: Deduplicate release notes (#13088) 2021-12-13 15:13:55 +00:00
HonkingGoose
ca79bf76da
docs(updateNotScheduled): use monospaced font (#13086) 2021-12-13 15:06:46 +01:00
Sergei Zharinov
b762656b7f
test(workers/branch): Explicit conditions for snapshots (#13085) 2021-12-13 12:09:06 +00:00
HonkingGoose
6d956a3c1d
feat(config): add google guava to monorepo list (#13080) 2021-12-13 11:54:52 +01:00
Oleg Krivtsov
93e088fb85
test(manager/cargo): migrate to fs.readLocalFile (#13063)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-13 09:46:55 +00:00
Sergei Zharinov
a02f3901f4
test(workers/branch): Refactor snapshots (#13079) 2021-12-13 09:55:26 +01:00
renovate[bot]
6fec7eb7a3
chore(deps): lock file maintenance (#13078)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-13 01:27:27 +00:00
renovate[bot]
f3a4f1d638
docs: update references to renovate/renovate to v30 (#13076)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-13 01:16:17 +00:00
renovate[bot]
80d9ddf682
chore(deps): lock file maintenance (#13077)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-13 01:05:02 +00:00
HonkingGoose
77aa6475f5
docs(self-hosted configuration): use monospaced font for word true (#13071)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-12 15:10:03 +00:00
HonkingGoose
2128878fa5
docs(extractVersion): improve grammar (#13072) 2021-12-12 15:59:33 +01:00
HonkingGoose
f7adaf732b
docs(self-hosting examples): improve text (#13070) 2021-12-12 14:44:50 +00:00
renovate[bot]
849557af00
chore(deps): update dependency ts-jest to v27.1.0 (#13064)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-12 10:54:25 +00: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
Oleg Krivtsov
4ea9ed2b5e
feat(config/presets): handle slash in packageTag (#13028)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-12 09:23:17 +00:00
renovate[bot]
dd5edbbe2c
chore(deps): update dependency re2 to v1.17.1 (#13062)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-12 03:19:23 +00:00
renovate[bot]
fa1240fd9f
chore(deps): update dependency re2 to v1.17.0 (#13061)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-12 01:44:15 +00:00
Michael Kriese
c96637b5ba
refactor(versioning/nuget): simplify by using class (#13059) 2021-12-11 17:16:56 +00:00
renovate[bot]
62de7b031d
chore(deps): update dependency prettier to v2.5.1 (#13060)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-11 16:06:55 +00:00
Maksim
a4249f9afe
refactor(migrations): extend abstract migration (#12963)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-11 13:56:51 +00:00
Michael Kriese
c7dbbd8620
fix(versioning/nuget): correctly compare semver v2 versions (#13056) 2021-12-11 14:37:00 +01:00
renovate[bot]
49f1d5a9b2
chore(deps): update dependency eslint to v8.4.0 (#13055)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-11 04:54:07 +00:00
renovate[bot]
f17a8e77d1
chore(deps): update actions/stale action to v4.1.0 (#13053)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-10 21:12:30 +00:00
renovate[bot]
7a760d8774
chore(deps): update github/codeql-action action to v1.0.26 (#13051)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-10 18:57:45 +00:00
Sergei Zharinov
61c57a1321
test(workers): Explicit snapshot tests for generateBranchConfig (#13049) 2021-12-10 14:21:40 +00:00
Sergei Zharinov
995df4d9a7
refactor(util/exec): Fix strict null errors (#12909)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-10 15:07:02 +01:00
Rhys Arkins
a86eceb7d4 fix: default empty string for replace 2021-12-10 13:55:13 +01:00
renovate[bot]
821bd600c6
chore(deps): update dependency @types/node to v14.18.0 (#13048)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-10 12:51:52 +00:00
Michael Kriese
f44f2440f2
chore: fix docs tool lint issues (#13046) 2021-12-10 11:21:34 +00:00
Martijn Hoekstra
bdbcd61f8b
fix(manager/sbt): support more seq constructors (#12541) 2021-12-10 11:07:03 +00:00
Rhys Arkins
a9d334874a
feat: binarySource=install (#12961) 2021-12-10 10:56:00 +00:00
Sebastian Poxhofer
e8645bf3c9
refactor(regex): cleanup up index.ts and move matchStringStrategy to enum (#12525) 2021-12-10 10:45:08 +00:00
Rhys Arkins
eeedadede7
fix: don't semver filter git-refs and git-tags (#13043)
Closes #13034

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-10 09:12:21 +00:00
Rhys Arkins
bcea3254ad
fix: check if currentValue is a string (#13044) 2021-12-10 09:49:58 +01:00
Oleg Krivtsov
7e873cacf0
feat(config/presets): fetchJSONFile handle branchOrTag in Bitbucket Server (#13005)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-10 07:17:10 +00:00
Michael Kriese
8dfb48e07b
ci: fix docs upload (#13041) 2021-12-09 22:19:31 +01:00
Rhys Arkins
705b6db57b
test: increase branches coverage threshold (#13040) 2021-12-09 20:50:53 +00:00
renovate[bot]
70c0307405
chore(deps): pin actions/upload-artifact action to v2.3.0 (#13039)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-09 21:41:11 +01:00
Michael Kriese
e4c938b7a5
docs: release as asset (#11429)
* docs: prepare release as asset

* chore: cleanup

* fix: wrong extension

* fix: wrong logger

* fix: wrong path

* chore: clean and create tmp

* chore: fix types

* fix: update generation

* Update .github/workflows/build.yml

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

* Update lib/datasource/types.ts

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

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2021-12-09 21:12:49 +01:00
HonkingGoose
ffb023c2f2
docs(userStrings): simplify text (#13031) 2021-12-09 14:46:49 +01:00
Oleg Krivtsov
ec6077d343
feat(preset)!: decrease prConcurrentLimit to 10 (#12892)
BREAKING CHANGE: Configurations extending config:base will now default to maximum 10 concurrent PRs instead of 20.
2021-12-09 13:46:27 +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
Michael Kriese
7c4a71b679
feat!: remove node v12 and node v15 support (#12658)
BREAKING CHANGE: remove node v12 and v15 support
2021-12-09 13:44:42 +01:00
Michael Kriese
ce241e170c
docs(presets): fix samples (#13029) 2021-12-09 12:44:47 +01:00
renovate[bot]
aa6f12a46e
build(deps): update dependency simple-git to v2.48.0 (#13021)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-08 21:41:10 +00:00
renovate[bot]
c8250610e2
chore(deps): update dependency eslint-plugin-promise to v5.2.0 (#13002)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-08 19:57:05 +00:00
renovate[bot]
82ec1d59be
chore(deps): update dependency type-fest to v2.8.0 (#13017)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-08 20:44:20 +01:00