Skip to content

cssho/prpr-mention_reviewers

 
 

Repository files navigation

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.

About

Prpr plugin for notifying chat to Pull Request reviewers.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 97.5%
  • Shell 2.5%