Open Slack API Server.
Go to file
Stanislav N. aka pztrn b58baa8135 Templating, improved Matrix formatter, Gitlab parser, improved other parsers.
From now OpenSAPS supports template formatting. For examples see
Gitea or Gitlab parser for creating template and data and
matrixconnection.go for how to use them.

Improved Matrix formatter - now we can do links and put repeatables
(like commits) in resulting message.

Added Gitlab parser. Incomplete, but can parse commits, issues,
merge requests, tags messages.

Refactored (a little) Gitea parser. No functional changes, still
only commits parsing.

Both Gitlab and Gitea parsers will put back a message if unknown
message type was passed.
2017-09-13 11:44:25 +05:00
config Initial commit with Matrix support. Messages are successfully delivered. 2017-08-28 01:13:45 +05:00
context Templating, improved Matrix formatter, Gitlab parser, improved other parsers. 2017-09-13 11:44:25 +05:00
parsers Templating, improved Matrix formatter, Gitlab parser, improved other parsers. 2017-09-13 11:44:25 +05:00
pushers Templating, improved Matrix formatter, Gitlab parser, improved other parsers. 2017-09-13 11:44:25 +05:00
slack Templating, improved Matrix formatter, Gitlab parser, improved other parsers. 2017-09-13 11:44:25 +05:00
.gitignore Initial commit with Matrix support. Messages are successfully delivered. 2017-08-28 01:13:45 +05:00
LICENSE Initial commit with Matrix support. Messages are successfully delivered. 2017-08-28 01:13:45 +05:00
opensaps.example.yaml Initial commit with Matrix support. Messages are successfully delivered. 2017-08-28 01:13:45 +05:00
opensaps.go Templating, improved Matrix formatter, Gitlab parser, improved other parsers. 2017-09-13 11:44:25 +05:00
README.md Added parsers (which parses text) and first parser for Gitea. 2017-08-28 08:04:38 +05:00

OpenSAPS

OpenSAPS stands for "Open Slack APi Server". This is an open-source implementation of Slack API server that can be used to integrate applications into each other using Slack API.

Initially this project was created for integrating Gitlab and Gitea into Matrix, because there was no good incoming webhooks support.

Installation

go get -u -v -d lab.pztrn.name/pztrn/opensaps
go install -v lab.pztrn.name/pztrn/opensaps

Configuration

Take a look at opensaps.example.yaml for configuration example. Right now there is no documentation about configuration file, but it will appear in future.

Usage

The only parameter OpenSAPS binary accepts is a configuration file path. Do it like:

opensaps -config /path/to/opensaps.yaml

About hooks and parsers

While configuring a webhook in your application, please, set username exactly same as one of parsers in parsers directory! Otherwise parser "default" will be used, which will just concatenate text and attachments into one message!

Also note - that nickname will be ignored while sending message to pushers.


IMPORTANT NOTICE

This project isn't affiliated nor developed by Slack itself.