From f0270fa0693bf29425783347f5968b2e1be6a699 Mon Sep 17 00:00:00 2001 From: Daphne Yang Date: Wed, 15 May 2024 17:03:20 -0400 Subject: [PATCH] chore: do not check for CLI plugins --- .github/actions/validate-issue/src/index.ts | 29 ++++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/actions/validate-issue/src/index.ts b/.github/actions/validate-issue/src/index.ts index 95f0858a..c150d442 100644 --- a/.github/actions/validate-issue/src/index.ts +++ b/.github/actions/validate-issue/src/index.ts @@ -63,7 +63,7 @@ async function run() { const sfVersionRegex = /@salesforce\/cli\/([0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]+.[0-9]+)?)/g; const sfdxVersionRegex = /sfdx-cli\/([0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]+.[0-9]+)?)/g; - const pluginVersionsRegex = /pluginVersions|Plugin Version:/; + // const pluginVersionsRegex = /pluginVersions|Plugin Version:/; const nodeVersionRegex = /node-v(\d{2})\.\d+\.\d+/g; // Search all bodies and get an array of all versions found (first capture group) @@ -83,16 +83,19 @@ async function run() { ) .flat(); // If we match pluginVersionRegex anywhere, we assume the user has provided the full --verbose output - const pluginVersionsIncluded = bodies.some((body) => - body?.match(pluginVersionsRegex) - ); + // const pluginVersionsIncluded = bodies.some((body) => + // body?.match(pluginVersionsRegex) + // ); console.log("sfVersions", sfVersions); console.log("sfdxVersions", sfdxVersions); - console.log("pluginVersionsIncluded", pluginVersionsIncluded); + // console.log("pluginVersionsIncluded", pluginVersionsIncluded); console.log("nodeVersions", nodeVersions); + // if ( + // (sfVersions.length > 0 || sfdxVersions.length > 0) && + // pluginVersionsIncluded + // ) { if ( - (sfVersions.length > 0 || sfdxVersions.length > 0) && - pluginVersionsIncluded + (sfVersions.length > 0 || sfdxVersions.length > 0) ) { // FUTURE TODO: // - Check for bundled plugins that are user installed (user) or linked (link) @@ -240,12 +243,12 @@ async function run() { } } - function getLatestVersion(plugin: string) { - const distTags = execSync( - `npm view ${plugin} dist-tags --json` - ).toString(); - return JSON.parse(distTags).latest; - } + // function getLatestVersion(plugin: string) { + // const distTags = execSync( + // `npm view ${plugin} dist-tags --json` + // ).toString(); + // return JSON.parse(distTags).latest; + // } function getFile( filename: string,