Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Vector73b3efb901fc93
diff --git a/tools/create-api-changelog b/tools/create-api-changelog
index ef18d9aa1b3..37ee3732775 100755
--- a/tools/create-api-changelog
+++ b/tools/create-api-changelog
@@ -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("")
diff --git a/tools/merge-api-changelogs b/tools/merge-api-changelogs
index 9613d8a76ff..cc53dfb0202 100755
--- a/tools/merge-api-changelogs
+++ b/tools/merge-api-changelogs
@@ -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 []