From 1accd24836f250c6cfa799b27690c14b618f93e7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 21 Sep 2025 23:24:17 +0000 Subject: [PATCH 1/2] Initial plan From eddb3ce995d215019d817f6eb4baddf571605c47 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 21 Sep 2025 23:33:44 +0000 Subject: [PATCH 2/2] Fix lint automation workflow to correctly handle no-lint-errors case Co-authored-by: BorDevTech <73800053+BorDevTech@users.noreply.github.com> --- .github/workflows/lint-automation.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint-automation.yml b/.github/workflows/lint-automation.yml index a1d9d8f..926f498 100644 --- a/.github/workflows/lint-automation.yml +++ b/.github/workflows/lint-automation.yml @@ -49,12 +49,18 @@ jobs: # Run the lint analyzer npx tsx scripts/lint-automation/lint-analyzer.ts || true - # Check if we generated a report + # Check if we generated a report and if there are any issues if [ -f "lint-analysis-report.json" ]; then ISSUES_COUNT=$(jq '.summary.totalIssues' lint-analysis-report.json) - echo "has-issues=true" >> $GITHUB_OUTPUT echo "issues-count=${ISSUES_COUNT}" >> $GITHUB_OUTPUT - echo "📊 Found ${ISSUES_COUNT} lint issues" + + if [ "${ISSUES_COUNT}" -gt "0" ]; then + echo "has-issues=true" >> $GITHUB_OUTPUT + echo "📊 Found ${ISSUES_COUNT} lint issues" + else + echo "has-issues=false" >> $GITHUB_OUTPUT + echo "✅ No lint issues found!" + fi else echo "has-issues=false" >> $GITHUB_OUTPUT echo "issues-count=0" >> $GITHUB_OUTPUT