Created
November 14, 2011 23:25
-
-
Save alvesjtiago/1365559 to your computer and use it in GitHub Desktop.
Git post-commit log to Kickoff
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 | |
# | |
# Hook script called after a successful commit is made. | |
# | |
# Commit is sent to Kickoff chat room with format - Gitbot: "Commit message" - Your name | |
# | |
# DON'T FORGET: | |
# - Change *ID* with your project ID | |
# - Change *TOKEN* with your project token | |
message=$(git log -1 --pretty=format:"\"%s\" - %cN") | |
curl -d "<request><message>Gitbot: $message</message></request>" http://api.kickoffapp.com/projects/*ID*/chat?token=*TOKEN* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment