Skip to content

A simple Git post-receive hook script for notifying a channel in Rocket.Chat of Phabricator repository changes

Notifications You must be signed in to change notification settings

TSYS-Merchant/phab-rocketchat-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 

Repository files navigation

Git Rocket.Chat Hook for Phabricator

A simple Git post-receive hook script for notifying a channel in Rocket.Chat of Phabricator repository changes.

Installation

  1. Clone this repository somewhere on your repository host server.
  2. 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.
#!/bin/sh

export ROCKETCHAT_WEBHOOK_URL="https://your.chat/webhook"
export ROCKETCHAT_CHANNEL="#channel"

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

. /path/to/rocketchat-post-receive

and you're done!

About

A simple Git post-receive hook script for notifying a channel in Rocket.Chat of Phabricator repository changes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages