Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion recipe/deploy/release.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
return [];
}

$keep_releases = get('releases_log_limit', get('keep_releases', 300));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think fallback to keep_releases is appropriate.

Also, we should define it as other variables. with description and comment


$releaseLogs = array_map(function ($line) {
return json_decode($line, true);
}, explode("\n", run('tail -n 300 .dep/releases_log')));
}, explode("\n", run("tail -n $keep_releases .dep/releases_log")));

return array_filter($releaseLogs); // Return all non-empty lines.
});
Expand Down