* docs(manager/cocoapods): Configure `ModuleApi`'s displayName and url
* Revert export order
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* 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>
* 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>
* 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>
* 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>
* refactor(github): Introduce misc `query` function for GraphQL
* Update lib/modules/datasource/github-releases/cache/cache-base.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* fix(datasource/pypi): use pypi api instead of the simple variant
* fix(datasource/pypi): use pypi api instead of the simple variant
* fix(datasource/pypi): use pypi api instead of the simple variant
* fix(datasource/pypi): use pypi api instead of the simple variant
* Update lib/modules/datasource/pypi/index.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* feat(helm): improve fallback on sourceUrl selection
* fix(helm): use home and source from latest release
instead of the first. Otherwise those fields can't be ever changed.
* test(helm): test charts with no home metadata
* test(helm): test releases semver sorting
* fix(helm): select last release by semver
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* fix(type): make homeMatch keys optional
* Fixes
Co-authored-by: Stefano Zaninetta <stefano.zaninetta@nagra.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* update
Allow either tag or version for images in helm charts
* undo
* lint
* undo
* exports
* rewrite
* add spaces for lint
* chore: prettier fix
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* add tests
* add support for kubernetes image resources
* Update lib/modules/manager/terraform/extract.ts
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
* added unknown resource
* added Kubernetes to Readme
* missed one spot in the Readme
* Update lib/modules/manager/terraform/readme.md
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
* switch to toMatchObject() in tests
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* refactor: use gitea env variable endpoint without api path appendix
* refactor: use regex for api path trimming
* refacotr: move api path constant to gitea-helper
* refactor: consider end of string for api path trimming
* refactor: use baseUrl in gitea helper tests
* test: use toEqual instead of snapshot test
* refactor: update gitea default endpoint
* test: update gitea base url
* test: update init platform test
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* test: fix linting
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* 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>
* refactor(versioning/distro): Move date handling into distro.ts
- moved all time/date handling into distro.ts
- date freeze for ubuntu/distro unit tests
* refactor(versioning/distro): Move date handling into distro.ts
- restore deleted test cases for ubuntu unit tests
* refactor(versioning/distro): Move date handling into distro.ts
- removed distro time mocking
* refactor(versioning/distro): Move date handling into distro.ts
- DistroInfo constructor is no longer date dependent
- Restored DateTime mock
* refactor(versioning/distro): Move date handling into distro.ts
- convert a while to a for loop
* refactor(versioning/distro): Move date handling into distro.ts
- unit tests went further back in time
* Update lib/modules/versioning/distro.spec.ts
* refactor(versioning/distro): Move date handling into distro.ts
- cr changes
* refactor(versioning/distro): Move date handling into distro.ts
- cr changes
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Signed-off-by: Jack Andersen <jandersen@plaid.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
distro-info refactor
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
styling
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
distro-info refactor
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
styling
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
use https://debian.pages.debian.net/distro-info-data/ubuntu.csv as distro info data
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
cr changes and migrated from mjs to ts
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
added a crude way to prevent writing corrupted data
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
lint fixes
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
cr changes and migrated from mjs to ts
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
cr changes
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
dynamically check if stable/released.
22.04 release for example
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
fixed JSON order
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
removed ts.ignore
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
cr changes
* refactor(tools/distro-info): for later use in ubuntu and debian versioning
cr changes
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Move getting repo git url logic into a function similar to gitlab implementation as per request in another PR:
https://github.com/renovatebot/renovate/pull/13875#issuecomment-1023980178
* Bitbucket server - Move getRepoGitUrl into utils
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* feat: add flutter datasource
* refactor: rename flutter datasource to flutter-version
* feat: update to handle duplicate flutter releases
* refactor: tidy up flutter version datasource class names and imports
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Apply suggestions from code review
* style: add newline to test file
* refactor: move regex to util module
* refactor: tidy up stable version regex
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
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>
* Change sha256 if it exists in the properties
* update sha to new value and then run update
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