mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-06-08 04:42:51 +00:00
chore(infra): update validation script (#4586)
This commit is contained in:
@@ -25,6 +25,8 @@ const BOT_LABELS = [
|
|||||||
'Missing Repro',
|
'Missing Repro',
|
||||||
'Waiting for Review',
|
'Waiting for Review',
|
||||||
'Newer Version Available',
|
'Newer Version Available',
|
||||||
|
'6.x.x',
|
||||||
|
'7.0',
|
||||||
...Object.values(PLATFORM_LABELS),
|
...Object.values(PLATFORM_LABELS),
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -124,6 +126,17 @@ const validateBugReport = async (body, labels) => {
|
|||||||
|
|
||||||
if (!isVersionValid) {
|
if (!isVersionValid) {
|
||||||
labels.add('missing-version');
|
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();
|
const latestVersion = await checkLatestVersion();
|
||||||
|
|||||||
Reference in New Issue
Block a user