Skip to content

Commit

Permalink
fix(changelog): Honor external changelog settings. Fixes #965
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Oct 27, 2022
1 parent 74bda0f commit c2422ee
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
Expand Up @@ -70,7 +70,6 @@ public static void validateDiscourse(JReleaserContext context, DiscourseAnnounce
discourse.getCategoryName(),
errors,
context.isDryrun()));


if (isBlank(discourse.getTitle())) {
discourse.setTitle(RB.$("default.discussion.title"));
Expand All @@ -80,7 +79,6 @@ public static void validateDiscourse(JReleaserContext context, DiscourseAnnounce
discourse.setMessageTemplate(DEFAULT_DISCOURSE_TPL);
}


if (isBlank(discourse.getMessage()) && isBlank(discourse.getMessageTemplate())) {
if (Files.exists(context.getBasedir().resolve(DEFAULT_DISCOURSE_TPL))) {
discourse.setMessageTemplate(DEFAULT_DISCOURSE_TPL);
Expand Down
Expand Up @@ -221,7 +221,6 @@ public static void validateGitService(JReleaserContext context, Mode mode, BaseR

if (!generate) {
service.getChangelog().setEnabled(true);
service.getChangelog().setExternal(null);
service.getChangelog().setSort(org.jreleaser.model.Changelog.Sort.DESC);
}
if (service.isReleaseSupported()) {
Expand Down
Expand Up @@ -87,7 +87,6 @@ public org.jreleaser.model.api.release.GithubReleaser getReleaser() {

@Override
public String generateReleaseNotes() throws IOException {

if (github.getReleaseNotes().isEnabled()) {
String content = generateReleaseNotesByAPI();

Expand Down

0 comments on commit c2422ee

Please sign in to comment.