Skip to content

Commit

Permalink
fix(changelog): Automatically hide contributors for excluded labels
Browse files Browse the repository at this point in the history
Related to #1543
  • Loading branch information
aalmiray committed Dec 1, 2023
1 parent 928d988 commit b2255dc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -377,7 +377,7 @@ private static void validateChangelog(JReleaserContext context, BaseReleaser<?,
.collect(groupingBy(Changelog.Category::getTitle));
byTitle.forEach((title, categories) -> {
if (categories.size() > 1) {
errors.configuration(RB.$("validationgetChangelog_multiple_categories", service.getServiceName(), title));
errors.configuration(RB.$("validation_changelog_multiple_categories", service.getServiceName(), title));
}
});
}
Expand All @@ -392,7 +392,7 @@ private static void validateChangelog(JReleaserContext context, BaseReleaser<?,
errors.configuration(RB.$("validation_git_required", service.getServiceName() + ".changelog.labelers[" + i + "] title", "body", "contributor"));
}

if (isNotBlank(labeler.getContributor())) {
if (isNotBlank(labeler.getContributor()) && changelog.getExcludeLabels().contains(labeler.getLabel())) {
changelog.getHide().getContributors().add(labeler.getContributor());
}

Expand Down

0 comments on commit b2255dc

Please sign in to comment.