fix milestone counting bug
This commit is contained in:
parent
6dc0e65802
commit
9bf1479d33
@ -39,9 +39,9 @@ $callback=function($issue) use ($nolabelLabel,$nomilestoneLabel){
|
||||
$issue->removeLabel( $nolabelLabel );
|
||||
}
|
||||
//do the no-milestone thing
|
||||
if( count($issue->getData()->milestone)==0 && !$issue->hasLabel($nomilestoneLabel) ){
|
||||
if( !$issue->getData()->milestone && !$issue->hasLabel($nomilestoneLabel) ){
|
||||
$issue->addLabel( $nomilestoneLabel );
|
||||
}elseif( count($issue->getData()->milestone)>0 && $issue->hasLabel($nomilestoneLabel) ){
|
||||
}elseif( $issue->getData()->milestone && $issue->hasLabel($nomilestoneLabel) ){
|
||||
$issue->removeLabel( $nomilestoneLabel );
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user