Skip to content

Commit

Permalink
Merge branch 'master' into joeldodge/node-monorepo-package-github-rel…
Browse files Browse the repository at this point in the history
…ease-fix
  • Loading branch information
bcoe committed Dec 18, 2020
2 parents b22ceda + f441676 commit 1ddbae0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions __snapshots__/yoshi-go.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ filename: pubsublite/CHANGES.md
# Changelog
## [0.124.0](https://www.github.com/googleapis/google-cloud-go/compare/v0.123.4...v0.124.0) (1983-10-10)
### Features
### Bug Fixes
### [0.123.5](https://www.github.com/googleapis/google-cloud-go/compare/v0.123.4...v0.123.5) (1983-10-10)
* **pubsublite:** start generating v1 ([1d9662c](https://www.github.com/googleapis/google-cloud-go/commit/1d9662cf08ab1cf3b68d95dee4dc99b7c4aac371))
`
11 changes: 7 additions & 4 deletions src/releasers/go-yoshi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,13 @@ export class GoYoshi extends ReleasePR {
githubRepoUrl: this.repoUrl,
bumpMinorPreMajor: this.bumpMinorPreMajor,
});
const candidate: ReleaseCandidate = await this.coerceReleaseCandidate(
cc,
latestTag
);
const candidate: ReleaseCandidate =
this.monorepoTags ||
!(this.isMultiClientRepo(repo) || this.isGapicRepo(repo))
? // Submodules use conventional commits to bump major/minor/patch:
await super.coerceReleaseCandidate(cc, latestTag)
: // Root module always bumps minor:
await this.coerceReleaseCandidate(cc, latestTag);

// "closes" is a little presumptuous, let's just indicate that the
// PR references these other commits:
Expand Down
2 changes: 1 addition & 1 deletion test/releasers/fixtures/yoshi-go/cloud-go-commits.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
},
{
"node": {
"message": "feat(pubsublite): start generating v1",
"message": "fix(pubsublite): start generating v1",
"oid": "1d9662cf08ab1cf3b68d95dee4dc99b7c4aac371",
"associatedPullRequests": {
"edges": [
Expand Down

0 comments on commit 1ddbae0

Please sign in to comment.