Get members email address for mail on SVN commit
Added by Laurent Steck over 13 years ago
Hi to everyone
I wish to set commit email for SVN repository with Redmine.
I know this is part of SVN not of redmine but I need to get the list of email addresses of all members of a projet to send the commit email to.
How is this possible ?
I also know the is a diffEmail plugin that could help me but I need the customize the commit email's content as well.
Thanks for any answer
Regards
Laurent
Replies (1)
RE: Get members email address for mail on SVN commit
-
Added by Felix Schäfer over 13 years ago
Try something like:
/path/to/your/redmine/script/runner 'puts Project.find("project-id").users.collect(&:mail).join("\n")'
You could also make that a script of its own and pass it the ID of the project:
#!/usr/bin/env /path/to/your/redmine/script/runner puts Project.find($1).users.collect(&:mail).join("\n")