Notification¶
Commit/push messages¶
For commit/push messages, you need to update the hooks directory in the repositories, by ssh-ing into the p-project@cdcvs.fnal.gov account
and editing it (you need to be a Manager on the project, and be using Kerberos authentication to do this).
We do have some scripts that will use the RepositoryMailinglists field on yor Settings/Information page; or you can roll your own, there is an executable
/usr/local/bin/get_rm_ml projectnamewhich will pull that text for you to use in your scripts.
I've been planning at some point to do a Grand Unified notification script
that would handle CVS, Git and Subversion notifications; but it's been
idling on a back burner for some time.
for Git, we also have several flavors of git_commit_notifier
lying around: one which pulls the malinglist config stuff out of the repository, and the other which uses the get_rm_ml business. You can make a symlink
post-receive -> /fnal/ups/db/fnal_git_notifier/current/scripts/fnal-git-notify-redminefor the git_commit_notifier that gets the mailinglist text block into its configuration, or you can put in
post-receive -> /fnal/ups/db/fnal_git_notifier/current/scripts/fnal-git-notifyfor the one that gets things from a file
config/mailinglist.cfg
in the repository.
For SVN we have /usr/local/bin/commit-email.pl
which some people like for
sending fancy commit messages.