Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (30 sloc) 1.62 KB

reg-notify-github-plugin

reg-suit plugin to send notification the testing result to your GitHub repository.

Installing this plugin, reg-suit comments to your PR and sets commits' status.

Install

npm i reg-notify-github-plugin -D
reg-suit prepare -p notify-github

GitHub App and Client ID

To configure notify-github plugin, a client ID of your repository is needed. You can get the client ID via the following steps:

  1. Open https://github.com/apps/reg-suit and click "Install" button.
  2. Select repositories to integrate with reg-suit.
  3. After installation app, visit here and click the Get client ID button of the repository you want to integrate.

How to set commit status succeed

If reg-suit detects visual differences, it set the commit status failure. Sometimes you might dislike it because the difference is as you intended. In these cases, your reviewer can set the status green with submitting "Approve Review Changes".

Configure

{
  clientId: string;
  prComment?: boolean;
  setCommitStatus?: boolean;
}
  • clientId - Required - Client ID for reg-suit GitHub app. You can get it visiting here and click the Get client ID button.
  • prComment - Optional - Whether to allow reg-suit to comment to pull request. Default: true.
  • setCommitStatus - Optional - Whether to allow reg-suit to set commit status to fail if any visual differences are detected. Default: true.