Class GHCheckRunBuilder.Annotation

java.lang.Object
org.kohsuke.github.GHCheckRunBuilder.Annotation
Enclosing class:
GHCheckRunBuilder

public static final class GHCheckRunBuilder.Annotation extends Object
The Class Annotation.
See Also:
  • Constructor Details

    • Annotation

      public Annotation(@NonNull String path, int line, @NonNull GHCheckRun.AnnotationLevel annotationLevel, @NonNull String message)
      Instantiates a new annotation.
      Parameters:
      path - the path
      line - the line
      annotationLevel - the annotation level
      message - the message
    • Annotation

      public Annotation(@NonNull String path, int startLine, int endLine, @NonNull GHCheckRun.AnnotationLevel annotationLevel, @NonNull String message)
      Instantiates a new annotation.
      Parameters:
      path - the path
      startLine - the start line
      endLine - the end line
      annotationLevel - the annotation level
      message - the message
  • Method Details

    • withStartColumn

      @NonNull public GHCheckRunBuilder.Annotation withStartColumn(@CheckForNull Integer startColumn)
      With start column.
      Parameters:
      startColumn - the start column
      Returns:
      the annotation
    • withEndColumn

      @NonNull public GHCheckRunBuilder.Annotation withEndColumn(@CheckForNull Integer endColumn)
      With end column.
      Parameters:
      endColumn - the end column
      Returns:
      the annotation
    • withTitle

      @NonNull public GHCheckRunBuilder.Annotation withTitle(@CheckForNull String title)
      With title.
      Parameters:
      title - the title
      Returns:
      the annotation
    • withRawDetails

      @NonNull public GHCheckRunBuilder.Annotation withRawDetails(@CheckForNull String rawDetails)
      With raw details.
      Parameters:
      rawDetails - the raw details
      Returns:
      the annotation