Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting rate limited when trying to collect PR data for issue-metrics #189

Closed
peter-laurens opened this issue Jan 12, 2024 · 3 comments
Closed
Assignees
Labels

Comments

@peter-laurens
Copy link

I'm trying to implement the github/issue-metrics@v2 action, my main desire is to collect data on time-to-first-comment/review on Pull Requests in my repository, which this tool seems to support.

However I am getting an API rate exceeded error, when trying to use it across a window of only a couple of days content:

github3.exceptions.ForbiddenError: 403 API rate limit exceeded for installation ID 8026696. If you reach out to GitHub Support for help, please include the request ID FC00:1733:4E64548:A17BDA6:65A1A825.

The full yml is very simple for now, and looks like this:

name: PR Metrics Test
on: push

permissions:
  pull-requests: read

jobs:
  build:
    name: pr metrics
    runs-on: ubuntu-latest
    steps:
    - name: Run issue-metrics tool
      uses: github/issue-metrics@v2
      env:
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        SEARCH_QUERY: 'repo:<OrgHere>/<RepoHere> is:pr created:2023-05-01..2023-05-02'

... you can see I just selected a single day, but still get rate limited (it appears, at least).

I don't know what queries the tool is running under the hood though. Is this expected? The repository is not typically hugely busy, I would expect only a handful of PRs per day max.

Thanks for any guidance!

@zkoppert
Copy link
Member

Once you've been rate limited once, it lasts for a while so that's what I expect is happening here. Have you tried running this since? Still an issue?

@zkoppert zkoppert self-assigned this Jan 22, 2024
Copy link

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@zkoppert
Copy link
Member

Moving to a feature request issue #217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants