Skip to content

Response type for GET /repos/{owner}/{repo}/events missing ref and commits type for PushEvents #476

Open
@stephenasuncionDEV

Description

@stephenasuncionDEV

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"];

image

image

How to Fix

Probably need to add ref?: string inside the payload type

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: BlockedBlocked by GitHub's API or other external factorsType: BugSomething isn't working as documented, or is being fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions