Skip to content

Commit

Permalink
chore: fix release-plz pr creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 10, 2025
1 parent 8f92865 commit 8299c6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xtasks/release-plz
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@ git clean -df
git checkout -B release
git commit -m "chore: release $version"
git push origin release --force
gh pr create --title "chore: release $version" --body "$changelog" --label "release" ||

if [[ "$(gh pr list --label release)" == "" ]]; then
gh pr create --title "chore: release $version" --body "$changelog" --label "release"
else
gh pr edit --title "chore: release $version" --body "$changelog"
fi

0 comments on commit 8299c6b

Please sign in to comment.