{"action":"created","issue":{"url":"https://api.github.com/repos/mroth/lolcommits/issues/284","labels_url":"https://api.github.com/repos/mroth/lolcommits/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/mroth/lolcommits/issues/284/comments","events_url":"https://api.github.com/repos/mroth/lolcommits/issues/284/events","html_url":"https://github.com/mroth/lolcommits/pull/284","id":102476588,"number":284,"title":"Add slack integration","user":{"login":"yasakbulut","id":676957,"avatar_url":"https://avatars.githubusercontent.com/u/676957?v=3","gravatar_id":"","url":"https://api.github.com/users/yasakbulut","html_url":"https://github.com/yasakbulut","followers_url":"https://api.github.com/users/yasakbulut/followers","following_url":"https://api.github.com/users/yasakbulut/following{/other_user}","gists_url":"https://api.github.com/users/yasakbulut/gists{/gist_id}","starred_url":"https://api.github.com/users/yasakbulut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasakbulut/subscriptions","organizations_url":"https://api.github.com/users/yasakbulut/orgs","repos_url":"https://api.github.com/users/yasakbulut/repos","events_url":"https://api.github.com/users/yasakbulut/events{/privacy}","received_events_url":"https://api.github.com/users/yasakbulut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-21T22:58:32Z","updated_at":"2015-09-03T23:47:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mroth/lolcommits/pulls/284","html_url":"https://github.com/mroth/lolcommits/pull/284","diff_url":"https://github.com/mroth/lolcommits/pull/284.diff","patch_url":"https://github.com/mroth/lolcommits/pull/284.patch"},"body":"# lol-slack\r\nThis PR adds a new plugin that handles image upload to slack; to share the awesomeness with friends, coworkers and envious nemeses.\r\n\r\nThe upload is done using the [Slack Web API File Upload](https://api.slack.com/methods/files.upload). The files are stored on slack, and posted to a channel/several channels specified in the configuration. \r\n\r\nHeavily inspired by (read: copied from) lol-yammer and uploldz.\r\n\r\n## Configuration\r\nlol-slack needs a valid user token in order to function. You can generate a personal token via the [Slack Web API](https://api.slack.com/web).\r\nAdditionally, 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.\r\n```\r\nlolcommits --config -p slack\r\n\r\nConfiguring plugin: slack\r\nenabled: true\r\nOpen the URL below and issue a token for your user:\r\nhttps://api.slack.com/web\r\nEnter the generated token below, then press enter: (e.g. xxxx-xxxxxxxxx-xxxx)\r\n[User Token]\r\nEnter a comma-seperated list of channel IDs to post images in, then press enter: (e.g. C1234567890,C1234567890)\r\n[Channel ID(s)]\r\n```\r\n\r\n## Notes\r\n* At the time of writing, the master branch had 5 RuboCop offenses, and 1 failed feature test (On My Machine:tm:). This branch does not increase those numbers (On My Machine:tm:)\r\n* Suggestions, nitpickings and flame-wars are welcome"},"comment":{"url":"https://api.github.com/repos/mroth/lolcommits/issues/comments/137603269","html_url":"https://github.com/mroth/lolcommits/pull/284#issuecomment-137603269","issue_url":"https://api.github.com/repos/mroth/lolcommits/issues/284","id":137603269,"user":{"login":"tooluser","id":2438777,"avatar_url":"https://avatars.githubusercontent.com/u/2438777?v=3","gravatar_id":"","url":"https://api.github.com/users/tooluser","html_url":"https://github.com/tooluser","followers_url":"https://api.github.com/users/tooluser/followers","following_url":"https://api.github.com/users/tooluser/following{/other_user}","gists_url":"https://api.github.com/users/tooluser/gists{/gist_id}","starred_url":"https://api.github.com/users/tooluser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tooluser/subscriptions","organizations_url":"https://api.github.com/users/tooluser/orgs","repos_url":"https://api.github.com/users/tooluser/repos","events_url":"https://api.github.com/users/tooluser/events{/privacy}","received_events_url":"https://api.github.com/users/tooluser/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T23:47:22Z","updated_at":"2015-09-03T23:47:22Z","body":"This is fantastic! "}}