s9y/Serendipity — Issue #1: Email notifications for collaborator commits
Author: ophian
Created: 2012-01-01 12:54:21+00:00
State: open

*Happy new Year to all of you*

You might have noticed that something is missing in the current briefing of organization members. There are no email-notifications for commits and keeping track of real changes is difficult, especially for larger organizations or being a member of some, as you have to check in to the website permanentely. (There are commit hooks, and one of them is email, but only one email address can be provided, users can't choose to listen or not, like all the other notifications.) Commits show up only in the news feed or by adding a comment to each pushed commit. First is bad as you have email and/or news feed to look up for; the Second expects some extra work by any pushing collaborator.

There have been others wishing this feature, like:
http://stackoverflow.com/questions/552360/git-push-email-notification
which leads to some scripts enabling commit notifications. (there are more out there)

As I am still far away to understand all the official or hidden gems of gitting, I started to know about Git having a way to fire off custom scripts when certain important actions occur. There are two groups of these hooks: client side and server side. The client-side hooks are for client operations such as committing and merging. The server-side hooks are for Git server operations such as receiving pushed commits.

In our case we need to use something like the server-side POST-recieve Hook to execute a commit mailing list script, right?
This has to be filled with all push/pull collaborator email adresses, unless someone does not want it and off we go.
The script can be be customized to show more or less detailed commit statements.

Is that possible, Garvin? Is it worth to add it to s9y/repo org? And are all other Collaborators willing to have that?

Ian
*(and here my knowledge currently stops, so don't ask me to do this ... )*