Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Skip posting of update if there is no update to post about (#5344)
Dhruv Bhanushali0fad9aed4920
diff --git a/automations/js/src/last_week_tonight.mjs b/automations/js/src/last_week_tonight.mjsindex fadce71d8..c41439f81 100644--- a/automations/js/src/last_week_tonight.mjs+++ b/automations/js/src/last_week_tonight.mjs@@ -184,6 +184,10 @@ for (const repo of repos) {if (closedIssues.length || mergedPrs.length)reportData.push({ repo, closedIssues, mergedPrs })}+if (!reportData.length) {+ console.log("Nothing to post about, exiting.")+ process.exit(0)+}const res = await postActivities(reportData)if (res.status !== 201) {