Skip to content

Commit

Permalink
#18 [fix] content format 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u committed Dec 3, 2024
1 parent 00fd66b commit 44cc3b3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ public void uploadTemplate(UploadTemplateRequestDto uploadTemplateRequestDto, Lo
// PR/ISSUE 템플릿 구분
boolean isPR = uploadTemplateRequestDto.type() == TemplateType.PR;
String metaContent = "---\nname: Issue template\nabout: Issue template\ntitle: ''\nlabels: ''\nassignees: ''\n---";
String formattedContent = uploadTemplateRequestDto.content().replace("\n", "<br>");
System.out.println("formattedContent = " + formattedContent);
String formattedContent = uploadTemplateRequestDto.content()
.replace("\\n", " \n"); // 두 개의 공백 + \n으로 변환
String content = isPR ? formattedContent : metaContent + "\n" + formattedContent;
System.out.println("formattedContent = " + formattedContent);
String path = isPR ? ".github/pull_request_template.md" : ".github/ISSUE_TEMPLATE/issue_template.md";

HttpHeaders headers = new HttpHeaders();
Expand Down

0 comments on commit 44cc3b3

Please sign in to comment.