Skip to content

Commit

Permalink
fix: Allow linked-versions to skip merging pull requests (#1779)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Ching <chingor@google.com>
  • Loading branch information
luxaritas and chingor13 authored Mar 14, 2023
1 parent d3b2f2f commit dc48b55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
13 changes: 8 additions & 5 deletions __snapshots__/linked-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,28 @@ exports['LinkedVersions plugin can skip grouping pull requests 2'] = `
---
<details><summary>pkg2: 0.2.4</summary>
## [0.2.4](https://github.com/fake-owner/fake-repo/compare/pkg2-v0.2.3...pkg2-v0.2.4) (1983-10-10)
### Bug Fixes
* some bugfix ([bbbbbb](https://github.com/fake-owner/fake-repo/commit/bbbbbb))
</details>
<details><summary>pkg3: 0.2.4</summary>
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
`

exports['LinkedVersions plugin can skip grouping pull requests 3'] = `
:robot: I have created a release *beep* *boop*
---
## [0.2.4](https://github.com/fake-owner/fake-repo/compare/pkg3-v0.2.3...pkg3-v0.2.4) (1983-10-10)
### Miscellaneous Chores
* **pkg3:** Synchronize group name versions
</details>
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Expand Down
6 changes: 5 additions & 1 deletion src/factories/plugin-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ const pluginFactories: Record<string, PluginBuilder> = {
options.targetBranch,
options.repositoryConfig,
(options.type as LinkedVersionPluginConfig).groupName,
(options.type as LinkedVersionPluginConfig).components
(options.type as LinkedVersionPluginConfig).components,
{
...options,
...(options.type as WorkspacePluginOptions),
}
),
'cargo-workspace': options =>
new CargoWorkspace(
Expand Down

0 comments on commit dc48b55

Please sign in to comment.