Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
/ mrcli Public archive

mrcli - GitLab merge requests overview

License

Notifications You must be signed in to change notification settings

danielpieper/mrcli

Repository files navigation

MrCli - GitLab pending merge requests overview Build Status

Scrutinizer Coverage Scrutinizer Code Quality License

MrCli checks your gitlab instance for pending merge requests.

Get an overview about the total number of pending mr's by approvers and projects, list mr's for your own, your colleagues or multiple projects.

Installation

Install the latest version with

$ composer global require danielpieper/mrcli

Configuration

mrcli is configured using environment variables. The GITLAB_TOKEN is required. Create a token with the api scope: https://gitlab.com/profile/personal_access_tokens

GITLAB_URL=https://gitlab.com # optional, set for on-premise installations
GITLAB_TOKEN=<gitlab token> # create gitlab token with api access: https://gitlab.com/profile/personal_access_tokens
SLACK_WEBHOOK_URL=<slack webhook url> # optional
SLACK_CHANNEL=<slack channel name, for example #merge_requests> # optional

Basic Usage

mrcli overview
mrcli project <project names separated by space>
mrcli approver <approver name, leave empty for your mr's>

About

Requirements

  • MrCli works with PHP 7.1 or above

Author

Daniel Pieper - [email protected]

License

MrCli is licensed under the MIT License - see the LICENSE file for details