Skip to content

jparise/git-hipchat-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Git HipChat Hook

A simple GIT post-receive hook script for notifying a room in HipChat.

Installation

Clone this repository somewhere in your GIT repository host server.

git clone git://github.com/eirc/git-hipchat-hook.git

Clone hipchat-cli somewhere in your GIT repository host server.

git clone git://github.com/hipchat/hipchat-cli.git

Go to the hooks directory in a bare repository you want to setup the hooks for and add a post-receive script like this one and make sure its executable:

#!/bin/sh

HIPCHAT_SCRIPT="/path/to/hipchat/room/message"
HIPCHAT_ROOM="HipChat room name"
HIPCHAT_TOKEN="1234567890"
HIPCHAT_FROM="GIT"

. /path/to/hipchat-post-receive

And you're done!

For GitWeb, CGit and Redmine integrations (optional) add the following configuration to the post-receive hook before the hipchat-post-receive source line.

Note that CGit and GitWeb are mutually exclusive.

CGIT="git.example.com/cgit"
GITWEB="gitweb.example.com"
REDMINE="redmine.example.com"

Contributions

  • graffic for the sed RegEx to link to Redmine issues.
  • jparise for CGit integration.

About

A simple GIT post-receive hook script for notifying a room in HipChat.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages