PraneshJs's picture
Removed Extra Repo Name
1a29d0f verified
raw
history blame contribute delete
335 Bytes
def generate_readme(repo_info, content, license_type=None):
with open("readme.md", "w", encoding="utf-8") as f:
f.write(content)
if license_type:
f.write(f"\n\n## License\nThis project is licensed under the **{license_type}** License.")
f.write(f"\n\n---\n🔗 GitHub Repo: {repo_info['url']}")