/redmine_diff_email

A plugin for Redmine to send diff emails to project developers upon checkin.

Primary LanguageRubyMIT LicenseMIT

This plugin sends diff emails for each changeset pushed to a repository.

Table of Contents

Description

This project is a fork of https://github.com/cou2jpn/redmine_diff_email what itself is a fork of https://github.com/kahseng/redmine_diff_email.git (what was originally developed by https://github.com/Lamar/).

The following modifications were made by cou2jpn:

  • E-mail headers added.
  • Multi-language support (send e-mail in the language of the committer).
  • Support for multipart e-mail (with text messages).
  • View diff in mail abolished.
  • Abolished by users in custom field settings. By project (by the repository) Sets whether to send email.
  • Changes to send mail to project members authorized repository browser.
  • Add the option of attaching diff file or not.
  • To see a list of changed files on the commit in the body of the email. (Git, Subversion, Mercurial)

Installation

This plugin is tested and developed with the current Redmine version (2.6). Please drop me a note if you find [in]compatibilities with other versions.

To

  ./app/views/repositories/_form.html.erb

or (if you have the redmine SCM plugin installed) to

  ./plugins/redmine_scm/app/views/repositories/_form.html.erb

add the following:

 --- OLD
 +++ NEW
 @@ -23,6 +23,7 @@
    <%  button_disabled = ! @repository.class.scm_available %>
    <%= repository_field_tags(f, @repository) %>
  <% end %>
 +<%= call_hook(:view_repository_form) %>
  </div>
  <p>

Now follow the plugin installation procedure at http://www.redmine.org/projects/redmine/wiki/Plugins#Installing-a-plugin .

Configuration

SomeProject -> "Settings" Tab -> "Repositories" Tab -> "Edit"

Once commit messages are enabled, users fulfilling all of the following criteria will receive commit notifications per mail:

  • users that are members of that project
  • users with roles that are allowed to view changesets
  • users that receive notifications for the corresponding project
To check whether you receive notifications for a certain project, check your account settings at the "My account" page and make sure that "Email notifications" is set to "all projects" or "selected projects" respectively.

CI


Thanks to n-rodriguez for the setup.