Skip to content

Commit

Permalink
fix: enhance log view info
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlJi committed Sep 10, 2024
1 parent 90c5405 commit 34730f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/linters/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ func CreateGithubChecks(ctx context.Context, a Agent, lintErrs map[string][]Lint
}

logURL := a.GenLogViewUrl()
log.Debugf("Log view :%s", logURL)
if logURL == "" {
check.Output.Summary = github.String(Reference)
} else {
check.Output.Summary = github.String(fmt.Sprintf("[full log ](%s)\n", logURL) + Reference)
log.Debugf("Log view :%s", logURL)
check.Output.Summary = github.String(fmt.Sprintf("This is [the detailed log](%s).\n\n%s", logURL, Reference))
}

if len(annotations) > 0 {
Expand Down

0 comments on commit 34730f8

Please sign in to comment.