fix(automations): make !reportData.length guard work correctly for last_week_tonight#5575
Open
Copilot wants to merge 2 commits into
Open
fix(automations): make !reportData.length guard work correctly for last_week_tonight#5575Copilot wants to merge 2 commits into
!reportData.length guard work correctly for last_week_tonight#5575Copilot wants to merge 2 commits into
Conversation
…content Agent-Logs-Url: https://github.com/WordPress/openverse/sessions/2ec32feb-7af1-43e3-b172-a6b87d93dfaa Co-authored-by: dd32 <767313+dd32@users.noreply.github.com>
…rrectly Agent-Logs-Url: https://github.com/WordPress/openverse/sessions/91c6d614-5ad2-4ffe-be26-95169146ffd4 Co-authored-by: dd32 <767313+dd32@users.noreply.github.com>
Member
|
This is a followup to #5344 as I noticed empty status updates being posted: https://make.wordpress.org/openverse/2026/05/11/last-week-openverse-2026-05-04-2026-05-11/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
getItemsHtmlgroups items by🧱 stack:*label and silently drops anything without one. This meant repos with issues/PRs that all lacked stack labels still enteredreportData, bypassing the!reportData.lengthearly-exit and producing a contentless post (only<h2>/<h3>headings, no links).Description
hasStackLabelpredicate and applied it as a.filter()on bothclosedIssuesandmergedPrsat collection time, soreportDataonly contains repos with at least one renderable item!reportData.lengthguard now correctly prevents posting when there's nothing to show<li>-string-check workaround that had been added topostActivities— now redundantTesting Instructions
Run the script against a date range where repos have closed issues/PRs but none carry a
🧱 stack:*label; confirm it logs"Nothing to post about, exiting."and makes no POST request.Checklist
Update index.md).main) or a parent feature branch.ov just catalog/generate-docsfor catalogPRs) or the media properties generator (
ov just catalog/generate-docs media-propsfor the catalog or
ov just api/generate-docsfor the API) where applicable.Developer Certificate of Origin
Developer Certificate of Origin