Open
Description
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.