Switch to double quotes and reformat codebase with Biome

This commit is contained in:
Mohamed Boudra
2026-03-21 20:22:15 +07:00
parent ab40786882
commit f6579dbeb4
805 changed files with 38132 additions and 40175 deletions
+6 -24
View File
@@ -95,7 +95,7 @@ function parseChangelog(changelogText) {
if (headings.length === 0) {
throw new Error(
"No release headings found in CHANGELOG.md. Expected headings like `## 0.1.14 - 2026-02-19`."
"No release headings found in CHANGELOG.md. Expected headings like `## 0.1.14 - 2026-02-19`.",
);
}
@@ -150,9 +150,7 @@ function main() {
const targetEntry = entries.find((entry) => entry.tag === targetTag);
if (!targetEntry) {
throw new Error(
`No matching changelog section found for ${targetTag}.`
);
throw new Error(`No matching changelog section found for ${targetTag}.`);
}
const tempDir = mkdtempSync(path.join(tmpdir(), "paseo-release-notes-"));
@@ -161,22 +159,14 @@ function main() {
try {
if (hasRelease(targetTag, args.repo)) {
runGh([
"release",
"edit",
targetTag,
"--repo",
args.repo,
"--notes-file",
notesPath,
]);
runGh(["release", "edit", targetTag, "--repo", args.repo, "--notes-file", notesPath]);
console.log(`Updated release notes for ${targetTag}.`);
return;
}
if (!args.createIfMissing) {
console.log(
`Release ${targetTag} not found. Skipping because --create-if-missing was not provided.`
`Release ${targetTag} not found. Skipping because --create-if-missing was not provided.`,
);
return;
}
@@ -198,17 +188,9 @@ function main() {
console.log(`Created release ${targetTag} with changelog notes.`);
} catch (createError) {
console.warn(
`Release creation failed for ${targetTag}; attempting edit in case another workflow created it concurrently.`
`Release creation failed for ${targetTag}; attempting edit in case another workflow created it concurrently.`,
);
runGh([
"release",
"edit",
targetTag,
"--repo",
args.repo,
"--notes-file",
notesPath,
]);
runGh(["release", "edit", targetTag, "--repo", args.repo, "--notes-file", notesPath]);
console.log(`Updated release notes for ${targetTag} after create race.`);
if (createError instanceof Error) {