Skip to content

Commit

Permalink
github-pr-review: use <details> tag for summary
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Sep 29, 2019
1 parent e84c9f7 commit 3fd1a39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion service/github/github.go
Expand Up @@ -128,11 +128,15 @@ func (g *GitHubPullRequest) remainingCommentsSummary(remaining []*reviewdog.Comm
var sb strings.Builder
for tool, comments := range perTool {
sb.WriteString("Remaining comments which cannot be posted as a review comment to avoid GitHub abuse Rate Limit\n")
sb.WriteString(fmt.Sprintf("### %s\n", tool))
sb.WriteString("\n")
sb.WriteString("<details>\n")
sb.WriteString(fmt.Sprintf("<summary>%s</summary>\n", tool))
sb.WriteString("\n")
for _, c := range comments {
sb.WriteString(githubutils.LinkedMarkdownCheckResult(g.owner, g.repo, g.sha, c.CheckResult))
sb.WriteString("\n")
}
sb.WriteString("</details>\n")
}
return sb.String()
}
Expand Down

0 comments on commit 3fd1a39

Please sign in to comment.