Skip to content

Function: normalizeBadgeRule() ​

ts
function normalizeBadgeRule(input): BadgeRuleResult;

Defined in: badgeRules.ts:207

Tidy a rule someone built, or say what is wrong with it. Empty criteria groups are dropped, as a blank row left in the builder is not a mistake worth stopping for; a rule with no conditions at all is refused.

Parameters ​

ParameterType
inputunknown

Returns ​

BadgeRuleResult

Released under the GNU Affero General Public License v3.0.