Skip to content

Commit 6e5b438

Browse files
authored
Fix changelog pr for dry run (#362)
1 parent 55464cf commit 6e5b438

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jupyter_releaser/lib.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ def make_changelog_pr(auth, branch, repo, title, commit_message, body, dry_run=F
172172
pass
173173
util.run(f"git checkout -b {pr_branch} origin/{branch}", echo=True)
174174
if dirty:
175-
util.run("git stash apply", echo=True)
175+
if dry_run:
176+
util.run("git merge --squash --strategy-option=theirs stash", echo=True)
177+
else:
178+
util.run("git stash apply", echo=True)
176179

177180
# Add a commit with the message
178181
try:

0 commit comments

Comments
 (0)