The slack:real_time:api:update task currently doesn't touch previous hooks and only prepends new event handler templates at the top of the store. The result is that many of the hooks currently in the stores are for Slack events that no longer exist or have outdated documentation. Additionally, there is no consistent ordering.
This PR makes the task more intelligent to extract all the current hooks and reuse only the hooks themselves while always generating fresh documentation and arranging the hooks in alphabetical order. Any hooks not matching the current Slack API ref are discarded.
This sets up updating some hook implementations for changes in #423
The
slack:real_time:api:update
task currently doesn't touch previous hooks and only prepends new event handler templates at the top of the store. The result is that many of the hooks currently in the stores are for Slack events that no longer exist or have outdated documentation. Additionally, there is no consistent ordering.This PR makes the task more intelligent to extract all the current hooks and reuse only the hooks themselves while always generating fresh documentation and arranging the hooks in alphabetical order. Any hooks not matching the current Slack API ref are discarded.
This sets up updating some hook implementations for changes in #423