Hello Piwigo development team,
I've added some SVN hooks, Perl scripts and Bugtracker configuration to produce automatic notes in the bugtracker based on Subversion commit log.
When you commit into Subversion, you write a message. This message is analyzed. If a string like "feature 1234" or "bug 1234" is found, then it will create a note in the issue 1234 of the bugtracker.
Look an example in [Bugtracker] ticket 1033.
Bye
Offline
Very nice ! :-)
Offline
Great feature for developers. Thxs
Users will see features and bugs resolution in real time.
(Extensions are not following these hooks, I expect. ;-) )
Offline
Offline
Excellent ! Thank you.
Offline
VDigital wrote:
(Extensions are not following these hooks, I expect. ;-) )
The algorithm is:
@lines = `/usr/bin/svnlook dirs-changed $opt{repos_path} -r$opt{revision}`; chomp(@lines); my %locations = (); foreach my $directory (@lines) { my @tree = split '/', $directory; if (defined $tree[0]) { if ($tree[0] eq 'trunk') { $locations{'trunk'}++; } if ($tree[0] eq 'branches') { if (defined $tree[1]) { $locations{'branch '.$tree[1]}++; } } if ($tree[0] eq 'extensions') { if (defined $tree[1]) { $locations{'extension '.$tree[1]}++; } } } } my $message = sprintf( 'svn:%u by %s on %s -----[Subversion commit log]---------------------------------------------------- %s', $opt{revision}, $revision{username}, join(', ', sort keys %locations), $revision{message} );
So, if the commit is inside an extension, it will generate the message "svn : 12345 by tiico on extension piclens"
Offline