App::GitHooks::Utils - Support functions for App::GitHooks and its plugins.
Version 1.9.0
Get an arrayref of valid project prefixes.
my $project_prefixes = App::GitHooks::Utils::get_project_prefixes( $app );
Arguments:
$app
An App::GitHooks instance.
App::GitHooks
Return a non-capturing regex that will match all the valid project prefixes.
my $project_prefix_regex = App::GitHooks::Utils::get_project_prefix_regex( $app );
Return a regex that will extract a ticket ID from a commit message, if it exists.
my $ticket_id_regex = App::GitHooks::Utils::get_ticket_id_from_commit_regex( $app );
Return the ticket ID derived from the name of the current branch for this repository.
my $ticket_id = App::GitHooks::Utils::get_ticket_id_from_branch_name( $app );
Please report any bugs or feature requests through the web interface at https://github.com/guillaumeaubert/App-GitHooks/issues/new. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc App::GitHooks::Utils
You can also look for information 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
Guillaume Aubert, <aubertg at cpan.org>.
<aubertg at cpan.org>
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.
To install App::GitHooks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::GitHooks
CPAN shell
perl -MCPAN -e shell install App::GitHooks
For more information on module installation, please visit the detailed CPAN module installation guide.