Skip to content

Remove fields deleted in October 2025 API changes#826

Merged
XAMPPRocky merged 3 commits into
XAMPPRocky:mainfrom
alyssais:oct-2025
Nov 18, 2025
Merged

Remove fields deleted in October 2025 API changes#826
XAMPPRocky merged 3 commits into
XAMPPRocky:mainfrom
alyssais:oct-2025

Conversation

@alyssais
Copy link
Copy Markdown
Contributor

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:

called `Result::unwrap()` on an `Err` value: Error("missing field `size`", line: 0, column: 0)

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/
"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",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this removed from the test? it should be unaffected, no? Same for the other fields that are unaffected?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're looking at webhook events. This is about the events REST API. There are separate test fixtures for webhooks.

@XAMPPRocky
Copy link
Copy Markdown
Owner

Thank you for your PR!

@XAMPPRocky XAMPPRocky merged commit 730b70f into XAMPPRocky:main Nov 18, 2025
20 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants