Skip to content

Commit

Permalink
[changelog] resolve full changelog when requested. Fixes #776
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Feb 25, 2022
1 parent d71040c commit d8eefce
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,11 @@ private Iterable<RevCommit> resolveCommits(Git git, JReleaserContext context) th
Project.Snapshot snapshot = context.getModel().getProject().getSnapshot();
String effectiveLabel = snapshot.getEffectiveLabel();
if (effectiveLabel.equals(effectiveTagName)) {
if (!tag.isPresent() || snapshot.isFullChangelog()) {
if (snapshot.isFullChangelog()) {
tag = Optional.empty();
}

if (!tag.isPresent()) {
if (previousTag.isPresent()) {
tag = previousTag;
}
Expand Down

0 comments on commit d8eefce

Please sign in to comment.