Coder Social home page Coder Social logo

jibber's Introduction

Jibber is simple tool which can be used with any WebHook (for example, with Jira WebHooks) to transform hook payload to jabber messages. Very useful with Jira. Just in case you do not want HipChat.

Installation

Arch Linux

You can obtain package by checkout pkgbuild branch and running makepkg:

git clone [email protected]:seletskiy/jibber.git
cd jibber
git checkout pkgbuild
makepkg -f

Go Get

You can always go get this package:

go get github.com/seletskiy/jibber

Configuration

Configuration can be either specified by command line, or via /etc/jibber/jibber.conf file, which has following syntax:

<option>
  [<value>]

Jibber expects to find some template files in the /etc/jibber/tpl/, so either install jibber as package or provide another --tpl-dir command line argument. Like this:

jibber --tpl-dir=./tpl/

Templates

jibber uses extensive use of golang templates, so no code recompilcation and no daemon restart is needed to change style of reported messages.

Template syntax is slightly enhanced, consider read about it: https://godoc.org/github.com/seletskiy/tplutil

jibber will pass JSON fields hierarchy as is to the template. You can use --debug flag to see what's coming from Jira in pretty-pring format on the stderr.

See default message formats and how they are formatted in the tpl/ dir.

Example configuration to send jabber notifications

Configure jibber

Using usual xmpp

/etc/jibber/jibber.conf

xmpp

--user
    [email protected]

--pass
    bot-password

--to
    [email protected]

--host
    your.host.name:5222

--join

If you see strange errors about TLS and stuff try to use one of following options:

  • --no-tls --- disable TLS completely, not recommended, server may not support that mode;
  • --start-tls --- use TLS but only when server say about it;
  • --no-verify-tls-host --- skip hostname validation in certificate check;
  • --debug --- you will see complete dump of answers from server in XML;

Using mod_rest

/etc/jibber/jibber.conf

mod_rest

--url
    http://your-ejabberd-server:5280/rest/

--to
    [email protected]

For debugging

/etc/jibber/jibber.conf

stdout

--debug

Launch jibber to listen (default port is 65432).

Configure Jira

Go to Administration/System/WebHooks and add WebHook, like this:

WebHook example

After that, you should see notifications in your specified room when issues in specified project are changed.

jibber's People

Contributors

seletskiy avatar ischluff avatar kovetskiy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.