Skip to content

Commit

Permalink
Merge pull request #5 from gbh-tech/feat-DSO-00-comments-files-withou…
Browse files Browse the repository at this point in the history
…t-format

feat: (DSO-00) Add file comments without format
  • Loading branch information
javiercm1410 authored Jun 20, 2024
2 parents 694f761 + f8b8621 commit febf91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func CreateComment(pull int, org, repo, content, filePath string) {

commentBody := content
if filePath != "" {
commentBody = "```\n" + files.ParseFileContent(filePath) + "\n```"
commentBody = files.ParseFileContent(filePath)
}

comment := &github.IssueComment{
Expand All @@ -73,7 +73,7 @@ func UpdateComment(commentID int64, org, repo, content, filePath string) {

commentBody := content
if filePath != "" {
commentBody = "```\n" + files.ParseFileContent(filePath) + "```"
commentBody = files.ParseFileContent(filePath)
}

comment := &github.IssueComment{
Expand Down

0 comments on commit febf91a

Please sign in to comment.