Phabricator Slack Bridge
This small server will forward news feed items from Phabricator into a Slack channel:
Requirements
- Node.js
- Phabricator admin access and a certificate
- Slack's incoming webhook integration
Setup instructions
- First, clone the repository and run
npm install
- While dependencies install, head over to your Slack admin panel and create a "Incoming Webhook" integration. Give it a nice icon (like this one). After that you should take note of the Webhook URL
- Go to your Phabricator's settings panel and get your Conduit certificate: https://such.phabricator/settings/panel/apitokens/
- Create a
production.json
inside the config directory by copying the contents ofdefault.json
. Place your Phabricator username, url, and certificate under theuser
,api
,cert
keys respectively under theconduit
key. In theslack
key, set a username for the bot and a the url of the webhook. - Start the server:
NODE_ENV=production node app
and check for errors - If everything is working fine, add an entry to your Phabricator's config to call the webhook. The URL should be the address and port of the server you are running the bot in. Example for bot running in the same server as Phabricator:
//... "feed.http-hooks": "http://localhost:8085" //...
Misc
Self-signed certificates
If you are using self-signed certificates for your Phabricator instance, you
can disable checking at your own risk by setting misc.ignore-ca
to true