Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit b0b4c86

Browse files
Merge pull request #5931 from department-of-veterans-affairs/feat/component-bug-metrics
Add component bug metrics to dashboard
2 parents 4393278 + 46e198c commit b0b4c86

7 files changed

Lines changed: 2000 additions & 2 deletions

File tree

.github/workflows/metrics-dashboard.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,15 @@ jobs:
210210
env:
211211
GITHUB_TOKEN: ${{ secrets.VADS_WORKFLOWS }}
212212

213+
- name: Collect component bug metrics
214+
continue-on-error: true
215+
run: |
216+
echo "Starting component bug metrics collection..."
217+
node scripts/collect-component-bug-metrics.js
218+
echo "Component bug metrics collection completed"
219+
env:
220+
GITHUB_TOKEN: ${{ secrets.VADS_WORKFLOWS }}
221+
213222
- name: Verify generated data files
214223
run: |
215224
echo "Checking for generated files..."
@@ -313,6 +322,21 @@ jobs:
313322
echo "ℹ️ imposter-metrics.json not found for Jekyll (imposter metrics collection may have been skipped)"
314323
fi
315324
325+
# Check component bug metrics in both locations (non-blocking since collection has continue-on-error)
326+
if [ -f "src/assets/data/metrics/component-bug-metrics.json" ]; then
327+
echo "✅ component-bug-metrics.json generated successfully in assets"
328+
echo "File size: $(du -h src/assets/data/metrics/component-bug-metrics.json)"
329+
else
330+
echo "ℹ️ component-bug-metrics.json not found in assets (collection may have been skipped)"
331+
fi
332+
333+
if [ -f "src/_data/metrics/component-bug-metrics.json" ]; then
334+
echo "✅ component-bug-metrics.json also generated for Jekyll"
335+
echo "File size: $(du -h src/_data/metrics/component-bug-metrics.json)"
336+
else
337+
echo "ℹ️ component-bug-metrics.json not found for Jekyll (collection may have been skipped)"
338+
fi
339+
316340
- name: Check for changes
317341
id: git-check
318342
run: |
@@ -326,11 +350,13 @@ jobs:
326350
src/assets/data/metrics/component-usage.json \
327351
src/assets/data/metrics/governance-index.json \
328352
src/assets/data/metrics/imposter-metrics.json \
353+
src/assets/data/metrics/component-bug-metrics.json \
329354
src/_data/metrics/issue-metrics.json \
330355
src/_data/metrics/experimental-metrics.json \
331356
src/_data/metrics/component-usage.json \
332357
src/_data/metrics/governance-index.json \
333-
src/_data/metrics/imposter-metrics.json; do
358+
src/_data/metrics/imposter-metrics.json \
359+
src/_data/metrics/component-bug-metrics.json; do
334360
if [ -f "$file" ]; then
335361
git add "$file"
336362
fi

0 commit comments

Comments
 (0)