diff --git a/pkg/review/header.go b/pkg/review/header.go index 55d6b5d..d0c4862 100644 --- a/pkg/review/header.go +++ b/pkg/review/header.go @@ -257,11 +257,10 @@ func IsPR() bool { return os.Getenv("GITHUB_EVENT_NAME") == "pull_request" } -// TODO add fixing guide func Markdown(result *header2.Result) string { return fmt.Sprintf(` -[license-eye](https://github.com/apache/skywalking-eyes/tree/main/cmd/license-eye) has totally checked %d files. +[license-eye](https://github.com/apache/skywalking-eyes/tree/main/cmd/license-eye) has checked %d files. | Valid | Invalid | Ignored | Fixed | | --- | --- | --- | --- | | %d | %d | %d | %d | @@ -270,6 +269,15 @@ func Markdown(result *header2.Result) string { %v + +
+ Use this command to fix any missing license headers + + `+"```bash\n"+ + "docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix\n"+ + "```"+ + ` +
`, Identification, len(result.Success)+len(result.Failure)+len(result.Ignored),