Skip to content

Commit

Permalink
(FIX) Forgot to add 'w' tag to open for CHANGLOG_backup.md
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik committed Oct 29, 2021
1 parent 7eb61ad commit d331dfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions update_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down Expand Up @@ -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__":
Expand Down

0 comments on commit d331dfa

Please sign in to comment.