Skip to content
rowanj edited this page Oct 31, 2010 · 4 revisions

History I got fed up with trying to integrate various existing systems for pushing commit messages to any (and all!) Bugzilla bugs mentioned; as each system I tried would either be too inflexible (insisted on adding patch attachments), insufficient (stopped at one bug, when multiple were mentioned in the message), or relied on outdated and/or buggy libraries and assistant tools.

I'm not a Perl coder, or rather, I wasn't 3 hours ago. Help adjusting/maintaining these scripts is much desired and appreciated.

About This git/Bugzilla integration system requires git, Perl, and some readily available, well distributed, and maintained Perl packages.

  • Getopt:Long qw(config posix_default gnu_getopt);
  • Term::ReadKey qw/ReadMode ReadLine/;
  • List::MoreUtils qw(uniq);
  • WWW:Mechanize

It's based on the GPL v2 work of others (currently credited in source/commit comments, credits coming in on this page and in-repo soon).

Install Should have a Makefile or something soon, but for now I'm using:

cp git-bugz-comment.pl /usr/bin/git-bugz-comment
cd /path/to/tracked_repo.git/hooks

Usage

git-bugz-comment <bugid> <comment>
  • adds a comment to the given bug ID, generally handy from the command line - could probably be useful elsewhere

git-logzilla-post-receive.pl is probably not useful stand-alone; use it as a git hook in your upstream repository

cd /path/to/your_repo.git
git config bugzilla.url http://bugs.example.com/bugzilla/
git config bugzilla.username = daemon_username
git config bugzilla.password = daemon_password
cd /path/to/your_repo.git/hooks
ln -s ~/clone/of/git-logzilla/git-logzilla-post-receive.pl post-receive
Clone this wiki locally