flowwer-dev / pull-request-stats

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

Error fetching pull requests with id #8

Closed xdays closed 3 years ago

xdays commented 3 years ago

Here's my worflow yaml:

name: stats

on: pull_request

jobs:
  stats:
    runs-on: ubuntu-latest
    steps:
      - name: Run pull request stats
        uses: flowwer-dev/pull-request-stats@master
        with:
          token: ${{ secrets.GHB_PAT }}
          charts: true
          disable-links: true
          sort-by: 'COMMENTS'

Just get the error:

Error: Error fetching pull requests with id "MDExOlB1bGxSZXF1xxxxx". Error: GraphqlError: Could not resolve to a node with the global id of 'MDExOlB1bGxSZXF1xxxxx'

Thanks

manuelmhtr commented 3 years ago

Hi @xdays I think is something related with permissions. Which permission are grated for the GHB_PAT token?

xdays commented 3 years ago

I double check my token, I failed to save permission change. Thanks!