tools: Use .md extension for temporary API changelog files.

This commit is contained in:
Vector73
2025-04-12 08:19:15 +00:00
committed by Tim Abbott
parent 349e88adc6
commit b3efb901fc
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ if __name__ == "__main__":
os.makedirs(dir_path, exist_ok=True)
random_hex_value = f"{random.randint(0, 0xFFFFFF):06x}"
file_path = f"{dir_path}/ZF-{random_hex_value}"
file_path = f"{dir_path}/ZF-{random_hex_value}.md"
with open(file_path, "w") as f:
f.write("")

View File

@@ -10,7 +10,7 @@ from pathlib import Path
def get_changelog_files_list() -> list[str]:
dir_path = Path("api_docs/unmerged.d")
if os.path.exists(dir_path):
return [os.path.basename(path) for path in glob.glob(f"{dir_path}/ZF-??????")]
return [os.path.basename(path) for path in glob.glob(f"{dir_path}/ZF-??????.md")]
return []