Class TitleText

java.lang.Object
io.jenkins.plugins.explain_error.TitleText

public final class TitleText extends Object
Tidies a title written by the AI before it is used as a heading, a pull request title or a commit subject.
  • Method Details

    • clean

      @CheckForNull public static String clean(@CheckForNull String title, int maxLength)
      Reduces title to one line without surrounding quotes or a trailing period, cut at a word boundary to at most maxLength characters.
      Returns:
      the cleaned title, or null when nothing usable is left