 GROUP BY month_start
 ORDER BY month_start ASC)
 
-
 UNION ALL 
 
 /*

)
WHERE merged IS NOT NULL
GROUP BY month_start
ORDER BY month_start ASC)
  return JSON.parse(json).map(x => JSON.stringify(x));
""";

CREATE TEMP FUNCTION has_key_value(json STRING, key STRING, expected STRING)
RETURNS BOOL
LANGUAGE js AS """
  const parsed = JSON.parse(json)
  for (const value of parsed) {
    if (value[key] === expected) {
      return true;
    }
  }
  return false;
""";

/*
Determines monthly releases by looking for "ReleaseEvent"s created by
the yoshi-automation user.
