move dry-run release notes to tmp/

This commit is contained in:
Richard Macias
2026-02-27 18:51:22 -06:00
parent a19991acf1
commit fec6fb1953
2 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@@ -2,7 +2,5 @@
.env .env
tmp/ tmp/
out/ out/
.notes/
assets/ assets/
__pycache__ __pycache__
release-notes-*.md

View File

@@ -502,10 +502,12 @@ def main() -> None:
notes = generate_release_notes(latest, added, changed, removed) notes = generate_release_notes(latest, added, changed, removed)
if args.dry_run: if args.dry_run:
preview_path = REPO_ROOT / f"release-notes-{version}.md" tmp_dir = REPO_ROOT / "tmp"
tmp_dir.mkdir(exist_ok=True)
preview_path = tmp_dir / f"release-notes-{version}.md"
with open(preview_path, "w") as f: with open(preview_path, "w") as f:
f.write(notes) f.write(notes)
print(f"\nRelease notes written to {preview_path.name}") print(f"\nRelease notes written to tmp/{preview_path.name}")
else: else:
notes = edit_release_notes(notes) notes = edit_release_notes(notes)