Remove fields deleted in October 2025 API changes#826
Conversation
These were removed from the GitHub API on 7 October 2025[1]. Since
then, trying to load repository events using Octocrab will fail:
called `Result::unwrap()` on an `Err` value: Error("missing field `size`", line: 0, column: 0)
Link: https://github.blog/changelog/2025-08-08-upcoming-changes-to-github-events-api-payloads/ [1]
Since 7 October 2025, GitHub no longer returns this field in the Activity Events API. Link: https://github.blog/changelog/2025-08-08-upcoming-changes-to-github-events-api-payloads/
These have not been returned by the GitHub API since 7 October 2025. Link: https://github.blog/changelog/2025-08-08-upcoming-changes-to-github-events-api-payloads/
| "patch_url": "https://github.com/wayofthepie/test-events/pull/8.patch", | ||
| "issue_url": "https://api.github.com/repos/wayofthepie/test-events/issues/8", | ||
| "number": 8, | ||
| "state": "open", |
There was a problem hiding this comment.
why is this removed from the test? it should be unaffected, no? Same for the other fields that are unaffected?
There was a problem hiding this comment.
I don't see this field being returned from the events API any more, do you? The announcement doesn't specify which fields have been removed, so I just had to look up events from the API and compare to the test data.
There was a problem hiding this comment.
it is documented to be returned from https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=opened#pull_request
Also, I see it when testing the event just now.
Maybe the deployment is still not fully deployed?
There was a problem hiding this comment.
You're looking at webhook events. This is about the events REST API. There are separate test fixtures for webhooks.
|
Thank you for your PR! |
https://github.blog/changelog/2025-08-08-upcoming-changes-to-github-events-api-payloads/
Since 7 October 2025, trying to load repository events (for example) using Octocrab will fail: