Package io.jenkins.plugins.explain_error
Class TitleText
java.lang.Object
io.jenkins.plugins.explain_error.TitleText
Tidies a title written by the AI before it is used as a heading, a pull request title or a
commit subject.
-
Method Summary
-
Method Details
-
clean
Reducestitleto one line without surrounding quotes or a trailing period, cut at a word boundary to at mostmaxLengthcharacters.- Returns:
- the cleaned title, or
nullwhen nothing usable is left
-