From 6dff0903342558a8791541cd4bba21a4e494e3f5 Mon Sep 17 00:00:00 2001 From: Daniel Fütterer <df89@outlook.com> Date: Fri, 26 Feb 2021 17:09:39 +0100 Subject: [PATCH] feat: simplify repo path --- oop_changelog.py | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/oop_changelog.py b/oop_changelog.py index 4b0b8b6..02cc4da 100644 --- a/oop_changelog.py +++ b/oop_changelog.py @@ -127,7 +127,10 @@ #### Main #### -commitList = getSeparatedGitLog("/Users/daniel/Desktop/testrepo") +pathToRepo = "/Users/daniel/Developer/Repos/HfM/schumacher/Prisma-Binauralize" +#pathToRepo = "/Users/daniel/Desktop/testrepo" + +commitList = getSeparatedGitLog(pathToRepo) # Create a list of commits commitHistory = [] @@ -198,9 +201,9 @@ fileTemplate.append("### Non-conventional") for nonconform in commitsByType["Nonconform"]: fileTemplate.append("- " + nonconform.body.subject + nonconform.appendShortHash()) - + # write into changelog -with open("changelog.md", "w") as file: +with open(pathToRepo + "/changelog.md", "w") as file: for line in fileTemplate: file.write(line + "\n") \ No newline at end of file -- Gitblit v1.9.1