App::G...mReply(3pm)
π App::GitHooks::Plugin::Test::CustomReply π
okay bestie, so this is a page from the User Contributed Perl Documentation, section 3pm, and it's all about App::GitHooks::Plugin::Test::CustomReply. It's a test plugin, and the whole point of it is that you get to pick the return code yourself. no cap. that's the vibe. π
β¨ NAME β¨
App::GitHooks::Plugin::Test::CustomReply β a test plugin that lets you specify the return code. literally its whole job. π
πΈ DESCRIPTION πΈ
bestieβ¦ the description section is empty. not me pointing at a blank space like ποΈπποΈ. that's just how it is in the original, so we move. π¦
β SYNOPSIS β
here's how you actually use it, copied exactly so you don't have to guess:
use App::GitHooks::Constants qw( :PLUGIN_RETURN_CODES );
use App::GitHooks::Plugin::Test::CustomReply;
# In .githooksrc.
# [Test::CustomReply]
# pre-commit = PLUGIN_RETURN_FAILED
# prepare-commit-msg = PLUGIN_RETURN_PASSED
# Run hooks calling the plugin.
so you drop that config in your .githooksrc, pick which return code each hook should spit out, and then run your hooks calling the plugin. easy. slay. π₯
π VERSION π
Version 1.9.0. periodt. π
π«Ά METHODS π«Ά
π§ get_file_pattern()
returns a pattern to filter which files this plugin should even bother analyzing. gatekeeping, but make it regex-y. β¨
my $file_pattern = App::GitHooks::Plugin::Test::CustomReply->get_file_pattern(
app => $app,
);
π§ get_file_check_description()
returns a description of the check that the plugin runs on your files β the one that gets shown to the user, if applicable, right alongside whether the plugin passed or failed. very main character of it. π
my $description = App::GitHooks::Plugin::Test::CustomReply->get_file_check_description();
π SUPPORTED HOOKS π
this plugin supports all the hooks defined in App::GitHooks::Hook::*, including file-level checks for the appropriate hooks. the whole roster, no skips:
run_applypatch_msgrun_commit_msgrun_post_applypatchrun_post_checkoutrun_post_commitrun_post_mergerun_post_receiverun_post_rewriterun_post_updaterun_pre_applypatchrun_pre_auto_gcrun_pre_commitrun_pre_commit_filerun_pre_pushrun_pre_rebaserun_pre_receiverun_prepare_commit_msgrun_update
eighteen hooks, all of them invited to the party. π
π BUGS π
found a bug? want a feature? pls report it through the web interface at <https://github.com/guillaumeaubert/App-GitHooks/issues/new>. the maintainer gets notified, and then you automatically get notified of progress on your bug as changes are made. mutual notif situation. π«Ά
π SUPPORT π
you can find the docs for this module with the perldoc command:
perldoc App::GitHooks::Plugin::Test::CustomReply
and you can also go looking for info at:
- GitHub's request tracker
<https://github.com/guillaumeaubert/App-GitHooks/issues>
- AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/app-githooks>
- CPAN Ratings
<http://cpanratings.perl.org/d/app-githooks>
- MetaCPAN
<https://metacpan.org/release/App-GitHooks>
four whole places to lurk. iykyk. πΈ
π AUTHOR π
Guillaume Aubert <https://metacpan.org/author/AUBERTG>, "<aubertg at cpan.org>". the icon who made this. π
π COPYRIGHT & LICENSE π
Copyright 2013-2017 Guillaume Aubert.
This code is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for more details.
bestie the caps lock on those warranty disclaimers is not a drill β no promises, read the LICENSE file. π«‘
and that's the whole page, babe. π this little writeup lives in perl v5.42.0, dated 2025-07-25, filed under App::G...mReply(3pm) in the User Contributed Perl Documentation. go forth and return-code your heart out. π β¨π
π¦ where this page comes from
- fedora 43: perl-App-GitHooks 1.9.0-27.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms