Reactivate

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin
2026-02-16 18:35:50 -06:00
parent 9cc0c58908
commit a3ce046b95
+10 -1
View File
@@ -76,8 +76,17 @@ async function main(args) {
let newStatus = pluginDataYaml.status;
let statusChanged = false;
// If age < 365 and status is inactive or archived, change to active
if (
age < 365 &&
(pluginDataYaml.status === 'inactive' ||
pluginDataYaml.status === 'archived')
) {
newStatus = 'active';
statusChanged = true;
}
// If status is inactive, change to archived
if (pluginDataYaml.status === 'inactive') {
else if (pluginDataYaml.status === 'inactive') {
newStatus = 'archived';
statusChanged = true;
}