Open
Description
What happened?
I'm getting the recent commits from a branch through GET /repos/{owner}/{repo}/events
, I'm filtering commits that were committed to the main branch and getting the latest one.
It looks like the payload type does not have ref
and commits
key in it.
export type listUserRepoEventsResponse = Endpoints["GET /repos/{owner}/{repo}/events"]["response"];
How to Fix
Probably need to add ref?: string
inside the payload type