App::G...:Utils(3pm)

πŸ“¦
version 1.9.0 Β· 2 versions
, in fedora 43

πŸ’– 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 β€” an App::GitHooks instance. 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 β€” an App::GitHooks instance.

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 β€” an App::GitHooks instance.

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 β€” an App::GitHooks instance.

πŸ¦‹ 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 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