Skip to content

Commit

Permalink
fix changelog pr for dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Aug 11, 2022
1 parent 55464cf commit c660b79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jupyter_releaser/lib.py
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 c660b79

Please sign in to comment.