Skip to content

Commit

Permalink
Remove duplicated footer at fallback comments (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas authored May 22, 2024
1 parent d01623d commit 0c1a7ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ at `file` (line 11)

```
some review content
```

---
[🐸 JFrog Frogbot](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,4 @@ at `file` (line 11)

```
some review content
```

---
<div align='center'>

[🐸 JFrog Frogbot](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

</div>
```
2 changes: 1 addition & 1 deletion utils/outputwriter/outputcontent.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func GenerateReviewCommentContent(content string, writer OutputWriter) string {
func GetFallbackReviewCommentContent(content string, location formats.Location, writer OutputWriter) string {
var contentBuilder strings.Builder
contentBuilder.WriteString(MarkdownComment(ReviewCommentId))
WriteContent(&contentBuilder, getFallbackCommentLocationDescription(location), content, footer(writer))
WriteContent(&contentBuilder, getFallbackCommentLocationDescription(location), content)
return contentBuilder.String()
}

Expand Down

0 comments on commit 0c1a7ec

Please sign in to comment.