flowwer-dev / pull-request-stats

Github action to print relevant stats about Pull Request reviewers
MIT License
366 stars 79 forks source link

Stats not aggregated across the repositories #45

Closed tgrk closed 2 years ago

tgrk commented 2 years ago

Hello, I am having an issue using the repositories feature (or I misunderstood it). I am using the following config (GITHUB_API_TOKEN has rights to read repo information and is a member of all the listed repositories), and PR stats are always calculated only for the current repository.

Configuration

...
jobs:
  stats:
    runs-on: ubuntu-latest
    steps:
      - name: Run pull request stats
        uses: flowwer-dev/pull-request-stats@master
        with:
          token: ${{ secrets.GITHUB_API_TOKEN }}
          repositories: 'repo/foo,repo/bar'
          charts: true
          sort-by: 'REVIEWS'
          period: 14

Do you have any suggestions on how to enable cross repository stats?

Cheers, Martin

tgrk commented 2 years ago

FYI I found out that the problem was using a regular Github user API token and not setting Github Action secret token.