Skip to content

Instantly share code, notes, and snippets.

@alvesjtiago
Created November 14, 2011 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvesjtiago/1365559 to your computer and use it in GitHub Desktop.
Save alvesjtiago/1365559 to your computer and use it in GitHub Desktop.
Git post-commit log to Kickoff
#!/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