-
Notifications
You must be signed in to change notification settings - Fork 66
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
TypeScript: Property 'commits' does not exist on 'payload' #128
Comments
Thanks for this report 👍 There's nothing we can do on our side. The types are auto-generated from GitHub's OpenAPI spec. Unfortunately, the JS octokit packages don't have an active maintainer anymore, so we cannot update the types for the REST endpoints. You can check out this discussion for further updates |
Ah bummer! Okay well thank you for the quick update. |
Hi @jsjoeio, Is this still an issue for you with the latest updates that have been made to this project? |
Hi @wolfy1339 - apologies, I don't really have the time these days to check. Here is where I was having issues: https://github.com/jsjoeio/github-email-extension/blob/master/src/content_script.ts#L110 Otherwise, feel to close |
This seems like an issue upstream, the OpenAPI spec isn't complete for this endpoint it seems |
We'll need an example of a |
It's not that there's undocumented properties on the |
I understand that 😊 It'd just be helpful to have an example JSON response that I can share to demonstrate the problem. |
Hey everyone 👋 I believe I am also encountering this error. Sample Code:
Sample JSON from the above response
Hope this helps and thanks for the types! 👍 |
Unfortunately this issue is in GitHub's court. It doesn't seem to be a high priority for them since it's been open for over a year. We'd need to collect more information in order to create some overrides to add in the missing types |
Checklist
Environment
Versions
^18.12.
What happened?
It appears that the package doesn't contain all the required fields on
payload
.Repo: https://github.com/jsjoeio/github-email-extension
Minimal test case to reproduce the problem
Playground Link
What did you expect to happen?
I expected to have the types match actual data.
What the problem might be
Types are missing the correct
payload
structure forPushEvent
NOTES
Found this issue with my friend @Beraliv
The text was updated successfully, but these errors were encountered: