Skip to content

Deprecate WebHookPayload #303

@willnorris

Description

@willnorris

The PushEvent type was originally added in June 2013 in beaff13. I then added the WebHookPayload type a month later in 023e8db. I honestly am not sure why I did that, since they are effectively duplicates. Maybe it wasn't clear at that point that we should be using the same types for webhook payloads and activity events? Or maybe I just wasn't thinking.

In any event, #302 reminded me that we've updated PushEvent to include a variant of Repository that has a string Organization filed (see d722750), but the same update was never made to WebHookPayload. Instead of fixing that, I think we should probably just deprecate WebHookPayload and point people to PushEvent instead.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions