action-ktlint icon indicating copy to clipboard operation
action-ktlint copied to clipboard

Reporter reports only one message

Open naivekook opened this issue 2 years ago • 1 comments

Hi! I faced the problem that in output I have a lot of error messages but GitHub bot reports only one. I'm expecting that if I have 50 ktlint errors it will see 50 PR comments.

Part of output: Screenshot 2023-02-22 at 10 14 51

GA workflow:

name: Code Review Workflow
on: [pull_request]
jobs:
  ktlint:
    name: Check Code Style
    runs-on: [self-hosted, nonroot]

    steps:
      - uses: actions/checkout@v3
      - uses: ScaCap/action-ktlint@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          reporter: github-pr-review
          fail_on_error: true
          filter_mode: file

naivekook avatar Feb 22 '23 09:02 naivekook

@naivekook could you provide a full example to reproduce? I tried your example and it looks alright to me https://github.com/ghaiszaher/ktlint-issue-test/pull/1#pullrequestreview-1314692154

ghaiszaher avatar Feb 26 '23 15:02 ghaiszaher