Skip to content

Reviewdog not commenting on PRs #66

@aryan26gupta

Description

@aryan26gupta

Hi I am using the following config to run reviewDog for adding comments on my PR:

.....
      - name: Set up golangci-lint
        run: |
          curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
      - name: Set up reviewdog
        uses: reviewdog/action-setup@v1
        with:
          reviewdog_version: latest
      - name: Run golangci-lint
        run: |
          BASE_REF=$(git merge-base origin/develop HEAD)
          echo "BASE_REF: $BASE_REF"
          echo "Running golangci-lint from revision $BASE_REF..."
          $(go env GOPATH)/bin/golangci-lint run -v --verbose --config=.github/.golangci.yml --new-from-rev=$BASE_REF --allow-parallel-runners 2>&1 | tee golangci-lint.log
        continue-on-error: true

      - name: Display golangci-lint log
        run: |
          cat golangci-lint.log

      - name: Run golangci-lint with reviewdog
        env:
          REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
        run: |
          cat golangci-lint.log | reviewdog -f=golangci-lint -reporter=github-pr-review -fail-on-error=false

      .......

The reporter github-pr-review is not commenting on my PRs although it is adding annotations.

Image

Can I please get help in this regard, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions