Commit Graph

58 Commits

Author SHA1 Message Date
Michael Kriese 0316a5e62d test: use jest v29 (#17151) 2022-08-16 14:22:29 +02:00
Michael Kriese 2546c03f6c feat(changelogs): defer retrieval if not required for templates (#17073) 2022-08-10 06:19:17 +00:00
Sergei Zharinov 35df2bdb7c fix(template): Use proxy instead of deep clone (#17075) 2022-08-09 17:19:03 +00:00
Hasan Awad 4ead106f81 feat(util/template): add prettyNewMajor and prettyNewVersion field (#16831)
* initial

* expose prettyNewVersion and prettyNewMajor

* tests

* revert change

* simplify

* test naming

* documentation

* documentation

* remove wrong documentation

* expose template finction

* tests naming

* combine condition

* Update docs/usage/templates.md

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

* remove unecessary nullish op

* Update docs/usage/templates.md

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

* Expose prettyVersion and prettyMajor

* documentation

* remove function and use regex

* lexographic order

* tests need fixing

* add tests

* Captial letter

* renaming and prettyNewMajor

* space

* move to upgrade interface

* use new fields where v is prepended manually

* move to interface

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>
2022-08-08 07:50:36 +00:00
RahulGautamSingh 3d31fa371d refactor(lib/util): strict null check for test files (#15812)
* add types for tmp

* expand files in lib/util

* update yarn lock

* Update tsconfig.strict.json

* util/exec

* util/git

* util/http

* Revert "util/exec"

This reverts commit 96cf479a1b.

* update strict.json

* redo util/exec

* revert util/git

* util/merge-confidence

* update util/git

* util/package-rules

* fix util/git

* util/template

* util/

* revert extras

* rm newline

* add tmp back

* apply suggestion from review

* util/cache

* more changes

* Update tsconfig.strict.json

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-19 21:17:46 +00:00
Gabriel-Ladzaretti dd3598c5b8 feat(config/migration): migrate config with a PR (#15122)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-06-18 12:12:31 +00:00
Rhys Arkins 5c803f2e41 fix(config): check for undefined str when validating handlebars helpers (#16047) 2022-06-13 13:34:14 +02:00
Alfred Krohmer 83f54f5a8a feat: allow currentDigest and currentDigestShort in templates (#15951) 2022-06-09 06:58:53 +00:00
Hasan Awad e0053be5d6 fix(process/lookup): pinDigest update type (#14658) 2022-04-29 09:49:15 +02:00
IKEDA Sho 2c087e86f7 feat(template): add lowercase Handlebars helper (#15212) 2022-04-21 09:26:24 +00:00
Michael Kriese 64f5bd5f03 test: enforce lint style rules (#15085) 2022-04-12 14:49:49 +00:00
Rhys Arkins a892b2ae9e feat: expose manager to templating (#14624) 2022-03-12 22:45:37 +01:00
Rhys Arkins 143c9a6751 refactor: rename lookupName -> packageName (#14494)
Renames `lookupName` to be `packageName`.

BREAKING CHANGE: Use `packageName` instead of `lookupName` if interacting with Renovate datasources directly.
2022-03-04 09:04:02 +01:00
Ivan Katliarchuk 9a103cbb51 fix: ignore empty labels during label merge and templating (#14322) 2022-02-21 21:47:51 +01:00
Sergei Zharinov 4fa5eeb8bb refactor(util/template): Strict null checks (#14031) 2022-02-06 09:03:07 +01:00
Rhys Arkins 2e35968146 feat(pr): display latest pending update in upgrades table (#13768) 2022-01-24 11:09:27 +00: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
Marina 7770888184 feat: Add 'and', 'or' and 'containsString' to handlebar helpers (#13341) 2022-01-06 15:24:42 +00: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
Rhys Arkins a86eceb7d4 fix: default empty string for replace 2021-12-10 13:55:13 +01:00
RahulGautamSingh ee2e155f1f fix: modify regex to be re2 compatbile (#12778)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-11-29 19:16:05 +00:00
Maksim 06d8c27043 refactor: global config (#12743)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-11-23 21:10:45 +01:00
markussiebert c80c7f3d0c feat: add stringToPrettyJSON handlebars function (#12643) 2021-11-14 19:49:05 +00:00
Jamie Magee 98e7029090 feat: replace deprecated dependencies with their replacements (#5558)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-11-12 08:10:52 +00:00
RahulGautamSingh 91f067b39f fix: refactor regex to use re2 part3 (#12283)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-10-27 14:37:11 +00:00
Michael Kriese 11aa3baf2e test: use codeql compatible token / passwords (#11297) 2021-09-09 16:17:05 +02:00
Sergei Zharinov 5f4b9f9a3a test: Fix test descriptions and enforce it via new linting rule (#11285) 2021-08-18 05:46:56 +00:00
Rhys Arkins 9150854d75 chore: rename config/admin -> config/global 2021-08-17 07:57:45 +02:00
Rhys Arkins bf69924b78 refactor: rename config admin functions to global 2021-08-17 07:57:45 +02:00
Rhys Arkins 750bc1656e refactor: config/definitions -> config/options 2021-08-17 07:57:45 +02:00
Rhys Arkins 9aaadd1f4a feat: sourceRepoSlug (#9916) 2021-05-08 15:57:14 +02:00
Rhys Arkins 13112b75bb fix: separate patch branchName only if separateMinorPatch=true (#9901) 2021-05-07 10:01:16 +00:00
Sergei Zharinov ce51f05cef feat(test): Detect test utils callers and simplify helpers (#9707) 2021-04-26 16:15:03 +02:00
Sergei Zharinov 72d97ec2f4 refactor(workers): Enforce getName usage (#9525) 2021-04-13 10:25:51 +00:00
Rhys Arkins edfac73a08 refactor: remove depNameShort (#9114) 2021-03-13 14:28:46 +01:00
Rhys Arkins 32440f26a4 refactor: toVersion -> newVersion (#8711) 2021-02-16 12:33:44 +01:00
Rhys Arkins 0869d6e8d7 refactor: remove newVersion usage (#8710) 2021-02-16 11:26:46 +01:00
Rhys Arkins a8819c4610 refactor: fromVersion -> currentVersion (#8709) 2021-02-16 10:52:05 +01:00
Rhys Arkins acf57144f8 refactor: remove currentVersion (#8708) 2021-02-16 09:43:38 +01:00
Rhys Arkins 855db036d5 fix: rename baseDir to packageFileDir for templating (#8625) 2021-02-10 23:39:06 +00:00
Rhys Arkins 4e2c33f10e feat: admin config init (#8546) 2021-02-05 09:20:47 +01:00
Rhys Arkins 1914a2eaf7 fix: expose more fields to templates 2021-02-03 15:02:36 +01:00
Rhys Arkins 42101cf6b1 fix: expose more template options 2021-02-03 10:46:32 +01:00
Rhys Arkins 3d86ac632f fix: include more template fields 2021-02-03 09:45:08 +01:00
Rhys Arkins de8ea37c27 feat: warn about disallowed template variables (#8512) 2021-02-03 09:30:49 +01:00
Rhys Arkins 7c40d2652d feat: template field filtering (#8504) 2021-02-02 18:11:27 +01:00
Shunsuke Suzuki de852ac7de feat: support template in labels (#8138)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-12-30 12:27:05 +01:00
renovate[bot] 6c414e7736 chore(deps): update dependency eslint-config-prettier to v7 (#7940)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-12-11 09:35:56 +01:00
Rhys Arkins 7651d2e420 feat: additionalBranchPrefix 2020-09-01 14:36:10 +02:00
Rhys Arkins 0ce9837b9d fix: Revert "feat: additionalBranchPrefix"
This reverts commit 9385fb557b.
2020-08-31 09:33:34 +02:00