Skip to content

Commit 47b6533

Browse files
committed
fix: correcting mapping of toRevision
1 parent 25b6a59 commit 47b6533

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/se/bjurr/gitchangelog/plugin/GitChangelogMojo.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ public class GitChangelogMojo extends AbstractMojo {
3737
@Parameter(property = "toRevisionStrategy", required = false, defaultValue = "DEFAULT")
3838
public InclusivenessStrategy toRevisionStrategy;
3939

40-
/** {@link Deprecated} use toRevision */
40+
/** {@link Deprecated} use fromRevision */
4141
@Deprecated
4242
@Parameter(property = "fromRef", required = false)
4343
private String fromRef;
4444

45-
/** {@link Deprecated} use toRevision */
45+
/** {@link Deprecated} use fromRevision */
4646
@Deprecated
4747
@Parameter(property = "fromCommit", required = false)
4848
private String fromCommit;
@@ -267,7 +267,7 @@ public void execute() throws MojoExecutionException {
267267
builder.withToRef(this.toRef);
268268
}
269269
if (this.isSupplied(this.toRevision)) {
270-
builder.withFromRevision(this.toRevision, this.toRevisionStrategy);
270+
builder.withToRevision(this.toRevision, this.toRevisionStrategy);
271271
}
272272

273273
if (this.isSupplied(this.ignoreTagsIfNameMatches)) {

0 commit comments

Comments
 (0)