Project

General

Profile

Notifications for changesets

Added by Ricardo Trindade about 16 years ago

Hi,

I did a quick patch for redmine to be able to send changeset notifications in the same way that it sends notifications for issues, news, etc..

I found this to be usefull because the svn notification hook script we were using was too basic (everyone was notified on all projects, we kept having to change the script when with news developer's emails, mails were ugly, we wanted better redmine integratin, etc..)

This of course requires a post commit hook to warn redmine that a commit has occurred (currently just requests a url). After that, I just call Repository.fetch_changesets, and send a notification upon changeset creation, considering the user's preferences (similar to notifications for issue changes). The end result is pretty cool.

Would it be interesting to include something like this in the standard redmine ? I can send a patch.

regards,
Ricardo


Replies (12)

RE: Notifications for changesets - Added by Anonymous about 16 years ago

Hi Ricardo,
I hacked up something like this as a pure SVN post-commit hook, using a mysql query to discover which issue the changeset should be related to, to produce hyperlinks in the email back to Redmine. However, it is ugly. For example, I wanted to map 'r1234' in the commit message to a hyperlink back to the Redmine changeset view, enabling developers to review the changeset differences in Redmine. Because a changeset hyperlink in Redmine includes the project ID, I've had to hardcode it for the moment until I can spend some time working out the MySQL query to discover the project ID for a given changeset.
Ideally, I would like to see a built-in feature in Redmine that can be configured to send notification emails/RSS to interested users, e.g. issue owner, watchers, etc. when a new changeset is detected. It would be simple then to write an SVN post-commit hook script for notifying Redmine that there is a new changeset (i.e. calling Repository.fetch_changesets). I'm guessing it would be simple for others to create similar post-commit hooks for other SCMs. (And all of them could be published on RedmineHacks ;-)

Cheers,
Jonathan.

RE: Notifications for changesets - Added by Ricardo Trindade about 16 years ago

Hi,

Well, that's what I did. The notification email even contains the diff, as shown in the redmine diff view. So my question now is how to contribute this...

thanks,
Ricardo

RE: Notifications for changesets - Added by Carolyn Goodman over 15 years ago

Ricardo,

Did this patch get into the main Redmine? I didn't see an issue related or a file. This would be a great tool.

-Carolyn

RE: Notifications for changesets - Added by Ricardo Trindade over 15 years ago

Hi,

It was never integrated into Redmine. I wrote this post mainly to get feedback about the patch functionality, before creating an issue with the attached file.

I can still add the patch.

regards,
Ricardo

RE: Notifications for changesets - Added by Mark P over 15 years ago

I would be interested in such a patch as well.

RE: Notifications for changesets - Added by Ricardo Trindade over 15 years ago

Hi,

I'll bring the patch up to date with current redmine trunk, and also see if it can be turned into a plugin. If it can, I think it would make sense to release it as such, otherwise, I'll submit it as a patch.

regards,
Ricardo

RE: Notifications for changesets - Added by Axel B. about 15 years ago

Hi Ricardo,

what's the current status of the patch / plugin development for this feature. I would really like to implement this feature in my new Redmine system.

Greetings,
Axel

RE: Notifications for changesets - Added by Adrian Tarau almost 15 years ago

+1

This would be really helpful to be integrated in Redmine...

RE: Notifications for changesets - Added by Lukas Pirl almost 10 years ago

I know this is a fairly dusty thread but I just brought an almost as dusty plugin back to life:
https://github.com/lpirl/redmine_diff_email

I hope this helps someone else who stumbles across this thread because it is one of a few relevant search results. ;)

Feel free to help me maintain the plugin since I am actually not a rails guy.

    (1-12/12)