{"action":"created","issue":{"url":"https://api.github.com/repos/wantedly/step-pretty-slack-notify/issues/36","repository_url":"https://api.github.com/repos/wantedly/step-pretty-slack-notify","labels_url":"https://api.github.com/repos/wantedly/step-pretty-slack-notify/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/wantedly/step-pretty-slack-notify/issues/36/comments","events_url":"https://api.github.com/repos/wantedly/step-pretty-slack-notify/issues/36/events","html_url":"https://github.com/wantedly/step-pretty-slack-notify/pull/36","id":190832721,"number":36,"title":"Support custom message","user":{"login":"spesnova","id":261700,"avatar_url":"https://avatars.githubusercontent.com/u/261700?v=3","gravatar_id":"","url":"https://api.github.com/users/spesnova","html_url":"https://github.com/spesnova","followers_url":"https://api.github.com/users/spesnova/followers","following_url":"https://api.github.com/users/spesnova/following{/other_user}","gists_url":"https://api.github.com/users/spesnova/gists{/gist_id}","starred_url":"https://api.github.com/users/spesnova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spesnova/subscriptions","organizations_url":"https://api.github.com/users/spesnova/orgs","repos_url":"https://api.github.com/users/spesnova/repos","events_url":"https://api.github.com/users/spesnova/events{/privacy}","received_events_url":"https://api.github.com/users/spesnova/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-21T20:53:13Z","updated_at":"2016-11-22T03:43:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wantedly/step-pretty-slack-notify/pulls/36","html_url":"https://github.com/wantedly/step-pretty-slack-notify/pull/36","diff_url":"https://github.com/wantedly/step-pretty-slack-notify/pull/36.diff","patch_url":"https://github.com/wantedly/step-pretty-slack-notify/pull/36.patch"},"body":"## What does this PR do?\r\n\r\n- Refactor `run.rb`\r\n- **Change default message and icon** (see example in [`README`](https://github.com/spesnova/step-pretty-slack-notify/blob/support-custom-message/README.md))\r\n- Support to define additional message on `passed` or `failed`\r\n- Update `slack-notifier` to `1.5.1`\r\n- Bump up the version to `0.3.0`\r\n\r\nThis PR closes https://github.com/wantedly/step-pretty-slack-notify/issues/27\r\n\r\n## Motivation\r\nTo allow users to define additional message like this:\r\n\r\n![slack](https://cloud.githubusercontent.com/assets/261700/20499887/ba4a2bac-b076-11e6-8100-f09f49a37865.png)\r\n\r\n## References\r\n\r\n- [Predefined After Step Variables](http://devcenter.wercker.com/docs/environment-variables/after-step-variables)\r\n- [Available Environment Variables](http://devcenter.wercker.com/docs/environment-variables/available-env-vars)\r\n- [Basic message formatting | Slack](https://api.slack.com/docs/message-formatting)\r\n- [stevenosloan/slack-notifier: A simple wrapper for posting to slack channels](https://github.com/stevenosloan/slack-notifier)\r\n"},"comment":{"url":"https://api.github.com/repos/wantedly/step-pretty-slack-notify/issues/comments/262139893","html_url":"https://github.com/wantedly/step-pretty-slack-notify/pull/36#issuecomment-262139893","issue_url":"https://api.github.com/repos/wantedly/step-pretty-slack-notify/issues/36","id":262139893,"user":{"login":"dtan4","id":680124,"avatar_url":"https://avatars.githubusercontent.com/u/680124?v=3","gravatar_id":"","url":"https://api.github.com/users/dtan4","html_url":"https://github.com/dtan4","followers_url":"https://api.github.com/users/dtan4/followers","following_url":"https://api.github.com/users/dtan4/following{/other_user}","gists_url":"https://api.github.com/users/dtan4/gists{/gist_id}","starred_url":"https://api.github.com/users/dtan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtan4/subscriptions","organizations_url":"https://api.github.com/users/dtan4/orgs","repos_url":"https://api.github.com/users/dtan4/repos","events_url":"https://api.github.com/users/dtan4/events{/privacy}","received_events_url":"https://api.github.com/users/dtan4/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T03:43:34Z","updated_at":"2016-11-22T03:43:34Z","body":"LGTM 👍 Thanks ❗️ "}}
{"actor":{"display_login":"dtan4"}}