Giter Club home page Giter Club logo

gitlab-monitor's Introduction

Gitlab monitor

Monitors gitlab project and show system notifications when an event occurs. Running on Windows and Linux.



Installation

1. Ruby interpreter

Install ruby interpreter. For linux use RVM, for windows RubyInstaller.

2. Bundler

Make sure you have bundler gem installed:

gem install bundler

3. Dependencies installation

Enter gitlab_notify/app directory and install dependencies:

bundle install

4. Running Gitlab Monitor

To manualy run gitlab monitor enter app folder and execute below command:

bundle exec ruby gitlab_monitor.rb

Configuration

Edit file app/configuration.rb

Running systemd service (Linux only)

Copy service file to user services directory:

cp systemd-service/gitlab_monitor.service ~/.config/systemd/user

Replace GITLAB_MONITOR_DIR with gitlab_monitor location:

sed -i -- 's?GITLAB_MONITOR_DIR?'`pwd`'?g' ~/.config/systemd/user/gitlab_monitor.service

Enable service:

systemctl --user enable gitlab_monitor

Autostarting on windows

There are two starters prepared in 'windows-starter' directory:

  1. windows-starter/gitlab_monitor.bat - runs app in command line window
  2. windows-starter/start_in_backgroud.vbs - runs above batch file in the background

To add it to windows autostart create a shortcut of start_in_background.vbs file, and move it to startup folder. Startup folder can be opened by running shell:startup in windows 'run' window. In general it is located in C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

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.