scripts/utils/changelog.mjs/getEntries
export function getEntries(dirPath) {
  const fileNames = fs
    .readdirSync(dirPath)
    .filter((fileName) => path.extname(fileName) === ".md");
  const entries = fileNames.map((fileName) => {
    const [title, ...rest] = fs
      .readFileSync(path.join(dirPath, fileName), "utf8")
      .trim()
      .split("\n");

    const improvement = title.match(/\[IMPROVEMENT(:(\d+))?]/);

    const section = title.includes("[HIGHLIGHT]")
      ? "highlight"
      : title.includes("[BREAKING]")
      ? "breaking"
      : improvement
      ? "improvement"
      : undefined;

    const order =
      section === "improvement" && improvement[2] !== undefined
        ? Number(improvement[2])
        : undefined;

    const content = [processTitle(title), ...rest].join("\n");

    return { fileName, section, order, content };
  });
  return entries;
}