From 2f86fc5efed9d41dacee25a5db7e8bd2e22296f8 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Wed, 17 Sep 2025 23:06:28 -0700 Subject: [PATCH] feat: add invokable option to markdown rule creation (#7824) * feat: add invokable option to markdown rule creation * Apply suggestion from @cubic-dev-ai[bot] Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- packages/config-yaml/src/markdown/createMarkdownRule.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/config-yaml/src/markdown/createMarkdownRule.ts b/packages/config-yaml/src/markdown/createMarkdownRule.ts index 0fdf522f8..b868bbb51 100644 --- a/packages/config-yaml/src/markdown/createMarkdownRule.ts +++ b/packages/config-yaml/src/markdown/createMarkdownRule.ts @@ -36,6 +36,7 @@ export function createRuleMarkdown( globs?: string | string[]; regex?: string | string[]; alwaysApply?: boolean; + invokable?: boolean; } = {}, ): string { const frontmatter: RuleFrontmatter = {}; @@ -54,6 +55,10 @@ export function createRuleMarkdown( frontmatter.description = options.description.trim(); } + if (options.invokable !== undefined) { + frontmatter.invokable = options.invokable; + } + if (options.alwaysApply !== undefined) { frontmatter.alwaysApply = options.alwaysApply; }