From 18527fcc5ce10fc1fd240a29cf318e39a6aec843 Mon Sep 17 00:00:00 2001 From: Krzysztof Moch Date: Mon, 30 Jun 2025 13:21:35 +0200 Subject: [PATCH] chore(infra): update validation script (#4586) --- .github/scripts/validate.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/scripts/validate.js b/.github/scripts/validate.js index 40bbdae7..59a8776a 100644 --- a/.github/scripts/validate.js +++ b/.github/scripts/validate.js @@ -25,6 +25,8 @@ const BOT_LABELS = [ 'Missing Repro', 'Waiting for Review', 'Newer Version Available', + '6.x.x', + '7.0', ...Object.values(PLATFORM_LABELS), ]; @@ -124,6 +126,17 @@ const validateBugReport = async (body, labels) => { if (!isVersionValid) { labels.add('missing-version'); + } else { + // Add version-specific labels + const versionMatch = words.find((word) => versionPattern.test(word)); + if (versionMatch) { + const majorVersion = versionMatch.split('.')[0]; + if (majorVersion === '6') { + labels.add('6.x.x'); + } else if (majorVersion === '7') { + labels.add('7.0'); + } + } } const latestVersion = await checkLatestVersion();