diff --git a/CHANGELOG.md b/CHANGELOG.md index 8391eea44..7f1940911 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). [comment]: # (Add changes below) + ## [Unreleased] - 0.10.0a1 ### Main dependencies updated - torch 1.9.0 diff --git a/update_changelog.py b/update_changelog.py index 1c24b6da7..e0cdf2c89 100644 --- a/update_changelog.py +++ b/update_changelog.py @@ -130,7 +130,7 @@ def get_latest_pull_request_id(log_data): def load_changelogs(): change_log = open("CHANGELOG.md", "r").read() - with open("CHANGELOG_backup.md") as f: + with open("CHANGELOG_backup.md", "w") as f: f.write(change_log) changelogs_head, changelog_body = change_log.split( "[comment]: # (Add changes below)" @@ -164,13 +164,13 @@ def update_changelog_file(markdown_update_text): "--start_pr", default=None, type=int, - help="Id of the pr to start the collection of PRs looking backward in time. This should be a bigger than the value of --end_pr.", + help="Id of the pr to start the collection of PRs looking backward in time. This should be a smaller than the value of --end_pr.", ) parser.add_argument( "--end_pr", default=None, type=int, - help="Id of the pr to end the collection of PRslooking backward in time. This sould be smaller than the value of --start_pr", + help="Id of the pr to end the collection of PRslooking backward in time. This sould be bigger than the value of --start_pr", ) if __name__ == "__main__":