Skip to content

Commit 16aa06e

Browse files
add eslint results in the comment
1 parent 8acb057 commit 16aa06e

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/gui-checks.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ jobs:
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: |

0 commit comments

Comments
 (0)