-
Notifications
You must be signed in to change notification settings - Fork 245
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
Add slack integration #284
Conversation
This is fantastic! |
Any chance this'll get merged? |
I think i'll get a chance to look at it tomorrow, sorry for the delay. |
Hey, that's great! I was just worried it was dead or otherwise stale. Busy I can relate to... And once I have slack I can hook up the whole dept! Joshua Marker
|
Sorry, i'm "slack"ing on this I know, tomorrow night for sure 👍 |
OIC what you did there. ;-)
|
Ok, I took a look and it all looks and works great. The one thing that threw me was the need to pass a Channel ID (and not a channel name). I might make this more clear in the config help text after merging, or calling this endpoint to find channels by name first. In any case, merging now, and will push a new point release out ASAP. Sorry this took so long to review and merge and thanks for your contribution! |
FYI, I applied this commit after merging. |
This is like christmas morning!
|
I've added this feature request issue just now - so perhaps someone (or my future self) will get to it. |
Hey, thanks for your comments and the merge! I might take a look at the feature request in the future, but don't count on it just yet =) |
Hi @yasakbulut 👋 So you may (or may not) have noticed that we recently extracted all lolcommit plugins to external gems! 🏅 Since you contributed this slack plugin, I've added you (as an admin) to the new lolcommits-slack repo. Of course you are under no obligation to maintain this code or gem going forward. This is just a quick message to explain what has happened and give you the opportunity to take ownership again. If you're interested in picking this up, send me your email address (to matt/at/hiddeloop.com) and I'll add you as a new gem owner (with publishing rights) here. Otherwise I will continue to maintain the gem, and make sure things are kept up to date. To get an idea of how gem plugins work, check out the The main reasons for extraction were to:
That's it, any questions just let me know. Happy coding! Matt |
lol-slack
This PR adds a new plugin that handles image upload to slack; to share the awesomeness with friends, coworkers and envious nemeses.
The upload is done using the Slack Web API File Upload. The files are stored on slack, and posted to a channel/several channels specified in the configuration.
Heavily inspired by (read: copied from) lol-yammer and uploldz.
Configuration
lol-slack needs a valid user token in order to function. You can generate a personal token via the Slack Web API.
Additionally, you can specify in which channels or private groups to which the images should be posted. Simply enter a comma-separated list of channel IDs.
Notes