Create new function for all tickets in Outreachy round.
This commit is contained in:
parent
0263c49c77
commit
cc60ef0326
1 changed files with 15 additions and 0 deletions
|
@ -22,6 +22,21 @@ sub Outreachy_FindUniqueTicket(@) {
|
||||||
return $ticketSpec;
|
return $ticketSpec;
|
||||||
}
|
}
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
sub Outreachy_FindMainTicketsInRound($) {
|
||||||
|
my($round) = @_;
|
||||||
|
open(my $rtLsFH, "-|", "$RT_CMD", "ls", "-i", 'Queue = outreachy-interns ' .
|
||||||
|
"AND Subject LIKE '" . $ROUND);
|
||||||
|
my @ticketSpecs;
|
||||||
|
while (my $lsLine = <$rtLsFH>) {
|
||||||
|
chomp $lsLine;
|
||||||
|
if ($lsLine =~ /ticket/) {
|
||||||
|
push(@ticketSpecs, $lsLine);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
close $rtLsFH;
|
||||||
|
return @ticketSpecs;
|
||||||
|
}
|
||||||
|
###############################################################################
|
||||||
sub GetStatusFromTicket($) {
|
sub GetStatusFromTicket($) {
|
||||||
my($ticketSpec) = @_;
|
my($ticketSpec) = @_;
|
||||||
my $status;
|
my $status;
|
||||||
|
|
Loading…
Reference in a new issue