Difference between revisions of "Template:Bug List Instructions"

From Second Life Wiki
Jump to navigation Jump to search
(Taking out title to avoid problems with accidental blanking)
m (perl code tagging)
Line 11: Line 11:
* Run this perl script on the xml file
* Run this perl script on the xml file


<pre>
<perl>
#!/usr/bin/env perl
#!/usr/bin/env perl
use XML::Simple;
use XML::Simple;
Line 27: Line 27:




</pre>
</perl>
*  Pick a reasonable cutoff point, and copy the output into the appropriate section of your newly created page.
*  Pick a reasonable cutoff point, and copy the output into the appropriate section of your newly created page.

Revision as of 08:12, 5 April 2008

Community members generally collaborate on the agenda for bug triage meetings. Here's how you can quickly fill in an otherwise blank agenda:

<perl>

  1. !/usr/bin/env perl

use XML::Simple;

my $bugs = XMLin($ARGV[0]);

foreach my $item (@{$bugs->{channel}->{item}}) {

 $title = $item->{title};
 $title =~ s/^\^\*\] //;
 $key = $item->{key}->{content};
 $votes = $item->{votes};
 $reporter = $item->{reporter}->{username};
 print "* $key - Votes: $votes - $title - $reporter\n";

}


</perl>

  • Pick a reasonable cutoff point, and copy the output into the appropriate section of your newly created page.