Skip to content
This repository was archived by the owner on May 16, 2022. It is now read-only.

Commit 288d48e

Browse files
author
Jan Koscielniak
committed
Fix wrong PR description
1 parent f1174e4 commit 288d48e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

release_bot/github.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,9 @@ def make_release_pr(self, new_pr):
324324
changelog = repo.get_log_since_last_release(new_pr['previous_version'])
325325
repo.checkout_new_branch(branch)
326326
changed = look_for_version_files(repo.repo_path, new_pr['version'])
327-
changelog_changed = insert_in_changelog(f'{repo.repo_path}/CHANGELOG.md',
328-
new_pr['version'], changelog)
329-
if changelog_changed:
330-
changed.append(f'{repo.repo_path}/CHANGELOG.md')
327+
if insert_in_changelog(f'{repo.repo_path}/CHANGELOG.md',
328+
new_pr['version'], changelog):
329+
repo.add(['CHANGELOG.md'])
331330
if changed:
332331
repo.add(changed)
333332
repo.commit(f'{version} release', allow_empty=True)

0 commit comments

Comments
 (0)