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

Commit

Permalink
Fix wrong PR description
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Koscielniak committed Sep 14, 2018
1 parent f1174e4 commit 288d48e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions release_bot/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,9 @@ def make_release_pr(self, new_pr):
changelog = repo.get_log_since_last_release(new_pr['previous_version'])
repo.checkout_new_branch(branch)
changed = look_for_version_files(repo.repo_path, new_pr['version'])
changelog_changed = insert_in_changelog(f'{repo.repo_path}/CHANGELOG.md',
new_pr['version'], changelog)
if changelog_changed:
changed.append(f'{repo.repo_path}/CHANGELOG.md')
if insert_in_changelog(f'{repo.repo_path}/CHANGELOG.md',
new_pr['version'], changelog):
repo.add(['CHANGELOG.md'])
if changed:
repo.add(changed)
repo.commit(f'{version} release', allow_empty=True)
Expand Down

0 comments on commit 288d48e

Please sign in to comment.