mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	tools: Use .md extension for temporary API changelog files.
This commit is contained in:
		| @@ -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("") | ||||
|   | ||||
| @@ -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 [] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user