From a6d5757d317e6589f17ea82ced0a3f143a8b3a8a Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 29 May 2024 05:17:58 -1000 Subject: [PATCH] docs: update regex to custom managers (#29044) --- lib/constants/category.ts | 1 + lib/modules/manager/custom/regex/index.ts | 3 +++ lib/modules/manager/custom/regex/readme.md | 2 +- tools/docs/manager.ts | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/constants/category.ts b/lib/constants/category.ts index c908ccff4ec37c..6054d1c083b0bc 100644 --- a/lib/constants/category.ts +++ b/lib/constants/category.ts @@ -6,6 +6,7 @@ const Categories = [ 'c', 'cd', 'ci', + 'custom', 'dart', 'docker', 'dotnet', diff --git a/lib/modules/manager/custom/regex/index.ts b/lib/modules/manager/custom/regex/index.ts index 603591bf79e9a1..10ddca3d0dd5d5 100644 --- a/lib/modules/manager/custom/regex/index.ts +++ b/lib/modules/manager/custom/regex/index.ts @@ -1,4 +1,5 @@ import is from '@sindresorhus/is'; +import type { Category } from '../../../../constants'; import type { ExtractConfig, PackageDependency, @@ -9,6 +10,8 @@ import { handleAny, handleCombination, handleRecursive } from './strategies'; import type { RegexManagerConfig, RegexManagerTemplates } from './types'; import { validMatchFields } from './utils'; +export const categories: Category[] = ['custom']; + export const defaultConfig = { pinDigests: false, }; diff --git a/lib/modules/manager/custom/regex/readme.md b/lib/modules/manager/custom/regex/readme.md index add7b7d1142aff..c612cce62ec108 100644 --- a/lib/modules/manager/custom/regex/readme.md +++ b/lib/modules/manager/custom/regex/readme.md @@ -1,4 +1,4 @@ -With the `regex` manager you can configure Renovate so it finds dependencies that are not detected by its other built-in package managers. +With `customManagers` using `regex` you can configure Renovate so it finds dependencies that are not detected by its other built-in package managers. Renovate supports the `ECMAScript (JavaScript)` flavor of regex. diff --git a/tools/docs/manager.ts b/tools/docs/manager.ts index 4cd2c0217bb609..34eb30e5c9d029 100644 --- a/tools/docs/manager.ts +++ b/tools/docs/manager.ts @@ -41,6 +41,7 @@ export const CategoryNames: Record = { c: 'C and C++', cd: 'Continuous Delivery', ci: 'Continuous Integration', + custom: 'Custom Managers', dart: 'Dart', docker: 'Docker', dotnet: '.NET',