# glmr

> Merge Request Utility API on GitLab

Latest version **1.6.0** (published 2019-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install glmr
pnpm add glmr
yarn add glmr
bun add glmr
```

Provides the command `glmr`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.6.0 |
| Published | 2019-10-10 |
| First published | 2019-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sergio Davi |
| Maintainers | sdteotonio |

## Links

- npm: https://www.npmjs.com/package/glmr
- Repository: https://github.com/sdteotonio/gitlab-merge-request
- Homepage: https://github.com/sdteotonio/gitlab-merge-request#readme
- Issues: https://github.com/sdteotonio/gitlab-merge-request/issues
- npm.io page: https://npm.io/package/glmr

## Dependencies (3)

- [stdio](https://npm.io/package/stdio.md) 0.2.7
- [request](https://npm.io/package/request.md) 2.81.0
- [shelljs](https://npm.io/package/shelljs.md) 0.8.3

## Recent versions

- 1.6.0 (latest) — 2019-10-10
- 1.5.0 — 2019-10-09
- 1.4.0 — 2019-10-09
- 1.3.0 — 2019-10-08
- 1.2.1 — 2019-10-08
- 1.2.0 — 2019-10-08
- 1.1.1 — 2019-10-08
- 1.1.0 — 2019-10-08
- 1.0.0 — 2019-10-04

## README

# A simple NodeJS application for Merge Request in GitLab.  
  To use it first, you must be in a **repository** and preferably the installation must be **global**.

    

 - > npm install -g glmr
 - > glmr -v
  - > glmr --help
  
#### Requests require a *token* for authentication, so it is important to purchase [one here](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token).  
Once you get your token, you must set it to the local repository, follow the example:
> git config --add gitlab.token "GITLAB-ACCESS-TOKEN"

By default the **current branch** will be set as the base branch for the merge request.

#### Open Merge Request
To open a merge request the following command must be used:  

     glmr target-branch

 - **target-branch** - Branch where merge request should be requested.
#### Title
If you want to set a merge request title the following command should be used:  

      glmr target-branch -t "MR Title"
#### No remove source branch
By default, the remove source branch option is checked, but if you want to open merge request without the option, the following command must be used:

    glmr target-branch --no-remove
#### WIP
If you want to open a Merge Request with WIP, the following command must be used:

    glmr target-branch -w
or

    glmr target-branch --wip
#### Assignee
If you want to open a Merge Request by signing for some user, the following command must be used:

    glmr target-branch -u user.name
or

    glmr target-branch --user user.name
#### Default values
> git config --add glmr.remove < true | false >
- Set default remove source branch flag
> git config --add glmr.target "target-branch"
- Set default target branch

---
_Source: https://npm.io/package/glmr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
