2.0.0 • Published 4 years ago

gitlab-merge-request-flow v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Gitlab Merge Request FLow

What is

A tool for do following thing just one command line: 1. rebase remote branch, then 2. push local branch, then 3. create merge request, then 4. merge it

How

  1. install npm install gitlab-merge-request-flow
  2. config your gitlab info:
{
  "project_name_a": {
    "workingBranch": "daily/jituanlin",
    "targetBranch": "develop",
    "projectId": 42,
    "gitlabToken": "xxx",
    "gitlabHost": "http://xxx.xxx.xxx",
    "workingDir": "/xxx/xxx/xxx"
  }
}

The project_name_a is a project name. You can config multiple projects and distinguish by project name.
2. run command gmrf /project_name_a /your_config_path for execute the flow( see What is section for detail); The project_name_a /your_config_path is where you put your config file, default to ~/.config/glmr/config.json

Why

  1. A real example for functional programming(with fp-ts and tagless final)
  2. Get rid of the tedious work of pushing your code to the "main" branch.

See also

Tag Less Final introduction

FP-TS To Max

Note

Make sure know what you do before run it, SPECIALLY WHEN YOUR REPOSITORY INTEGRATED WITH CI.