Add APPING1 to exception
This commit is contained in:
parent
cda7b5b026
commit
584fbf9895
|
@ -22,6 +22,8 @@ my $promo;
|
|||
my $id_project;
|
||||
my $repo_login;
|
||||
|
||||
my @apping = qw(zinger_a zebard_w zanell_a yao_p vinois_a sraka_y soupam_j seck_a ngomsi_s morin_h milis_e menkar_m eusebe_r crief_a chhum_s boumra_n blemus_a bengan_l amasho_a);
|
||||
|
||||
# First, extract information, from config then guess from repository adress
|
||||
if (my $tmp = `git config hooks.promo`) { chomp $tmp; $promo = $tmp; }
|
||||
if (my $tmp = `git config hooks.idproject`) { chomp $tmp; $id_project = $tmp; }
|
||||
|
@ -71,6 +73,12 @@ if ($ref =~ m<^refs/tags/(.+)$>)
|
|||
my $open = DateTime::Format::ISO8601->parse_datetime($rendu->{period}{begin});
|
||||
my $close = DateTime::Format::ISO8601->parse_datetime($rendu->{period}{end});
|
||||
|
||||
if ($id_project eq "myhttpd" && grep { $_ eq $repo_login } @apping)
|
||||
{
|
||||
$open = DateTime::Format::ISO8601->parse_datetime("2013-11-08T20:00:00");
|
||||
$close = DateTime::Format::ISO8601->parse_datetime("2013-11-10T11:42:00");
|
||||
}
|
||||
|
||||
# TODO: check exceptions by login/group
|
||||
$open = DateTime::Format::ISO8601->parse_datetime("2013-10-16T16:00:00") if ($repo_login eq "ikouna_l");
|
||||
|
||||
|
|
Reference in New Issue
Block a user