Skip to content

Commit

Permalink
fix(java): fix git base sha for snapshot releases (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Apr 1, 2020
1 parent 4120252 commit 7e75f7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/releasers/java-yoshi.ts
Expand Up @@ -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,
Expand All @@ -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.';
Expand Down

0 comments on commit 7e75f7f

Please sign in to comment.