👨🏻‍💻 Thanks for reading! This blog has been archived and won't have content updates. You can follow my latest work at trujillo.io.
CHROMABITS

Eduardo Trujillo
1 minute

As the result of a short hacking session, I built a simple Node.js bot that forwards items from the Phabricator news feed into a Slack channel:

Example

Phabricator supports calling POST endpoints whenever there is a new feed item (setup through the feed.http-hooks). However, we can’t just forward these directly to Slack. The main task of the bot is to take these requests from Phabricator, fetch some extra information using Conduit and the calling another webhook to deliver the message to a Slack channel.

Right now it seems to be working fine with most object types (tasks, commits, wiki pages). The only side-effect is that the bot will cause Slack notifications appear for your own actions if your username in Slack and Phabricator happen to match.

You can find the code and instructions on how to set it up on GitHub

CHROMABITS
Copyright © 2015-2021 - Eduardo Trujillo
Except where otherwise noted, content on this site is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license.
Site generated using Gatsby.