Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

A simple Git post-receive hook script for notifying a room in HipChat of Phabricator repository changes

Notifications You must be signed in to change notification settings

TSYS-Merchant/phab-hipchat-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 

Repository files navigation

Git HipChat Hook for Phabricator

A simple Git post-receive hook script for notifying a room in HipChat of Phabricator repository changes.

Installation

  1. Clone this repository somewhere on your repository host server.
  2. Clone hipchat-cli somewhere on your repository host server.
  3. Go to the hooks directory in a repository you want to set up the hooks for and add a post-receive script like this one and make sure it's executable.

You can lookup the HipChat room ID from the rooms/list API or use the HipChat room name (remember to URL-encode it)

#!/bin/sh

HIPCHAT_SCRIPT="/path/to/hipchat_room_message"

. /path/to/hipchat-post-receive

And you're done!

For Phabricator, add the following configuration to the post-receive hook before the hipchat-post-receive source line.

export PHAB="phab.example.com"
export REPO="RepoName"

Optionally, set a callsign if it differs from your repository name.

export CALLSIGN="REPO"

About

A simple Git post-receive hook script for notifying a room in HipChat of Phabricator repository changes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%