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

Allow either attachments or text #209

Merged
merged 3 commits into from
Jun 17, 2018
Merged

Conversation

peterzhu2118
Copy link
Contributor

For chat_postEphemeral, either text: or attachments: is required, but the current code doesn't allow that (it checks that text: always exist).

@dblock
Copy link
Collaborator

dblock commented Jun 15, 2018

This file is automatically generated by lib/tasks/web.rake from https://github.com/slack-ruby/slack-api-ref, take a look at how that's done. You either need to patch the API description similarly to what's in https://github.com/slack-ruby/slack-ruby-client/tree/master/lib/slack/web/api/patches or maybe even something upstream in the ref.

@peterzhu2118
Copy link
Contributor Author

@dblock How does it look now? Should I update the tests as well for CI to pass?

@dblock
Copy link
Collaborator

dblock commented Jun 17, 2018

Yes please, changelog & whatever the bot complains about until it's green. Thanks.

@peterzhu2118
Copy link
Contributor Author

@dblock Done 😄! I've also updated the date in the changelog for version 0.11.1 because I think you meant 2018 rather than 2017.

@dblock dblock merged commit 018dcfd into slack-ruby:master Jun 17, 2018
@dblock
Copy link
Collaborator

dblock commented Jun 17, 2018

Merged, thank you.

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.

2 participants