Created
May 30, 2017 03:07
-
-
Save kenzo0107/f4b711442ee8f5c7f8f4a1c7e367bc51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slack() { | |
curl -X POST "https://hooks.slack.com/services/xxxxxxx/xxxxxxx/xxxxxxxxxxxxxxxx" -d "payload={ | |
\"username\": \"<user_name>\", | |
\"icon_emoji\": \":outbox_tray:\", | |
\"attachments\": [{ | |
\"color\": \"$1\", | |
\"title\": \"$2\", | |
\"text\": \"$3\" | |
}] | |
}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment