Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update real_time.rake to remove outdated event hooks and organize alphabetically #424

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

kstole
Copy link
Collaborator

@kstole kstole commented Oct 15, 2022

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

@dangerpr-bot
Copy link

1 Warning
⚠️ There're library changes, but not tests. That's OK as long as you're refactoring existing code.

Generated by 🚫 Danger

@dblock dblock merged commit 2538a1c into slack-ruby:master Oct 17, 2022
@kstole kstole deleted the updated_real_time_events branch October 17, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants