2.0.0 • Published 4 years ago
gitlab-merge-request-flow v2.0.0
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
- install
npm install gitlab-merge-request-flow
- 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
- A real example for functional programming(with
fp-ts
andtagless final
) - Get rid of the tedious work of pushing your code to the "main" branch.
See also
Note
Make sure know what you do before run it, SPECIALLY WHEN YOUR REPOSITORY INTEGRATED WITH CI.