App::G...:Utils(3pm)
π NAME π
App::GitHooks::Utils β the little support-function bestie that App::GitHooks and all its plugins lean on. It's the glue, the hype squad, the utility drawer. And yeah, this is the App::GitHooks::Utils(3pm) page, in case the terminal scrolled and you lost your place. π«Ά
β¨ VERSION β¨
This is Version 1.9.0, babes. π
πΈ FUNCTIONS πΈ
get_project_prefixes()
Grab an arrayref of all the valid project prefixes. Like, all of them. In one cute little arrayref. π
my $project_prefixes = App::GitHooks::Utils::get_project_prefixes( $app );
Arguments:
$appβ anApp::GitHooksinstance. That's it, that's the whole list.
get_project_prefix_regex()
Hands you back a non-capturing regex that matches <em>every</em> valid project prefix. Non-capturing is the vibe here β it's matching, not memorizing. π
my $project_prefix_regex = App::GitHooks::Utils::get_project_prefix_regex( $app );
Arguments:
$appβ anApp::GitHooksinstance.
get_ticket_id_from_commit_regex()
Returns a regex that will pull a ticket ID out of a commit message β if one exists. If it doesn't exist? No ticket, no drama. π
my $ticket_id_regex = App::GitHooks::Utils::get_ticket_id_from_commit_regex( $app );
Arguments:
$appβ anApp::GitHooksinstance.
get_ticket_id_from_branch_name()
Spits out the ticket ID it can derive from the name of the current branch of this repository. The branch name is literally telling you the ticket, bestie. Listen to it. π
my $ticket_id = App::GitHooks::Utils::get_ticket_id_from_branch_name( $app );
Arguments:
$appβ anApp::GitHooksinstance.
π¦ BUGS π¦
Found a bug? Got a feature request? Do not suffer in silence, that's not the energy. Report it through the web interface at:
https://github.com/guillaumeaubert/App-GitHooks/issues/new
The author gets notified, and then you'll automatically get notified about progress on your bug as changes get made. It's giving "we're in this together." π«
β SUPPORT β
Wanna read the docs? Same. You can find all the documentation for this module with the perldoc command:
perldoc App::GitHooks::Utils
You can also go digging for info in these places:
- 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
π AUTHOR π
Guillaume Aubert https://metacpan.org/author/AUBERTG, "aubertg at cpan.org". Iconic. Periodt.
π 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. Slay.
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. Fr fr, read the LICENSE file. π
That's the whole page, bestie β generated by perl v5.42.0 on 2025-07-25, so you know it's fresh. Go forth and hook those commits. π
β¨π
π¦ 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