MishaKav / jest-coverage-comment

Comments a pull request or commit with the jest code coverage badge, full report and tests summary
MIT License
80 stars 34 forks source link

Bug: Coverage Comment is ignoring property create-new-comment #95

Closed mluizaa00 closed 1 month ago

mluizaa00 commented 1 month ago

Hello, I currently have the following configuration:

      - name: Jest Coverage Comment File
        uses: MishaKav/jest-coverage-comment@main
        with:
          github-token: ${{ secrets.GH_TOKEN }}
          title: Test Coverage (Files)
          coverage-path: ./app/apps/project/coverage.txt
          create-new-comment: false
          coverage-title: Project
          report-only-changed-files: true

With the property create-new-comment disabled. But my pull requests always have a duplicated comment of the coverage after each commit, as if it was ignoring this property.

Can someone help? Is this an issue with the configuration or with the plugin itself?

mluizaa00 commented 1 month ago

Actually, the user sending the message needs to be the Github Bot. I updated the github-token to github-token: ${{ secrets.GITHUB_TOKEN }} and it worked