Class LabelHints
java.lang.Object
io.github.jbastgen.stemma.app.label.LabelHints
Suggests labels for the commit that is being made (features 25 and 28), without an AI: the type of the branch name
(
hotfix/ gives a label named Hotfix) and the kind of the files (only documentation gives Documentation, only tests gives
Test). A suggestion exists only when a configured label has that name; every suggestion has a short reason.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildPrompt(String template, String repo, String branch, List<FileChange> files, List<LabelIndex.LabelDef> labels, List<String> excludePatterns, Map<String, String> hints) Fills the template:{labels},{repo},{branch},{files}and{hint}.The labels to propose, by label id, each with its reason (in order of importance).
-
Field Details
-
TEMPLATE_NAME
- See Also:
-
-
Method Details
-
hints
public static Map<String,String> hints(String branch, List<String> paths, List<LabelIndex.LabelDef> labels) The labels to propose, by label id, each with its reason (in order of importance). -
buildPrompt
public static String buildPrompt(String template, String repo, String branch, List<FileChange> files, List<LabelIndex.LabelDef> labels, List<String> excludePatterns, Map<String, String> hints) Fills the template:{labels},{repo},{branch},{files}and{hint}.
-