Skip to content

Commit 9bb981a

Browse files
committed
chore(boil): Store PR body in file (and correctly handle newlines)
1 parent f8e0dc4 commit 9bb981a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.scripts/release_boil.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ git commit --message "chore(boil): Release $CLEANED_BUMPED_VERSION" --no-verify
6060

6161
echo "Pushing changes and raising PR"
6262
CHANGELOG_SUMMARY=$(git-cliff --config rust/boil/cliff.toml --tag "$BUMPED_VERSION" --strip header --unreleased)
63-
PR_BODY="This PR was raised automatically by a release script. It releases $BUMPED_VERSION:\n\n$CHANGELOG_SUMMARY"
63+
PR_BODY=$(mktemp)
64+
echo -e "This PR was raised automatically by a release script. It releases $BUMPED_VERSION:\n$CHANGELOG_SUMMARY" > "$PR_BODY"
6465

6566
git push --set-upstream origin "$RELEASE_BRANCH"
6667
gh pr create --base main \
6768
--title "chore(boil): Release $CLEANED_BUMPED_VERSION" \
68-
--body "$PR_BODY" \
69+
--body-file "$PR_BODY" \
6970
--assignee "@me" \
7071
--draft
7172

0 commit comments

Comments
 (0)