SVN::H...eckLog(3pm)

πŸ“¦
version 1.36 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

SVN::Hooks::CheckLog β€” bestie, this is the plugin that checks your commit log messages. Like, it reads them. And judges them. Lovingly. πŸ’…


πŸ’– VERSION πŸ’–

version 1.36 (yes she's grown, we're proud πŸ₯Ή)


🌸 SYNOPSIS 🌸

Okay so real talk: this SVN::Hooks plugin lets you check whether the log message in an svn commit actually conforms to a Regexp. No more "asdf" commits, no more empty messages, no more "fixed stuff lol". We're gatekeeping quality now. πŸ‘‘

It's active in the pre-commit hook, so it does its thing before the commit goes through β€” it's giving bouncer-at-the-club energy, checking your ID at the door. πŸšͺ✨

It gets configured by this directive right here:

πŸŽ€ CHECK_LOG(REGEXP[, MESSAGE]) πŸŽ€

So the REGEXP argument has to be a qr/quoted regexp/ β€” like, an actual compiled regexp β€” and it must match the commit log messages. If it doesn't match? The commit gets aborted. Straight up. No vibes, no mercy, no commit. 😭

The MESSAGE argument is optional and it's the error message that gets shown to the user in case the check fails. So when someone's log message flops the vibe check, this is what they see. Be nice about it, or don't, your call. 🫢

CHECK_LOG(qr/.../ => "The log message cannot be empty!");
CHECK_LOG(qr/^\[(prj1|prj2|prj3)\]/
          => "The log message must start with a project tag.");

See how the first one is like "bestie the message can't be empty" and the second one is like "tag your projects please, we're not animals"? Iconic. πŸ”₯


🌈 AUTHOR 🌈

Gustavo L. de M. Chaves <gnustavo@cpan.org> β€” absolute legend, no cap. πŸ’œ


This software is copyright (c) 2022 by CPqD <www.cpqd.com.br>. Slay.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So like, go off, remix it, share it, it's free fr fr. 🌸


And that's the whole page, bestie! πŸ¦‹ This was perl v5.36.0, dated 2022-09-11, and you just read SVN::Hooks::CheckLog β€” manual page, but make it cute. Mwah. πŸ’‹βœ¨

πŸ“¦ where this page comes from