Skip to content

Commit

Permalink
fix: removed default value for skipBotEvents becoming true even whe…
Browse files Browse the repository at this point in the history
…n overridden in manifest.json
  • Loading branch information
gentlementlegen committed Jan 22, 2025
1 parent 1a47a4c commit d9ae748
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/github/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,12 @@ export async function getConfig(context: GitHubContext): Promise<PluginConfigura

for (const plugin of mergedConfiguration.plugins) {
const manifest = await getManifest(context, plugin.uses[0].plugin);
console.log("+++++ Fetch manifest", JSON.stringify(manifest), plugin.uses[0]);
if (manifest) {
if (!plugin.uses[0].runsOn.length) {
plugin.uses[0].runsOn = manifest["ubiquity:listeners"] ?? [];
}
if (plugin.uses[0].skipBotEvents === undefined) {
plugin.uses[0].skipBotEvents = manifest.skipBotEvents ?? true;
console.log("Overridden skipBotEvents", plugin.uses[0].skipBotEvents);
}
}
}
Expand Down

0 comments on commit d9ae748

Please sign in to comment.