Skip to content

Add changes to RepositoryEvent #2232

@ecrupper

Description

@ecrupper

In the case of a repository being renamed, there is a changes block in the webhook payload. Since Go-GitHub doesn't have this field in their RepositoryEvent struct, one must create a custom struct to unmarshal the old name of the repository.

I'm not sure if this is potentially a recurring issue for other repository events, but it would be nice to have Go-GitHub handle all the webhook information associated with renaming a repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions