minder
minder copied to clipboard
Refactor GitHub webhook handler to have a case for each event of interest
Currently, the GitHub webhook handler treats different event types uniformly and the "dispatch logic" for each event is spread over multiple routines. This makes it harder to extend the logic in case new events need to be handled.
Refactor the handler so that every event type has its own routine implementing the necessary business logic.