flutter format check start
format check succeed
dartanalyzer check start
Analyzing xxxxxxxxxxxx...
No issues found!
Do you agree with use the default merge request title?: (FIX) fix the error of Error from the analysis server: Analysis failed
You can input 'n' to disagree it:
Current branch is master. Please input merge request source branch:test/master
merge project id = 3114
merge title = (FIX) fix the error of Error from the analysis server: Analysis failed
merge branch = test/master
merge labels = engineering
squash = true
request data: {
"id":3114,
"target_branch":"master",
"source_branch":"test/master",
"title":"(FIX) fix the error of Error from the analysis server: Analysis failed",
"assignee_id":1569,
"labels":"engineering,script",
"remove_source_branch":true,
"squash":true
}
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2420 100 2028 100 392 1107 214 0:00:01 0:00:01 --:--:-- 1284
You can click it to view the MR:"https://xxxxxxxxxxxxxxxxxxxxxxx/merge_requests/45"
NAME
gmr -- dartanalyzer projct and create a merge request after that
DESCRIPTION
-t|--title|--title=
set merge request title. If not this option.'${BLUE_COLOR_START}' You can input title at last '${BLUE_COLOR_END}'
or it will get the first commit content of current branch with origin/master branch, you can use it.
-b|--branch|--branch=
branch of need merge to master.'${BLUE_COLOR_START}' Default current branch '${BLUE_COLOR_END}'
-l|--lables|--lables=
Labels for MR as a comma-separated list.'${BLUE_COLOR_START}' Default"engineering" '${BLUE_COLOR_END}'
-s|--squash
false of squash.'${BLUE_COLOR_START}' Default is true '${BLUE_COLOR_END}'
-p|--pid[=]|--set-pid[=]
set the project id of current MR | set default gitlab project id. '$BLUE_COLOR_START'Default is 341 food_mex_moblie'$BLUE_COLOR_END'
-u|--uid[=]|--set-uid[=]
set assignee user of current MR | set default gitlab user id. The mr will Assignee to him default
--token[=]|--set-token[=]
set and show gitlab token. If the input value is empty. Will only show current token
--dartanalyzer[=]|--set-dartanalyzer[=]
set and show dartanalyzer path. If the input value is empty. Will only show current dartanalyzer path
--host[=]|--set-host[=]
set and show gitlab host. If the input value is empty. Will only show current gitlab host
-h|--help
show help
EXAMPLE
a full command: gmr -t "(CHORE) create a mr use script" -b guosiyi/master_inbox -l "engineering,CHERRY-PICK,task"
a simple command: gmr -t "(CHORE) create a mr use script"
or only gmr and use the default title or input title after dartanalyzer complete