MCPcopy Create free account
hub / github.com/dailydotdev/apps / isEscalation

Function isEscalation

packages/shared/src/features/patchy/patchyTriggers.ts:108–111  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

106const PATCHY_ESCALATE_EVERY = 5;
107
108const isEscalation = (count: number): boolean =>
109 count === PATCHY_ESCALATE_AT ||
110 (count > PATCHY_ESCALATE_AT &&
111 (count - PATCHY_ESCALATE_AT) % PATCHY_ESCALATE_EVERY === 0);
112
113export const getActionTrigger = (
114 action: 'upvote' | 'bookmark',

Callers 1

getActionTriggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected