flowwer-dev / pull-request-stats

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

Sort-by-time doesn't seem to work properly #71

Closed zachliu closed 11 months ago

zachliu commented 1 year ago

I have this in my workflow ():

  #########################################################
  # Show PR statistics
  # #######################################################
  stats:
    name: Obtain PR stats
    runs-on: ubuntu-latest
    steps:
      - name: Run pull request stats
        uses: flowwer-dev/pull-request-stats@master
        with:
          token: ${{ secrets.GH_TOKEN }}
          organization: '<my-org>'
          period: 30
          charts: true
          sort-by: 'TIME'

what i got

pr-stats-sort-by-time

manuelmhtr commented 1 year ago

Hi @zachliu thanks for reporting the issue. I tried to replicate it but couldn't. 1) Are you using the latest version of the action? 2) Could you try setting sortBy: TIME instead of sort-by: 'TIME'?