@@ -204,7 +204,7 @@ type MinimalDiscussionComment struct {
204204func newMinimalDiscussionComment (id string , body string , isAnswer bool ) MinimalDiscussionComment {
205205 return MinimalDiscussionComment {
206206 ID : id ,
207- Body : sanitize .Sanitize (body ),
207+ Body : sanitize .Content (body ),
208208 IsAnswer : isAnswer ,
209209 }
210210}
@@ -797,7 +797,7 @@ func convertToMinimalPullRequestReview(review *github.PullRequestReview) Minimal
797797 m := MinimalPullRequestReview {
798798 ID : review .GetID (),
799799 State : review .GetState (),
800- Body : sanitize .Sanitize (review .GetBody ()),
800+ Body : sanitize .Content (review .GetBody ()),
801801 HTMLURL : review .GetHTMLURL (),
802802 User : convertToMinimalUser (review .GetUser ()),
803803 CommitID : review .GetCommitID (),
@@ -815,7 +815,7 @@ func convertToMinimalIssue(issue *github.Issue) MinimalIssue {
815815 m := MinimalIssue {
816816 Number : issue .GetNumber (),
817817 Title : sanitize .Sanitize (issue .GetTitle ()),
818- Body : sanitize .Sanitize (issue .GetBody ()),
818+ Body : sanitize .Content (issue .GetBody ()),
819819 State : issue .GetState (),
820820 StateReason : issue .GetStateReason (),
821821 Draft : issue .GetDraft (),
@@ -926,7 +926,7 @@ func fragmentWithoutFieldValuesToMinimalIssue(fragment issueFragmentWithoutField
926926 m := MinimalIssue {
927927 Number : int (fragment .Number ),
928928 Title : sanitize .Sanitize (string (fragment .Title )),
929- Body : sanitize .Sanitize (string (fragment .Body )),
929+ Body : sanitize .Content (string (fragment .Body )),
930930 State : string (fragment .State ),
931931 Comments : int (fragment .Comments .TotalCount ),
932932 CreatedAt : fragment .CreatedAt .Format (time .RFC3339 ),
@@ -1015,7 +1015,7 @@ func convertToMinimalIssuesResponseWithoutFieldValues(fragment issueQueryFragmen
10151015func convertToMinimalIssueComment (comment * github.IssueComment ) MinimalIssueComment {
10161016 m := MinimalIssueComment {
10171017 ID : comment .GetID (),
1018- Body : sanitize .Sanitize (comment .GetBody ()),
1018+ Body : sanitize .Content (comment .GetBody ()),
10191019 HTMLURL : comment .GetHTMLURL (),
10201020 User : convertToMinimalUser (comment .GetUser ()),
10211021 AuthorAssociation : comment .GetAuthorAssociation (),
@@ -1064,7 +1064,7 @@ func convertToMinimalFileContentResponse(resp *github.RepositoryContentResponse)
10641064
10651065 m .Commit = & MinimalFileCommit {
10661066 SHA : resp .Commit .GetSHA (),
1067- Message : sanitize .Sanitize (resp .Commit .GetMessage ()),
1067+ Message : sanitize .Content (resp .Commit .GetMessage ()),
10681068 HTMLURL : resp .Commit .GetHTMLURL (),
10691069 }
10701070
@@ -1085,7 +1085,7 @@ func convertToMinimalPullRequest(pr *github.PullRequest) MinimalPullRequest {
10851085 m := MinimalPullRequest {
10861086 Number : pr .GetNumber (),
10871087 Title : sanitize .Sanitize (pr .GetTitle ()),
1088- Body : sanitize .Sanitize (pr .GetBody ()),
1088+ Body : sanitize .Content (pr .GetBody ()),
10891089 State : pr .GetState (),
10901090 Draft : pr .GetDraft (),
10911091 Merged : pr .GetMerged (),
@@ -1794,7 +1794,7 @@ func newMinimalCommitFromCore(sha, htmlURL string, commit *github.Commit, author
17941794
17951795 if commit != nil {
17961796 minimalCommit .Commit = & MinimalCommitInfo {
1797- Message : sanitize .Sanitize (commit .GetMessage ()),
1797+ Message : sanitize .Content (commit .GetMessage ()),
17981798 }
17991799
18001800 if commit .Author != nil {
@@ -1997,7 +1997,7 @@ func convertToMinimalPullRequestCommits(commits []*github.RepositoryCommit) []Mi
19971997 }
19981998
19991999 if commit .Commit != nil {
2000- minimalCommit .Message = sanitize .Sanitize (commit .Commit .GetMessage ())
2000+ minimalCommit .Message = sanitize .Content (commit .Commit .GetMessage ())
20012001 minimalCommit .Author = convertToMinimalCommitAuthor (commit .Commit .Author )
20022002 }
20032003
@@ -2036,7 +2036,7 @@ func convertToMinimalRelease(release *github.RepositoryRelease) MinimalRelease {
20362036 ID : release .GetID (),
20372037 TagName : release .GetTagName (),
20382038 Name : sanitize .Sanitize (release .GetName ()),
2039- Body : sanitize .Sanitize (release .GetBody ()),
2039+ Body : sanitize .Content (release .GetBody ()),
20402040 HTMLURL : release .GetHTMLURL (),
20412041 Prerelease : release .GetPrerelease (),
20422042 Draft : release .GetDraft (),
@@ -2092,7 +2092,7 @@ func convertToMinimalWorkflowRun(workflowRun *github.WorkflowRun) MinimalWorkflo
20922092
20932093 if headCommit := workflowRun .GetHeadCommit (); headCommit != nil && headCommit .GetMessage () != "" {
20942094 minimalRun .HeadCommit = & MinimalWorkflowRunHeadCommit {
2095- Message : sanitize .Sanitize (headCommit .GetMessage ()),
2095+ Message : sanitize .Content (headCommit .GetMessage ()),
20962096 }
20972097 }
20982098
@@ -2277,7 +2277,7 @@ func convertToMinimalReviewThread(thread reviewThreadNode) MinimalReviewThread {
22772277
22782278func convertToMinimalReviewComment (c reviewCommentNode ) MinimalReviewComment {
22792279 m := MinimalReviewComment {
2280- Body : sanitize .Sanitize (string (c .Body )),
2280+ Body : sanitize .Content (string (c .Body )),
22812281 Path : string (c .Path ),
22822282 Author : string (c .Author .Login ),
22832283 HTMLURL : c .URL .String (),
0 commit comments