renovate 41.30.1 → 41.30.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
|
|
6
6
|
"flow-bin": "https://github.com/facebook/flow/blob/master/Changelog.md",
|
7
7
|
"gatsby": "https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/CHANGELOG.md",
|
8
8
|
"react-native": "https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md",
|
9
|
-
"sharp": "https://github.com/lovell/sharp/blob/main/docs/changelog.md",
|
9
|
+
"sharp": "https://github.com/lovell/sharp/blob/main/docs/src/content/docs/changelog.md",
|
10
10
|
"tailwindcss-classnames": "https://github.com/muhammadsammy/tailwindcss-classnames/blob/master/CHANGELOG.md",
|
11
11
|
"zone.js": "https://github.com/angular/angular/blob/master/packages/zone.js/CHANGELOG.md"
|
12
12
|
},
|
@@ -19,8 +19,14 @@ function extractRulesFromCodeOwnersLines(cleanedLines) {
|
|
19
19
|
return internalRules;
|
20
20
|
}
|
21
21
|
function changeCurrentSection(line) {
|
22
|
-
|
23
|
-
|
22
|
+
// Find the last closing bracket to handle section names with approval counts
|
23
|
+
const lastClosingBracketIndex = line.lastIndexOf(']');
|
24
|
+
// Extract section name (including any approval counts)
|
25
|
+
const sectionName = line.substring(0, lastClosingBracketIndex + 1);
|
26
|
+
const remainingLine = line.substring(lastClosingBracketIndex + 1).trim();
|
27
|
+
// Parse any default users after the section name
|
28
|
+
const usernames = remainingLine ? remainingLine.split((0, regex_1.regEx)(/\s+/)) : [];
|
29
|
+
return { name: sectionName, defaultUsers: usernames };
|
24
30
|
}
|
25
31
|
function extractOwnersFromLine(line, defaultUsernames) {
|
26
32
|
const [pattern, ...usernames] = line.split((0, regex_1.regEx)(/\s+/));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"code-owners.js","sourceRoot":"","sources":["../../../../lib/modules/platform/gitlab/code-owners.ts"],"names":[],"mappings":";;AASA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,eAAe,CAAC,IAAY;IACnC,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC","sourcesContent":["import ignore from 'ignore';\nimport { regEx } from '../../../util/regex';\nimport type { FileOwnerRule } from '../types';\n\ninterface CodeOwnersSection {\n name: string;\n defaultUsers: string[];\n}\n\nexport function extractRulesFromCodeOwnersLines(\n cleanedLines: string[],\n): FileOwnerRule[] {\n let currentSection: CodeOwnersSection = { name: '', defaultUsers: [] };\n const internalRules = [];\n\n for (const line of cleanedLines) {\n if (isSectionHeader(line)) {\n currentSection = changeCurrentSection(line);\n } else {\n const rule = extractOwnersFromLine(line, currentSection.defaultUsers);\n internalRules.push(rule);\n }\n }\n\n return internalRules;\n}\n\nfunction changeCurrentSection(line: string): CodeOwnersSection {\n // Find the last closing bracket to handle section names with approval counts\n const lastClosingBracketIndex = line.lastIndexOf(']');\n\n // Extract section name (including any approval counts)\n const sectionName = line.substring(0, lastClosingBracketIndex + 1);\n const remainingLine = line.substring(lastClosingBracketIndex + 1).trim();\n\n // Parse any default users after the section name\n const usernames = remainingLine ? remainingLine.split(regEx(/\\s+/)) : [];\n\n return { name: sectionName, defaultUsers: usernames };\n}\n\nfunction extractOwnersFromLine(\n line: string,\n defaultUsernames: string[],\n): FileOwnerRule {\n const [pattern, ...usernames] = line.split(regEx(/\\s+/));\n const matchPattern = ignore().add(pattern);\n return {\n usernames: usernames.length > 0 ? usernames : defaultUsernames,\n pattern,\n score: pattern.length,\n match: (path: string) => matchPattern.ignores(path),\n };\n}\n\nfunction isSectionHeader(line: string): boolean {\n return line.startsWith('[') || line.startsWith('^[');\n}\n"]}
|