Class GHCheckRunBuilder.Annotation

    • Constructor Detail

      • 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 Detail

      • 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
      • withRawDetails

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