* feat: add prek pre-commit hooks and dependabot Pre-commit hooks (via prek): - Basic hygiene: trailing-whitespace, end-of-file-fixer, check-yaml, check-added-large-files, check-merge-conflict - Security: detect-secrets, zizmor (GitHub Actions audit) - Linting: shellcheck, actionlint, oxlint, swiftlint - Formatting: oxfmt, swiftformat Dependabot: - npm and GitHub Actions ecosystems - Grouped updates (production/development/actions) - 7-day cooldown for supply chain protection Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * docs: add prek install instruction to AGENTS.md --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
449 B
TypeScript
15 lines
449 B
TypeScript
import type { ChannelGroupContext } from "clawdbot/plugin-sdk";
|
|
|
|
import { resolveMattermostAccount } from "./mattermost/accounts.js";
|
|
|
|
export function resolveMattermostGroupRequireMention(
|
|
params: ChannelGroupContext,
|
|
): boolean | undefined {
|
|
const account = resolveMattermostAccount({
|
|
cfg: params.cfg,
|
|
accountId: params.accountId,
|
|
});
|
|
if (typeof account.requireMention === "boolean") return account.requireMention;
|
|
return true;
|
|
}
|