A simple Git post-receive hook script for notifying a channel in Rocket.Chat of Phabricator repository changes.
- Clone this repository somewhere on your repository host server.
- Go to the
hooksdirectory in a repository you want to set up the hooks for and add apost-receivescript 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-receiveand you're done!