Skip to content

Commit

Permalink
Fix changelog pr for dry run (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Aug 11, 2022
1 parent 55464cf commit 6e5b438
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jupyter_releaser/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ def make_changelog_pr(auth, branch, repo, title, commit_message, body, dry_run=F
pass
util.run(f"git checkout -b {pr_branch} origin/{branch}", echo=True)
if dirty:
util.run("git stash apply", echo=True)
if dry_run:
util.run("git merge --squash --strategy-option=theirs stash", echo=True)
else:
util.run("git stash apply", echo=True)

# Add a commit with the message
try:
Expand Down

0 comments on commit 6e5b438

Please sign in to comment.