Git Product home page Git Product logo

gitlabbot's Introduction

GitlabBot

GitlabBot is a gitlab merge request munger, with useful features.

Golang implementation of Gitlab Munger, with following features:
- Commenting
- Merging
- LGTM Counts
Using Gitlab database as well as webhook on the project.

Usage:
  gitlabbot [flags]

Flags:
  -H, --dbhost string        Postgres database Hostname/IPAddress (default "localhost")
  -n, --dbname string        Gitlab database name (default "gitlabhq_production")
  -p, --dbpassword string    Gitlab database password (default "Aa111111")
  -P, --dbport int           Postgres database port number (default 5432)
  -u, --dbuser string        Gitlab database username (default "gitlab")
  -b, --gitlabbase string    Gitlab base url (default "http://localhost:10080")
  -g, --gitlabbot string     Gitlab username for the bot, Case sensetive (default "gitlabbot")
  -t, --gitlabtoken string   Gitlab user token for API access (default "K8F8SZEHyq4Dm9osdTT3")
  -h, --help                 help for gitlabbot
  -l, --lgtmtreashold int    Number of LGTMs required to merge the request (default 2)
  -v, --version              Prints version info

Setup:

  1. Create user and name it "GitlabBot" then create an access token with and elevate it to admin priveleges on your project in gitlab.
  2. Clone and build.
  3. Run the binary specifying the required parameters.
  4. Go to gitlab, Create a merge request, You should see the bot commenting help messages there.

gitlabbot's People

Contributors

farhadf avatar

Watchers

 avatar  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.