Skip to content

Commit c3e11f1

Browse files
fix: PR_DESCRIPTION_PREFIXの末尾に改行がない場合に追加する (#2300)
* fix: PR_DESCRIPTION_PREFIXの末尾に改行がない場合に追加する * format修正 (#2301) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * 改行を増やす * format修正 (#2302) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent eb67025 commit c3e11f1

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

dist/generate_title_description.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generate_title_description.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export function generateTitleDescription(): {
1616
let title = PR_TITLE_PREFIX;
1717
let body = process.env.PR_DESCRIPTION_PREFIX || "";
1818

19+
if (body !== "" && !body.endsWith("\n")) {
20+
body += "\n\n";
21+
}
22+
1923
body += `本PR ( \`${escapedHead}\` ) をマージすると差分が次のPRに反映されます。\n`;
2024
body += "* ";
2125

0 commit comments

Comments
 (0)