NAME
Bot::BasicBot::Pluggable::Module::Gitbot - A Bot::BasicBot::Pluggable Module to give out Gitweb links for commits.
VERSION
Version 0.01.05
SYNOPSIS
use Bot::BasicBot::Pluggable;
my $bot = Bot::BasicBot::Pluggable->new();
$bot->load('Gitbot');
...
or
!load Gitbot
Once the module is loaded, you'll need to configure the module. Using admin commands.
!git gitweb_url http://example.com/
!git repo_root /path/to/where/your/bare/git/repositories/are/
Any time someone says a SHA1 (full, or abbreviated with a minimum of 7 characters) where the bot can hear it, it will try to find a repository under repo_root
, and provide a GitWeb url to the commitdiff of that SHA1.
<me> gitbot: 1a2b3c4
<gitbot> me: 1a2b3c4 can be found at: http://example.com/?p=my_repo.git;a=commitdiff;hb=1a2b3c4
You can also specify things in the form <sha>:<file>
, and the module will reply with a link to the blob of that file, in the commit specified by the SHA.
<me> Hey, you should check out 1a2b3c4:README
<gitbot> 1a2b3c4:README can be found at: http://example.com/?p=my_repo.git;a=blob;hb=1a2b3c4;f=README
AUTHOR
Jacob Helwig, <jhelwig at cpan.org>
BUGS
Please report any bugs or feature requests to bug-bot-basicbot-pluggable-module-gitbot at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Bot-BasicBot-Pluggable-Module-Gitbot. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Bot::BasicBot::Pluggable::Module::Gitbot
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Bot-BasicBot-Pluggable-Module-Gitbot
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Bot-BasicBot-Pluggable-Module-Gitbot
CPAN Ratings
http://cpanratings.perl.org/d/Bot-BasicBot-Pluggable-Module-Gitbot
Search CPAN
http://search.cpan.org/dist/Bot-BasicBot-Pluggable-Module-Gitbot
COPYRIGHT & LICENSE
Copyright 2010 Jacob Helwig, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.