Created
May 19, 2015 12:44
-
-
Save dazzz1er/e997dd80216766ebc2d5 to your computer and use it in GitHub Desktop.
Slack notify on git commit
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
#!/bin/sh | |
#notifyslack.bat | |
message=$(git log -1 HEAD --pretty=format:%s) | |
curl -X POST --data-urlencode 'payload={"channel": "#channel", "username": "<project>bot", "text": "<Project> was updated: '"$message"'", "icon_emoji": ":ghost:"}' hook_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment