automod: don't generate summary if doing a silentClean
This commit is contained in:
parent
ac714ea307
commit
e55a1e3bd6
1 changed files with 8 additions and 8 deletions
|
@ -44,14 +44,6 @@ export async function runAutomod(pluginData: PluginData<AutomodPluginType>, cont
|
||||||
_context.actioned = true;
|
_context.actioned = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
matchResult.summary = await trigger.renderMatchInformation({
|
|
||||||
ruleName,
|
|
||||||
pluginData,
|
|
||||||
contexts,
|
|
||||||
matchResult,
|
|
||||||
triggerConfig,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (matchResult.silentClean) {
|
if (matchResult.silentClean) {
|
||||||
await CleanAction.apply({
|
await CleanAction.apply({
|
||||||
ruleName,
|
ruleName,
|
||||||
|
@ -63,6 +55,14 @@ export async function runAutomod(pluginData: PluginData<AutomodPluginType>, cont
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
matchResult.summary = await trigger.renderMatchInformation({
|
||||||
|
ruleName,
|
||||||
|
pluginData,
|
||||||
|
contexts,
|
||||||
|
matchResult,
|
||||||
|
triggerConfig,
|
||||||
|
});
|
||||||
|
|
||||||
break triggerLoop;
|
break triggerLoop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue