Gitlab Merge Request FLow
What is
A tool for do following thing just one command line:
- rebase remote branch, then
- push local branch, then
- create merge request, then
- 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
and tagless final
) - 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.