Skip to content

Commit 4442e6e

Browse files
Update check.js - adding of new labels added (#4766)
* Update check.js - adding of new labels added * Potential fix for code scanning alert no. 102: Syntax error Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent f8c2e24 commit 4442e6e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/check.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,7 @@ async function doIt() {
368368
const statistic = await getUrl('https://www.iobroker.net/data/statistics.json');
369369

370370
comments.push({text:`\n`, noDecorate: true});
371-
//comments.push({text:`Adapter releases: https://www.iobroker.dev/adapter/${adapterName}/releases`, noDecorate: true});
372371
comments.push({text:`Adapter releases: https://www.iobroker.dev/adapter/${owner}/${adapter}/releases`, noDecorate: true});
373-
//comments.push({text:`Adapter statistic: https://www.iobroker.dev/adapter/${adapterName}/statistics`, noDecorate: true});
374372
comments.push({text:`Adapter statistic: https://www.iobroker.dev/adapter/${owner}/${adapter}/statistics`, noDecorate: true});
375373

376374
const now = new Date();
@@ -407,12 +405,18 @@ async function doIt() {
407405

408406
comments.push({text:``, noDecorate: true});
409407
comments.push({text:`stable release not yet available`, noDecorate: true});
408+
await addLabel(prID, ['new at STABLE']);
410409

411410
}
412411

413-
414412
comments.push({text:``, noDecorate: true});
415413
comments.push({text:`**Please verify that this PR really tries to update to release ${latestRelease}!**\n`, noDecorate: true});
414+
415+
} else {
416+
const latest = await getUrl('http://repo.iobroker.live/sources-dist-latest.json');
417+
if (!latest[adapterName]) {
418+
await addLabel(prID, ['new at LATEST']);
419+
}
416420
}
417421
}
418422
if (!someChecked) {

0 commit comments

Comments
 (0)