From 3c98e525fa1a8e356edc9bb691b85c1847fa7b52 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 23 Oct 2023 00:51:02 -0400 Subject: [PATCH] Add eslint suggestions action --- .github/workflows/quality.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index b4840d90c4..8bcecd8a5f 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -53,8 +53,16 @@ jobs: - name: Install Node.js dependencies run: npm ci --no-audit - - name: Run eslint - run: npm run lint + + - name: Run eslint (changed) + if: ${{ github.repository == 'jellyfin/jellyfin-web' }} + uses: CatChen/eslint-suggestion-action@d43938d6a379bc9a53c9c6d307e2d43bff0536be # v3.0.2 + with: + github-token: ${{ secrets.JF_BOT_TOKEN }} + + - name: Run eslint (all) + if: always() + run: npx eslint --quiet "." run-stylelint-css: name: Run stylelint (css)