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

Org Events REST API Hard Limit of 45 #4407

Open
dotexe3301 opened this issue Jan 5, 2025 · 0 comments
Open

Org Events REST API Hard Limit of 45 #4407

dotexe3301 opened this issue Jan 5, 2025 · 0 comments
Labels

Comments

@dotexe3301
Copy link

Schema Inaccuracy

Org Events API, is not giving all the events under 30 days. It only returns the latest 45 events when I invoke the API with a token with all the permissions.

Note: I have successfully implemented pagination logic to get all the pages, but the result is still 45.

I have gone through GitHub Docs, and it says they reduced the events window from 90 days to 30 days, this will take effect after Jan 2025. But I'm not even getting data for 30 days.

Expected

It should return data of 30 days, and not limit the returned response to 45.

Reproduction Steps

  • Be the Owner of an Organization
  • Make a Classic Token with all the permissions on the portal
  • Hit the API:
curl -L \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/users/USERNAME/events/orgs/ORG
  • Check the count of the results obtained, if it's 45 for you too.
@becco becco added the feature label Jan 8, 2025
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