* docs(best practices): avoid boolean instead use is functions
* Update docs/development/best-practices.md
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* 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>
* feat(core/automerge): Allow a separate schedule for automerge
- init commit
* feat(core/automerge): Allow a separate schedule for automerge
- lint ci fix
* feat(core/automerge): Allow a separate schedule for automerge
- added docs entry
* feat(core/automerge): Allow a separate schedule for automerge
- added test coverage
* feat(core/automerge): Allow a separate schedule for automerge
- config-description.ts reorder methods
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* feat(core/automerge): Allow a separate schedule for automerge
- cr changes
- revert schedule.spec.ts changes
- reset mocks in automerge.spec.ts
* feat(core/automerge): Allow a separate schedule for automerge
- cr changes
* feat(core/automerge): Allow a separate schedule for automerge
- cr changes
* Apply suggestions from code review
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
* feat(core/automerge): Allow a separate schedule for automerge
- cr changes
* feat(core/automerge): Allow a separate schedule for automerge
- cr changes log update
* feat(core/automerge): Allow a separate schedule for automerge
- cr changes
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* feat(core/automerge): Allow a separate schedule for automerge
- prettier fix and test update
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
cr changes
* feat(versioning/debian): Debian codenames support
restore extracted code
* feat(versioning/debian): Debian codenames support
package.json, dropped the generate: prefix.
unit test mod as per CR
* feat(versioning/debian): Debian codenames support
now using the generic ver api interface
* feat(versioning/debian): Debian codenames support
revert exporting docker versioning
* feat(versioning/debian): Debian codenames support
switched to luxon for time handle
test fixes
dropped ts-ignore comments
* feat(versioning/debian): Debian codenames support
extract changes in distro.ts
* feat(versioning/debian): Debian codenames support
post merge changes
* feat(versioning/debian): Debian codenames support
cr changes
* feat(versioning/debian): Debian codenames support
- added support for pin range strategy
* feat(versioning/debian): Debian codenames support
- typos & metadata fixes
* feat(versioning/debian): Debian codenames support
- added isReleased to distro.ts
* feat(versioning/debian): Debian codenames support
- moved all time/date handling into distro.ts
- date freeze for ubuntu/debian/distro unit tests
* refactor(versioning/distro): Move date handling into distro.ts
- revert refactor #15272
* feat(versioning/debian): Debian codenames support
- merge distro refactor
* feat(versioning/debian): Debian codenames support
- extract private properties
* feat(versioning/debian): Debian codenames support
- cr changes
* feat(versioning/debian): Debian codenames support
- cr changes
* feat(versioning/debian): Debian codenames support
- cr changes
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Added timeout option
* Added timeout to global config
* moved gitTimeout description to self-hosed-config
* Added `gitTimeout` in global.ts
* Changed to numeric value with test
* Make seperte object for timeout
* test and set max value to a minute
* For null check
* revert
* default for null check
* Added timeout for simple git uses
* Update lib/config/validation.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Made config into one object and changed test
* blank line for lint
* Update config.spec.ts
* prettier alignment
* lint
* lint fix
* added test and refactored
* refactored tests
* Update docs/usage/self-hosted-configuration.md
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
* More info in docs
* Update docs/usage/self-hosted-configuration.md
* Update docs/usage/self-hosted-configuration.md
* Fixed typo
* docs typo fix
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
* feat(versioning/ubuntu): Support for Ubuntu codenames
initial commit
* feat(versioning/ubuntu): Support for Ubuntu codenames
exported hardcoded data into JSON
* feat(versioning/ubuntu): Support for Ubuntu codenames
exported hardcoded data into JSON
* feat(versioning/ubuntu): Support for Ubuntu codenames
lint fix for DataFile
* feat(versioning/ubuntu): Support for Ubuntu codenames
fix for kebabCase
* feat(versioning/ubuntu): Support for Ubuntu codenames
JSON data file
* feat(versioning/ubuntu): Support for Ubuntu codenames
tests added
* feat(versioning/ubuntu): Support for Ubuntu codenames
added default branch in getCodenameByVersion function
* feat(versioning/ubuntu): Support for Ubuntu codenames
added the cmd to generate the data file
* feat(versioning/ubuntu): Support for Ubuntu codenames
CR changes
* feat(versioning/ubuntu): Support for Ubuntu codenames
CR changes
* feat(versioning/ubuntu): Support for Ubuntu codenames
CR changes
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation cr
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation cr
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation cr
* feat(versioning/ubuntu): Support for Ubuntu codenames
added sh script
* feat(versioning/ubuntu): Support for Ubuntu codenames
added mjs script
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script updated
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script updated
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script updated
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script updated
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script regex modification
* feat(versioning/ubuntu): Support for Ubuntu codenames
initial commit
* feat(versioning/ubuntu): Support for Ubuntu codenames
exported hardcoded data into JSON
* feat(versioning/ubuntu): Support for Ubuntu codenames
exported hardcoded data into JSON
* feat(versioning/ubuntu): Support for Ubuntu codenames
lint fix for DataFile
* feat(versioning/ubuntu): Support for Ubuntu codenames
fix for kebabCase
* feat(versioning/ubuntu): Support for Ubuntu codenames
JSON data file
* feat(versioning/ubuntu): Support for Ubuntu codenames
tests added
* feat(versioning/ubuntu): Support for Ubuntu codenames
added default branch in getCodenameByVersion function
* feat(versioning/ubuntu): Support for Ubuntu codenames
added the cmd to generate the data file
* feat(versioning/ubuntu): Support for Ubuntu codenames
CR changes
* feat(versioning/ubuntu): Support for Ubuntu codenames
CR changes
* feat(versioning/ubuntu): Support for Ubuntu codenames
CR changes
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation added.
added test cases.
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation cr
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation cr
* feat(versioning/ubuntu): Support for Ubuntu codenames
documentation cr
* feat(versioning/ubuntu): Support for Ubuntu codenames
added sh script
* feat(versioning/ubuntu): Support for Ubuntu codenames
added mjs script
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script updated
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script updated
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script updated
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script updated
* feat(versioning/ubuntu): Support for Ubuntu codenames
mjs script regex modification
* feat(versioning/ubuntu): Support for Ubuntu codenames
debian distro json
* feat(versioning/ubuntu): Support for Ubuntu codenames
removed debian distro json
* Update tools/distro-json-generate.mjs
* feat(versioning/ubuntu): Support for Ubuntu codenames
added package.json script entry
* feat(versioning/ubuntu): Support for Ubuntu codenames
added package.json script entry
* feat(versioning/ubuntu): Support for Ubuntu codenames
added package.json script entry
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Renames `lookupName` to be `packageName`.
BREAKING CHANGE: Use `packageName` instead of `lookupName` if interacting with Renovate datasources directly.
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
With the Self-Hosted Github app, Members was required to add team reviewers when I used it.
After adding this permission, we could add team reviewers again.
This could be required for other scenarios. Only the Self-Hosted Github App + Team reviewers was tested for this.
* 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>
Adds support for alternative admin config file formats.
BREAKING CHANGE: Renovate will now fail if RENOVATE_CONFIG_FILE is specified without a file extension
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>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
Current implementation tries to use GOPROXY and falls back to Renovate fetching mechanism if no releases found.
The new one is switches to GOPROXY implementaiton when environment variable is set and doesn't fallback.
However, when direct keyword is used, it will use Renovate-native mechanism that fetches directly from GitHub, etc.
When off keyword is encountered or no URLs left, we're done with no releases (i.e. no fallback to Renovate-native mechanism).
BREAKING CHANGE: Go modules lookups will now no longer fallback to Renovate native lookups if GOPROXY is configured and without "direct" explicitly configured.
Add configuration option `detectHostRulesFromEnv`.
BREAKING CHANGE: `hostRules` are no longer automatically derived from env variables such as `NPM_X_TOKEN`. Set `detectHostRulesFromEnv=true` in config to re-enable same functionality.