GitLab pending merge requests overview

v0.2.0 2019-02-14 08:09 UTC

This package is auto-updated.

Last update: 2021-09-28 22:29:56 UTC


README

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 - github@daniel-pieper.com

License

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