danielpieper/mrcli
GitLab pending merge requests overview
Maintainers
Requires
- php: ^7.1
- ext-curl: *
- ext-iconv: *
- league/container: ^3.2
- m4tthumphrey/php-gitlab-api: ^9.11
- nesbot/carbon: ^2.7
- php-http/cache-plugin: ^1.5
- php-http/guzzle6-adapter: ^1.0
- php-http/logger-plugin: ^1.0
- razorpay/slack: ^1.10
- symfony/cache: ^4.2
- symfony/console: ^4.0.4
- vlucas/phpdotenv: ^3.1
Requires (Dev)
- fzaninotto/faker: ^1.7
- infection/infection: ^0.11.0 || ^0.12.0
- php-http/mock-client: ^1.2
- phpmd/phpmd: ^2.6.0
- phpunit/phpunit: ^8.0
- sebastian/phpcpd: ^4.0.0
- squizlabs/php_codesniffer: ^3.2.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 4a12af05ccfa0d56fb5d4cefcc911862d2574271
- Daniel Pieper <github.woop@daniel-pieper.com>
This package is auto-updated.
Last update: 2023-01-29 14:55:05 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
