diff --git a/.github/changelog.py b/.github/changelog.py index cda9da2d..47970195 100644 --- a/.github/changelog.py +++ b/.github/changelog.py @@ -1,6 +1,6 @@ # generates changelog # NOTE: this is just a quick fix, feel free to handle releases more cleanly -import subprocess, urllib.request, json +import subprocess, urllib.request, json, datetime USE_GIT = True GIT_MAX_MERGES = 10 #maybe should use max date @@ -131,8 +131,10 @@ def write(lines): f.write('\n'.join(lines)) def get_lines(): + curr_date = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") lines = [ - '### CHANGELOG (latest changes)', + '### CHANGELOG', + '(latest main changes on %s, skips smaller commits)' % (curr_date), '', ] try: diff --git a/.gitignore b/.gitignore index ddc094de..642628f9 100644 --- a/.gitignore +++ b/.gitignore @@ -77,4 +77,7 @@ cmake_install.cmake #doc build doc/INFO.md -doc/_build \ No newline at end of file +doc/_build + +changelog.txt +__pycache__ \ No newline at end of file