Skip to content

Commit

Permalink
chore: added undefined state to skipBotEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jan 21, 2025
1 parent 74b3281 commit c26ef05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/github/types/plugin-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const pluginChainSchema = T.Array(
plugin: githubPluginType(),
with: T.Record(T.String(), T.Unknown(), { default: {} }),
runsOn: T.Array(emitterType, { default: [] }),
skipBotEvents: T.Boolean({ default: true }),
skipBotEvents: T.Optional(T.Boolean({ default: true })),
}),
{ minItems: 1, default: [] }
);
Expand Down
4 changes: 2 additions & 2 deletions src/github/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export async function getConfig(context: GitHubContext): Promise<PluginConfigura
if (!plugin.uses[0].runsOn.length) {
plugin.uses[0].runsOn = manifest["ubiquity:listeners"] ?? [];
}
if (manifest.skipBotEvents !== undefined) {
plugin.uses[0].skipBotEvents = manifest.skipBotEvents ?? plugin.uses[0].skipBotEvents;
if (plugin.uses[0].skipBotEvents === undefined) {
plugin.uses[0].skipBotEvents = manifest.skipBotEvents ?? true;
}
}
}
Expand Down

0 comments on commit c26ef05

Please sign in to comment.