Fix build by go-github update
@@ -177,11 +177,11 @@ func (ch *Checker) buildFindingLink(c *reviewdog.FilteredCheck) string {
func (ch *Checker) toCheckRunAnnotation(c *reviewdog.FilteredCheck) *github.CheckRunAnnotation {
a := &github.CheckRunAnnotation{
- FileName: github.String(c.Path),
+ Path: github.String(c.Path),
BlobHRef: github.String(ch.brobHRef(c.Path)),
StartLine: github.Int(c.Lnum),
EndLine: github.Int(c.Lnum),
- WarningLevel: github.String("warning"),
+ AnnotationLevel: github.String("warning"),
Message: github.String(c.Message),
}
if ch.req.Name != "" {
