Checks the PR count based on a specified search config. If the limit is breached, it will post a specified message onto your specified slack channel using web hooks!
Under the src/PRCountChecker/Config/ directory you will find a class that extends PRCountChecker/Config.php. Simply add a new config class and set the config variables in the constructor. Once the new class is created, go to index.php and add the class to the getConfigs container.
- Should be run on a Unix environment.
curlcmd-line utility installed.- Composer
- PHP 5+
- First thing is first, we need to use composer to get it's dependencies.
# curl -sS https://getcomposer.org/installer | php
# php composer.phar install
- Run this program as a cron on a server, and add a new config for each team that would like to use this checker. Only 1 instance of this program is required for multiple teams.
php index.php GET /run
Note, the example below has the limit set to 1 for a quick test. You can set this limit to anything you'd like.
