SVN::H...Notify(3pm)
β¨ NAME β¨
SVN::Hooks::Notify β bestie, it's Subversion activity notification π (that's the whole name, we're just vibing with it, the manual page is SVN::H...Notify(3pm) if you're keeping track)
π VERSION π
version 1.36 β yeah she's got a number and she's proud of it π
π¦ SYNOPSIS π¦
So this SVN::Hooks plugin sends notification emails for Subversion repository activity. And when I say "sends notification emails" I mean it's literally just a simple wrapper around the SVN::Notify module β it's giving middle-management energy, it delegates and it slays π«Ά
She's active in the post-commit hook. That's her shift. That's when she shows up. Periodt.
And she gets configured by the following directives:
πΈ NOTIFY_DEFAULTS(%HASH) πΈ
Okay so this directive is the one that lets you specify default arguments for the SVN::Notify constructor. Like, the baseline fit that everything else builds on β¨
NOTIFY_DEFAULTS(
user_domain => 'cpqd.com.br',
sendmail => '/usr/sbin/sendmail',
language => 'pt_BR',
);
NOTIFY_DEFAULTS(smtp => 'smtp.cpqd.com.br');
And please, bestie, go see the SVN::Notify documentation to know about all the available options. I'm not gatekeeping, I'm just telling you where the full menu lives π
π NOTIFY(%HASH) π
This directive merges the options received with the defaults obtained from NOTIFY_DEFAULTS and passes the result to the SVN::Notify constructor. Merge and pass. That's the whole plot π¬
Not me pointing out that neither therepos_pathnor therevisionoptions need to be specified β they are grokked automatically. She just knows. Main character energy fr fr π
NOTIFY(
to => 'commit-list@example.com',
with_diff => 1,
);
NOTIFY(
to_email_map => {
'^trunk/produtos|^branches' => 'commit-list@example.com',
'^conf' => 'admin@example.com',
},
subject_prefix => '[REPO] ',
attach_diff => 1,
);
Look at those to_email_map regex keys routing mail around like she's directing traffic at the function. Iconic. No cap. π
π AUTHOR π
Gustavo L. de M. Chaves <gnustavo@cpan.org> β the author, the legend, the one who made this happen π«‘
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2022 by CPqD <www.cpqd.com.br>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Okay so like, that's the whole page, you're fully caught up, go configure your hooks bestie π§
Signing off from perl v5.36.0, dated 2022-09-11, on the manual page SVN::H...Notify(3pm) β mwah, drink water, and remember to read the SVN::Notify docs for the full option list πβ¨
π¦ where this page comes from
- ubuntu noble: libsvn-hooks-perl 1.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsvn-hooks-perl 1.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsvn-hooks-perl 1.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms