/github-bot

This is a github bot that helps with managing issues, used on

Primary LanguagePHPMIT LicenseMIT

github-bot

This is a bot that helps with automated comments on github issues.

Features

  • Reply to issues when a label is added. E.g. add a comment to tell user to use forum instead when an issues does not contain a bug report or feature request.
  • move issues to other repositories, if the issue is specific to an extension. This action will be triggered by adding a label to an issue which is not closed (allowing to edit labels after an issue has been closed).

Installation

  • deploy this repo on a webserver.
  • run composer install
  • create a config.local.php and override things from config.php there.
  • run ./yii github/register to install webhooks in the repos.
    • The bot user needs Admin privilege to do this, this can be removed after registering the hooks, so it only needs Write privilege for normal actions. Alternatively you can specify the --noAdmin option for running the command, which allows you to specify a github auth token for a user that has admin privileges.
    • register can safely run multiple times, it does check whether a hook already exists and updates the hook instead of adding duplicates.

Uninstall

  • run ./yii github/un-register to remove webhooks from the repos