<commit_before># Phabricator-to-Slack

[![Build Status](https://travis-ci.org/yinghau76/phabricator-to-slack.svg?branch=master)](https://travis-ci.org/yinghau76/phabricator-to-slack)
[![GoDoc](https://godoc.org/github.com/yinghau76/phabricator-to-slack?status.svg)](https://godoc.org/github.com/yinghau76/phabricator-to-slack)
[![Coverage Status](https://coveralls.io/repos/github/yinghau76/phabricator-to-slack/badge.svg?branch=master)](https://coveralls.io/github/yinghau76/phabricator-to-slack?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/yinghau76/phabricator-to-slack)](https://goreportcard.com/report/github.com/yinghau76/phabricator-to-slack)
[![codebeat badge](https://codebeat.co/badges/9e65f307-a91b-4016-9da1-c1bfe62cffb5)](https://codebeat.co/projects/github-com-yinghau76-phabricator-to-slack)

## What?

The code demostrates sending Phabricator notifications to Slack. It is implemented with Go majorly for advatange of single-binary deployment.

## Why?

Phabricator and Slack are among my favorite tools. It will be nice if they can work together.

## How?

Phabricator-to-Slack works by installing itself as a HTTP hook of Phabricator. After receiving notification from Phabricator, it digs more information from Phabricator via its Conduit API and send the message to specified Slack channel.

### Build the code

    go get github.com/yinghau76/phabricator-to-slack

### Install as system service
<commit_msg>Update URL to new repository location<commit_after># Phabricator-to-Slack

[![Build Status](https://travis-ci.org/p47r1ck7541/phabricator-to-slack.svg?branch=master)](https://travis-ci.org/p47r1ck7541/phabricator-to-slack)
[![GoDoc](https://godoc.org/github.com/p47r1ck7541/phabricator-to-slack?status.svg)](https://godoc.org/github.com/p47r1ck7541/phabricator-to-slack)
[![Coverage Status](https://coveralls.io/repos/github/p47r1ck7541/phabricator-to-slack/badge.svg?branch=master)](https://coveralls.io/github/p47r1ck7541/phabricator-to-slack?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/p47r1ck7541/phabricator-to-slack)](https://goreportcard.com/report/github.com/p47r1ck7541/phabricator-to-slack)
[![codebeat badge](https://codebeat.co/badges/9e65f307-a91b-4016-9da1-c1bfe62cffb5)](https://codebeat.co/projects/github-com-p47r1ck7541-phabricator-to-slack)

## What?

The code demostrates sending Phabricator notifications to Slack. It is implemented with Go majorly for advatange of single-binary deployment.

## Why?

Phabricator and Slack are among my favorite tools. It will be nice if they can work together.

## How?

Phabricator-to-Slack works by installing itself as a HTTP hook of Phabricator. After receiving notification from Phabricator, it digs more information from Phabricator via its Conduit API and send the message to specified Slack channel.

### Build the code

    go get github.com/p47r1ck7541/phabricator-to-slack

### Install as system service

{'fraction_non_alphanumeric': 0.12964213369345037, 'fraction_numerical': 0.042538825118163405, 'mean_word_length': 5.526431718061674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3763547', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1061, 'n_words': 195}