From 7e75f7f3c91b08452262c1d2e3ce4218f607b3b7 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 1 Apr 2020 13:08:21 -0700 Subject: [PATCH] fix(java): fix git base sha for snapshot releases (#388) --- src/releasers/java-yoshi.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/releasers/java-yoshi.ts b/src/releasers/java-yoshi.ts index f027805ec..ec016538b 100644 --- a/src/releasers/java-yoshi.ts +++ b/src/releasers/java-yoshi.ts @@ -150,7 +150,7 @@ export class JavaYoshi extends ReleasePR { }, ] : await this.commits(latestTag ? latestTag.sha : undefined, 100, true); - let prSHA = commits[0].sha; + const prSHA = commits[0].sha; const cc = new ConventionalCommits({ commits, @@ -176,7 +176,6 @@ export class JavaYoshi extends ReleasePR { // 2. they always update a patch with the -SNAPSHOT suffix. // 3. they're haunted. if (this.snapshot) { - prSHA = latestTag!.sha; candidate.version = `${candidate.version}-SNAPSHOT`; changelogEntry = '### Updating meta-information for bleeding-edge SNAPSHOT release.';