Giter Club home page Giter Club logo

hubot-gitlab-hooks's Introduction

hubot-gitlab

Hubot Script for providing webhooks for Gitlab

Installation

For this script to take effect first install it with:

npm install --save hubot-gitlab-hooks

For this script to track your system events put this URL in as system hook:

http://<HUBOT_URL>/gitlab/system

For each Repository which should be tracked through the system use this URL as your web hook:

Put http://<HUBOT_URL>/gitlab/web

#Configuration

There are different options for configuration:

Via Environment- variables or via query params:

##ENV

#####GITLAB_CHANNEL

The Room to which the gitlab messages get published. Use like this:

For HipChat

GITLAB_CHANNEL="[email protected]"

#####GITLAB_DEBUG

Switches on debugging mode. Simply outputs more stuff :)

#####GITLAB_BRANCHES

Which branches should be pushed to chat.

Note: all push events are pushed to hubot but then the not required ones are discarded.

GITLAB_BRANCHES="master,develop"

#####GITLAB_SHOW_COMMITS_LIST

If the commits should be listed when code is pushed.

GITLAB_SHOW_COMMITS_LIST=0

#####GITLAB_SHOW_MERGE_DESCRIPTION

If the the merge request hook should also show the description. Useful for adapters like IRC where long descriptions can spam the channel

GITLAB_SHOW_MERGE_DESCRIPTION=0

##Query Params

#####targets

Same as ENV GITLAB_CHANNEL

?targets=%23room1,%23room2

######Sampleurl

http://hubot.mydomain.com/gitlab/web?targets=%23room1,%23room2

#####branches

?branches=master,develop

######Sampleurl

http://hubot.mydomain.com/gitlab/web?branches=develop,master

Contributors

License

hubot-gitlab-hooks is MIT Licensed.

hubot-gitlab-hooks's People

Contributors

spruce avatar milani avatar erichogue avatar

Watchers

 avatar James Cloos avatar Amir Sabbaghi avatar  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.