Pegase745 / gitlab-freak

Flask server that allows you to interact with Trello from your own Gitlab, and keep track of your projects dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gitlab-freak

Usage

Install dependencies

$ mkvirtualenv gitlab_freak
$ workon gitlab_freak
(gitlab_freak)$ python setup.py gitlab_freak develop

Initialize database model

(gitlab_freak)$ gitlab-freak-init-db.py

Prepare config file

You need to copy config-sample.cfg somewhere on your server, and fill it with your desired configuration. Then export its path into an environment variable GITLAB_FREAK_SETTINGS.

GITLAB_TOKEN: find it on Gitlab, under your profile settings, Account section (private token). TRELLO_APPKEY: it'll be generated when visiting this page https://trello.com/app-key under the Key section. TRELLO_TOKEN: you'll be given it when launching for the first time gitlab-freak server and visiting the homepage. You'll need to restart the server after setting it.

Run dev server

(gitlab_freak)$ gitlab-freak-run-dev.py

Authorize the application

Visit for the first time the homepage and authorize gitlab-freak to access your Trello account. When done, put the generated token in gitlab-freak config file, and restart the server.

Set a webhook in Gitlab

In your project's setting, put the dispatch url of gitlab-freak (http://your-gitlab-freak-endpoint/dispatch) on issue trigger.

About

Flask server that allows you to interact with Trello from your own Gitlab, and keep track of your projects dependencies.

License:MIT License


Languages

Language:Python 63.6%Language:HTML 33.2%Language:JavaScript 3.2%