Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix webhook event on repository deletion. (#4216)
Repository deletion events coming from repository webhooks (not app webhooks) were encoded in the wrong way, making downstream deletion handler fail on validation. This change fixes the logic by encoding a different payload in case of deletion. Further changes will be necessary to encapsulate entity-specific messages in a more general envelope in order to handle deletions of other entities as well without introducing additional infrastructure (i.e. watermill topics).
- Loading branch information