renovate 43.209.2 → 43.209.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.
|
@@ -27,7 +27,7 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
27
27
|
};
|
|
28
28
|
security_vulnerability: {
|
|
29
29
|
package: {
|
|
30
|
-
ecosystem: "composer" | "maven" | "npm" | "rust" | "go" | "rubygems" | "
|
|
30
|
+
ecosystem: "composer" | "maven" | "npm" | "rust" | "go" | "rubygems" | "actions" | "nuget" | "pip";
|
|
31
31
|
name: string;
|
|
32
32
|
};
|
|
33
33
|
severity: "low" | "medium" | "high" | "critical";
|
|
@@ -66,7 +66,7 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
66
66
|
};
|
|
67
67
|
security_vulnerability: {
|
|
68
68
|
package: {
|
|
69
|
-
ecosystem: "composer" | "maven" | "npm" | "rust" | "go" | "rubygems" | "
|
|
69
|
+
ecosystem: "composer" | "maven" | "npm" | "rust" | "go" | "rubygems" | "actions" | "nuget" | "pip";
|
|
70
70
|
name: string;
|
|
71
71
|
};
|
|
72
72
|
severity: "low" | "medium" | "high" | "critical";
|
|
@@ -105,7 +105,7 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
105
105
|
};
|
|
106
106
|
security_vulnerability: {
|
|
107
107
|
package: {
|
|
108
|
-
ecosystem: "composer" | "maven" | "npm" | "rust" | "go" | "rubygems" | "
|
|
108
|
+
ecosystem: "composer" | "maven" | "npm" | "rust" | "go" | "rubygems" | "actions" | "nuget" | "pip";
|
|
109
109
|
name: string;
|
|
110
110
|
};
|
|
111
111
|
severity: "low" | "medium" | "high" | "critical";
|
|
@@ -144,7 +144,7 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
144
144
|
};
|
|
145
145
|
security_vulnerability: {
|
|
146
146
|
package: {
|
|
147
|
-
ecosystem: "composer" | "maven" | "npm" | "rust" | "go" | "rubygems" | "
|
|
147
|
+
ecosystem: "composer" | "maven" | "npm" | "rust" | "go" | "rubygems" | "actions" | "nuget" | "pip";
|
|
148
148
|
name: string;
|
|
149
149
|
};
|
|
150
150
|
severity: "low" | "medium" | "high" | "critical";
|
|
@@ -28,7 +28,7 @@ function getPrConfigDescription(config) {
|
|
|
28
28
|
}
|
|
29
29
|
function scheduleToString(schedule, timezone) {
|
|
30
30
|
const scheduleLines = [];
|
|
31
|
-
if (schedule && schedule[0] !== "at any time") {
|
|
31
|
+
if (schedule?.length && schedule[0] !== "at any time") {
|
|
32
32
|
const r = getReadableCronSchedule(schedule);
|
|
33
33
|
if (r) scheduleLines.push(...r);
|
|
34
34
|
else scheduleLines.push(`"${String(schedule)}"`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-description.js","names":[],"sources":["../../../../../../lib/workers/repository/update/pr/body/config-description.ts"],"sourcesContent":["import { CronPattern } from 'croner';\nimport cronstrue from 'cronstrue';\nimport { emojify } from '../../../../../util/emoji.ts';\nimport { capitalize } from '../../../../../util/string.ts';\nimport type { BranchConfig } from '../../../../types.ts';\n\nexport function getPrConfigDescription(config: BranchConfig): string {\n let prBody = `\\n\\n---\\n\\n### Configuration\\n\\n`;\n prBody += emojify(`:date: **Schedule**: `);\n\n if (config.timezone) {\n prBody += `(in timezone ${config.timezone})`;\n } else {\n prBody += `(UTC)`;\n }\n prBody += '\\n\\n'; // to ensure that Markdown renderers will note that the Schedule is a different element to the list\n\n prBody += `- Branch creation\\n${scheduleToString(config.schedule, config.timezone)}\\n`;\n prBody += `- Automerge\\n${scheduleToString(config.automergeSchedule, config.timezone)}\\n`;\n\n prBody += '\\n\\n';\n prBody += emojify(':vertical_traffic_light: **Automerge**: ');\n if (config.automerge) {\n prBody += 'Enabled.';\n } else if (config.automergedPreviously) {\n prBody += 'Disabled because a matching PR was automerged previously.';\n } else {\n prBody +=\n 'Disabled by config. Please merge this manually once you are satisfied.';\n }\n prBody += '\\n\\n';\n prBody += emojify(':recycle: **Rebasing**: ');\n if (config.rebaseWhen === 'behind-base-branch') {\n prBody += 'Whenever PR is behind base branch';\n } else if (config.rebaseWhen === 'never' || config.stopUpdating) {\n prBody += 'Never';\n } else {\n prBody += 'Whenever PR becomes conflicted';\n }\n prBody += `, or you tick the rebase/retry checkbox.\\n\\n`;\n if (config.recreateClosed) {\n prBody += emojify(\n `:ghost: **Immortal**: This PR will be recreated if closed unmerged. Get [config help](${config.productLinks?.help}) if that's undesired.\\n\\n`,\n );\n } else {\n prBody += emojify(\n `:no_bell: **Ignore**: Close this PR and you won't be reminded about ${\n config.upgrades.length === 1 ? 'this update' : 'these updates'\n } again.\\n\\n`,\n );\n }\n return prBody;\n}\n\nfunction scheduleToString(\n schedule: string[] | undefined,\n timezone: string | undefined,\n): string {\n const scheduleLines = [];\n if (schedule && schedule[0] !== 'at any time') {\n const r = getReadableCronSchedule(schedule);\n if (r) {\n scheduleLines.push(...r);\n } else {\n scheduleLines.push(`\"${String(schedule)}\"`);\n }\n } else {\n scheduleLines.push('At any time (no schedule defined)');\n }\n return ` - ${scheduleLines.join('\\n - ')}`;\n}\n\n/**\n * Return human-readable cron schedule summary if the schedule is a valid cron\n * else return null\n */\nfunction getReadableCronSchedule(scheduleText: string[]): string[] | null {\n // assuming if one schedule is cron the others in the array will be cron too\n try {\n new CronPattern(scheduleText[0]); // validate cron\n return scheduleText.map(\n (cron) =>\n `${capitalize(\n cronstrue\n .toString(cron, {\n throwExceptionOnParseError: false,\n })\n .replace('Every minute, ', ''),\n )} (\\`${cron}\\`)`,\n );\n } catch {\n return null;\n }\n}\n"],"mappings":";;;;;AAMA,SAAgB,uBAAuB,QAA8B;CACnE,IAAI,SAAS;CACb,UAAU,QAAQ,uBAAuB;CAEzC,IAAI,OAAO,UACT,UAAU,gBAAgB,OAAO,SAAS;MAE1C,UAAU;CAEZ,UAAU;CAEV,UAAU,sBAAsB,iBAAiB,OAAO,UAAU,OAAO,QAAQ,EAAE;CACnF,UAAU,gBAAgB,iBAAiB,OAAO,mBAAmB,OAAO,QAAQ,EAAE;CAEtF,UAAU;CACV,UAAU,QAAQ,0CAA0C;CAC5D,IAAI,OAAO,WACT,UAAU;MACL,IAAI,OAAO,sBAChB,UAAU;MAEV,UACE;CAEJ,UAAU;CACV,UAAU,QAAQ,0BAA0B;CAC5C,IAAI,OAAO,eAAe,sBACxB,UAAU;MACL,IAAI,OAAO,eAAe,WAAW,OAAO,cACjD,UAAU;MAEV,UAAU;CAEZ,UAAU;CACV,IAAI,OAAO,gBACT,UAAU,QACR,yFAAyF,OAAO,cAAc,KAAK,2BACrH;MAEA,UAAU,QACR,uEACE,OAAO,SAAS,WAAW,IAAI,gBAAgB,gBAChD,YACH;CAEF,OAAO;AACT;AAEA,SAAS,iBACP,UACA,UACQ;CACR,MAAM,gBAAgB,CAAC;CACvB,IAAI,
|
|
1
|
+
{"version":3,"file":"config-description.js","names":[],"sources":["../../../../../../lib/workers/repository/update/pr/body/config-description.ts"],"sourcesContent":["import { CronPattern } from 'croner';\nimport cronstrue from 'cronstrue';\nimport { emojify } from '../../../../../util/emoji.ts';\nimport { capitalize } from '../../../../../util/string.ts';\nimport type { BranchConfig } from '../../../../types.ts';\n\nexport function getPrConfigDescription(config: BranchConfig): string {\n let prBody = `\\n\\n---\\n\\n### Configuration\\n\\n`;\n prBody += emojify(`:date: **Schedule**: `);\n\n if (config.timezone) {\n prBody += `(in timezone ${config.timezone})`;\n } else {\n prBody += `(UTC)`;\n }\n prBody += '\\n\\n'; // to ensure that Markdown renderers will note that the Schedule is a different element to the list\n\n prBody += `- Branch creation\\n${scheduleToString(config.schedule, config.timezone)}\\n`;\n prBody += `- Automerge\\n${scheduleToString(config.automergeSchedule, config.timezone)}\\n`;\n\n prBody += '\\n\\n';\n prBody += emojify(':vertical_traffic_light: **Automerge**: ');\n if (config.automerge) {\n prBody += 'Enabled.';\n } else if (config.automergedPreviously) {\n prBody += 'Disabled because a matching PR was automerged previously.';\n } else {\n prBody +=\n 'Disabled by config. Please merge this manually once you are satisfied.';\n }\n prBody += '\\n\\n';\n prBody += emojify(':recycle: **Rebasing**: ');\n if (config.rebaseWhen === 'behind-base-branch') {\n prBody += 'Whenever PR is behind base branch';\n } else if (config.rebaseWhen === 'never' || config.stopUpdating) {\n prBody += 'Never';\n } else {\n prBody += 'Whenever PR becomes conflicted';\n }\n prBody += `, or you tick the rebase/retry checkbox.\\n\\n`;\n if (config.recreateClosed) {\n prBody += emojify(\n `:ghost: **Immortal**: This PR will be recreated if closed unmerged. Get [config help](${config.productLinks?.help}) if that's undesired.\\n\\n`,\n );\n } else {\n prBody += emojify(\n `:no_bell: **Ignore**: Close this PR and you won't be reminded about ${\n config.upgrades.length === 1 ? 'this update' : 'these updates'\n } again.\\n\\n`,\n );\n }\n return prBody;\n}\n\nfunction scheduleToString(\n schedule: string[] | undefined,\n timezone: string | undefined,\n): string {\n const scheduleLines = [];\n if (schedule?.length && schedule[0] !== 'at any time') {\n const r = getReadableCronSchedule(schedule);\n if (r) {\n scheduleLines.push(...r);\n } else {\n scheduleLines.push(`\"${String(schedule)}\"`);\n }\n } else {\n scheduleLines.push('At any time (no schedule defined)');\n }\n return ` - ${scheduleLines.join('\\n - ')}`;\n}\n\n/**\n * Return human-readable cron schedule summary if the schedule is a valid cron\n * else return null\n */\nfunction getReadableCronSchedule(scheduleText: string[]): string[] | null {\n // assuming if one schedule is cron the others in the array will be cron too\n try {\n new CronPattern(scheduleText[0]); // validate cron\n return scheduleText.map(\n (cron) =>\n `${capitalize(\n cronstrue\n .toString(cron, {\n throwExceptionOnParseError: false,\n })\n .replace('Every minute, ', ''),\n )} (\\`${cron}\\`)`,\n );\n } catch {\n return null;\n }\n}\n"],"mappings":";;;;;AAMA,SAAgB,uBAAuB,QAA8B;CACnE,IAAI,SAAS;CACb,UAAU,QAAQ,uBAAuB;CAEzC,IAAI,OAAO,UACT,UAAU,gBAAgB,OAAO,SAAS;MAE1C,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