First Gitlab guided CLI to create your merge request from terminal
Don't change anymore context to open a merge request 👨🏻💻
$ npm install -g gitlab-merge
Create your configuration file.
gitlab-merge uses cosmiconfig for configuration file support.
This means you can configure cca via:
.gitlab-mergercfile, written in YAML or JSON, with optional extensions:
gitlab-merge.config.jsfile that exports an object.
"gitlab-merge"key in your
The configuration file will be resolved starting from the root of your project, and searching up the file tree until a config file is (or isn't) found.
Launch from terminal:
$ cd ~/my-projects$ gitlab-merge
Currently supported options are:
||Mandatory Api link of the gitlab host|
||Mandatory Your private token generated from gitlab. Where can I generate the private token?|
||Optional Project id for the destionation of the merge request. If you don't set the project_id in the configuration file the tool at the beginning fetch ALL the list of the project hosted to the api_link provided. Where can I find the project id in Gitlab?|
||Optional From which branch the merge request come from (default the local active branch)|
||Optional Target branch to merge changes|
||Optional Title of the merge request|
||Optional Description of the merge request|
||Optional Assignee id of the merge request. If you put
You can add to your config file the options that you want, here is the list.
Where can I generate the private token?
Very simple! go to your user settings in Gitlab at ´https://XXXXXXX/profile´
Where can I find the project id in Gitlab?
You can find the project id of your project in the details tab of the repo.
Check the issue list to contribute on some activities or to advice new features! The library is open to everybody, contribute improve your skills.
gitlab-merge is maintained under the Semantic Versioning guidelines.
npm run watch while coding.
MIT © Christian Varisco