Skip to content

Commit dc48b55

Browse files
luxaritaschingor13
andauthored
fix: Allow linked-versions to skip merging pull requests (#1779)
Co-authored-by: Jeff Ching <[email protected]>
1 parent d3b2f2f commit dc48b55

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

__snapshots__/linked-versions.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,28 @@ exports['LinkedVersions plugin can skip grouping pull requests 2'] = `
1919
---
2020
2121
22-
<details><summary>pkg2: 0.2.4</summary>
23-
2422
## [0.2.4](https://github.com/fake-owner/fake-repo/compare/pkg2-v0.2.3...pkg2-v0.2.4) (1983-10-10)
2523
2624
2725
### Bug Fixes
2826
2927
* some bugfix ([bbbbbb](https://github.com/fake-owner/fake-repo/commit/bbbbbb))
30-
</details>
3128
32-
<details><summary>pkg3: 0.2.4</summary>
29+
---
30+
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
31+
`
32+
33+
exports['LinkedVersions plugin can skip grouping pull requests 3'] = `
34+
:robot: I have created a release *beep* *boop*
35+
---
36+
3337
3438
## [0.2.4](https://github.com/fake-owner/fake-repo/compare/pkg3-v0.2.3...pkg3-v0.2.4) (1983-10-10)
3539
3640
3741
### Miscellaneous Chores
3842
3943
* **pkg3:** Synchronize group name versions
40-
</details>
4144
4245
---
4346
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).

src/factories/plugin-factory.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ const pluginFactories: Record<string, PluginBuilder> = {
5858
options.targetBranch,
5959
options.repositoryConfig,
6060
(options.type as LinkedVersionPluginConfig).groupName,
61-
(options.type as LinkedVersionPluginConfig).components
61+
(options.type as LinkedVersionPluginConfig).components,
62+
{
63+
...options,
64+
...(options.type as WorkspacePluginOptions),
65+
}
6266
),
6367
'cargo-workspace': options =>
6468
new CargoWorkspace(

0 commit comments

Comments
 (0)