Prpr plugin for notifying chat to Pull Request reviewers.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib/prpr
spec
.gitignore
.rspec
.travis.yml
CODE_OF_CONDUCT.md
Gemfile
LICENSE.txt
README.md
Rakefile
prpr-mention_reviewers.gemspec

README.md

Prpr::MentionReviewers

Prpr plugin for notifying chat to Pull Request reviewers.

Installation

Add this line to your application's Gemfile:

gem 'prpr-mention_reviewers'

Usage

When you assign Pull request reviewers, it post to chat service too.

To add chat service, use publisher adapter (e.g. prpr-slack).

Env

For MENTION_COMMENT_ROOM and MENTION_COMMENT_MEMEBRS, the same setting as prpr-mention_comment is used.

MENTION_COMMENT_ROOM - room name to post mention.
MENTION_COMMENT_MEMEBRS - a file name to map github username to chat service one. (Default: MEMBERS.md)
MENTION_REVIEWERS_BODY - notification message body. (Default: 'Please review my PR: %{title}')
MENTION_REVIEWERS_TO_DM - notify Direct Message instead of MENTION_COMMENT_ROOM. (Default: false)

%{field_name} of REVIEW_LABEL_NOTIFICATION is replaced with corresponding value in pull request payload (e.g. title, or body).

License

The gem is available as open source under the terms of the MIT License.