This commit is contained in:
James 2020-10-17 11:40:54 +01:00
parent ca9933f729
commit cc9034e268

View File

@ -23,7 +23,7 @@ if (!$keepLabel = $repo->getLabelByName('keep')) {
}
//define the function to process each issue
$callback = function($issue) use ($staleLabel) {
$callback = function($issue) use ($staleLabel, $keepLabel) {
$updatedTime=strtotime($issue->updated_at);
$updateDaysAgo=(time()-$updatedTime)/60/60/24;
echo "#{$issue->number} - $updateDaysAgo days ago - {$issue->title}\n";