File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 7777
7878 - name : 📝 Annotate Code Linting Results
7979 if : always()
80+ id : eslint-annotate
8081 continue-on-error : true
81- uses : ataylorme /eslint-annotate-action@v3
82+ uses : MrFlashAccount /eslint-annotate-action
8283 with :
8384 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8485 report-json : " ./**/eslint_report.json"
@@ -103,6 +104,26 @@ jobs:
103104 **/.eslintcache
104105 **/node_modules/.vite
105106
107+ - name : Comment on PR
108+ uses : actions/github-script@v7
109+ if : always()
110+ with :
111+ github-token : ${{ secrets.GITHUB_TOKEN }}
112+ script : |
113+ const { setMessage } = await import('${{ github.workspace }}/app/gui/scripts/ci/set-message.js')
114+
115+ await setMessage({
116+ id: "eslint-comment",
117+ github,
118+ repo: context.repo,
119+ prNumber: context.payload.pull_request.number,
120+ header: "## 🧰 ESLint Results",
121+ body: `
122+ ### ESLint
123+ ${{steps.eslint-annotate.outputs.markdown}}
124+ `,
125+ })
126+
106127 - name : ❌ Fail if any check failed
107128 if : always() && (steps.lint.outcome == 'failure' || steps.compile.outcome == 'failure' || steps.typecheck.outcome == 'failure' || steps.unit-tests.outcome == 'failure')
108129 run : |
You can’t perform that action at this time.
0 commit comments