Skip to content

fix: validate-issue action - update getMinimumVSCodeVersion() to target VSCode "main" branch releases only, and correctly parse the version tag#7218

Open
AndrewStopchenko-SO wants to merge 1 commit intoforcedotcom:developfrom
AndrewStopchenko-SO:fix-validate-issue_get-latest-vscode-version
Open

fix: validate-issue action - update getMinimumVSCodeVersion() to target VSCode "main" branch releases only, and correctly parse the version tag#7218
AndrewStopchenko-SO wants to merge 1 commit intoforcedotcom:developfrom
AndrewStopchenko-SO:fix-validate-issue_get-latest-vscode-version

Conversation

@AndrewStopchenko-SO
Copy link
Copy Markdown
Contributor

What does this PR do?

VSCode releases turns out to have e.g. Copilot releases included, where a different tag versioning is applied - see the v0.44.1 Copilot release which shows as the latest at the moment.

As a result, retrieving "https://api.github.com/repos/microsoft/vscode/releases/latest" and extracting release.tag_name caused latestVersion = "v0.44.1" => getMinimumVSCodeVersion() returns "NaN.42.1" version value, which breaks the semver comparisons.

What issues does this PR fix or reference?

[skip-validate-pr]

Functionality Before

  • An error occurs when posting comments or creating issue, since latest VSCode release "v0.44.1" tag produces invalid "NaN.42.1" version value as expected minimum VSCode version, and it throws an error when used with the semver.gt(ver1, ver2) function.
image

Functionality After

  • Retrieve last 5 VSCode repo's releases and only check releases built off the VSCode repo's main branch. If no such releases found - fallback to the latest release.
  • Apply semver.coerce(release.tag_name) so that even the Copilot's release tag "v0.44.1" gets converted into the "0.44.1" proper version format before processing.

@salesforce-cla
Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @AndrewNR to sign the Salesforce Inc. Contributor License Agreement.

@AndrewStopchenko-SO AndrewStopchenko-SO force-pushed the fix-validate-issue_get-latest-vscode-version branch from fb86f81 to 408bff3 Compare April 17, 2026 17:57
… from main branch; run semver.coerce() on release.tag_name to ensure SemVer version format.
@AndrewStopchenko-SO AndrewStopchenko-SO force-pushed the fix-validate-issue_get-latest-vscode-version branch from 408bff3 to 703aa96 Compare April 17, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant