Skip to content

A simple Mercurial hook script for notifying a room in HipChat

Notifications You must be signed in to change notification settings

pykler/hg-hipchat-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Mercurial HipChat Hook

A simple Mercurial changegroup hook script for notifying a room in HipChat. Based on git-hipchat-hook by eirc.

Installation

Clone this repository somewhere in your Mercurial repository host server.

hg clone git:https://github.com/vkotovv/hg-hipchat-hook.git

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

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

Go to the .hg/hgrc in a repository you want to setup the hooks for and add a changegroup hook based on hipchat_changegroup.sh and make sure it is executable:

#!/bin/sh

HIPCHAT_SCRIPT="/path/to/hipchat-cli"
HIPCHAT_ROOM="HipChat room name"
HIPCHAT_TOKEN="1234567890"
HIPCHAT_FROM="HG"

. /path/to/hipchat.sh

And you're done!

Additional integrations

For Rhodecode, Redmine, and Trac integrations, edit the following configuration in the hipchat_changegroup.sh hook file:

RHODECODE="https://rhodecode.example.com"
REDMINE="https://redmine.example.com"
TRAC="https://trac.example.com/project"

Contributors

Many thanks to the contributors:

About

A simple Mercurial hook script for notifying a room in HipChat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%