diff --git a/src/stale.php b/src/stale.php index 1588641..cd58b8c 100755 --- a/src/stale.php +++ b/src/stale.php @@ -28,6 +28,7 @@ $callback = function($issue) use ($staleLabel, $keepLabel) { $updateDaysAgo=(time()-$updatedTime)/60/60/24; echo "#{$issue->number} - $updateDaysAgo days ago - {$issue->title}\n"; if($issue->hasLabel($keepLabel)){ + $issue->removeLabel($staleLabel); return; }elseif($issue->hasLabel($staleLabel)){ //when was it added?