Skip to content

Commit 69991a6

Browse files
committed
fix: 구분선 중복 제거
1 parent 5b83b32 commit 69991a6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ai-pr-description.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ jobs:
7575
? existingBody.split(startMarker)[0].trimEnd()
7676
: existingBody.trimEnd();
7777
78-
const manualBody = rawManualBody.replace(/\n\s*---\s*$/m, '').trimEnd();
78+
const manualBody = rawManualBody
79+
.replace(/(?:\n\s*---\s*)+$/g, '')
80+
.trimEnd();
7981
8082
const prompt = `
8183
당신은 GitHub Pull Request 하단에 붙는 AI 요약 블록을 작성하는 한국어 기술 문서 작성자입니다.
@@ -149,7 +151,7 @@ jobs:
149151
${endMarker}`;
150152
151153
const nextBody = manualBody
152-
? `${manualBody}\n\n\n${aiSection}`
154+
? `${manualBody}\n\n---\n\n${aiSection}`
153155
: aiSection;
154156
155157
await github.rest.pulls.update({

0 commit comments

Comments
 (0)