Fix the nightly report summaries (#1251)

* Fix the nightly report summaries

* Fix workflow trigger

* Fix advisory regex to handle optional variation selector

Match ℹ with or without the trailing U+FE0F variation selector so advisory counts are reliable regardless of output encoding.
This commit is contained in:
Jan Krivanek
2026-04-02 01:01:32 +02:00
committed by GitHub
parent d79183139a
commit ca87cfcc9e
2 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
name: Check PR Target Branch
on:
pull_request:
pull_request_target:
branches: [main]
types: [opened]

View File

@@ -158,10 +158,11 @@ jobs:
const codeowners = parseCodeowners();
// Count findings
// The skill-validator uses emoji markers: ❌ for errors, ⚠ for warnings, for advisories
const combined = skillsOutput + '\n' + agentsOutput;
const errorCount = (combined.match(/\bError\b/gi) || []).length;
const warningCount = (combined.match(/\bWarning\b/gi) || []).length;
const advisoryCount = (combined.match(/\bAdvisory\b/gi) || []).length;
const errorCount = (combined.match(//g) || []).length;
const warningCount = (combined.match(//g) || []).length;
const advisoryCount = (combined.match(/\uFE0F?/g) || []).length;
// Count total skills & agents checked
let skillDirs = [];