Skip to content

Commit

Permalink
Merge pull request #61 from blink1073/fix-no-changes
Browse files Browse the repository at this point in the history
Handle the case where there are no changes in changelog
  • Loading branch information
Steven Silvester authored Jul 7, 2021
2 parents c975dbd + 38751f3 commit 320c5af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jupyter_releaser/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ def draft_changelog(version_spec, branch, repo, since, auth, changelog_path, dry
raise ValueError(f"Tag v{version} already exists")

# Check out any unstaged files from version bump
util.run("git checkout -- .")
# If this is an automated changelog PR, there may be no effective changes
try:
util.run("git checkout -- .")
except CalledProcessError as e:
util.log(str(e))

current = changelog.extract_current(changelog_path)
util.log(f"\n\nCurrent Changelog Entry:\n{current}")
Expand Down

0 comments on commit 320c5af

Please sign in to comment.