Daniel Fütterer
26.02.21 6dff0903342558a8791541cd4bba21a4e494e3f5
feat: simplify repo path

Path is stored in variable to define changelog output path
1 files modified
9 ■■■■■ changed files
oop_changelog.py 9 ●●●●● patch | view | raw | blame | history
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")