Skip to content

Commit

Permalink
set default value for separatePullRequests in buildPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajime-san committed Sep 19, 2024
1 parent eb0b59c commit 90e796f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/factories/plugin-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface PluginFactoryOptions {
targetBranch: string;
repositoryConfig: RepositoryConfig;
manifestPath: string;
separatePullRequests: boolean;
separatePullRequests?: boolean;

// node options
alwaysLinkLocal?: boolean;
Expand Down Expand Up @@ -124,6 +124,9 @@ const pluginFactories: Record<string, PluginBuilder> = {
};

export function buildPlugin(options: PluginFactoryOptions): ManifestPlugin {
if (!options.separatePullRequests) {
options.separatePullRequests = false;
}
if (typeof options.type === 'object') {
const builder = pluginFactories[options.type.type];
if (builder) {
Expand Down

0 comments on commit 90e796f

Please sign in to comment.