Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
chore: do not check for CLI plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
daphne-sfdc committed May 15, 2024
1 parent b20d892 commit f0270fa
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/actions/validate-issue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f0270fa

Please sign in to comment.