Files
deusdata--codebase-memory-mcp/.github/issue-labeler.yml
Martin Vogel fff4761d37
DCO / dco (push) Has been cancelled
fix(ci): issue labeler no-oped on every issue — (?i) is invalid in JS RegExp
github/issue-labeler compiles patterns with JavaScript RegExp, which
rejects PCRE-only inline (?i) groups with SyntaxError: Invalid group, so
the workflow failed before evaluating any rule and no issue ever got an
area label (#764).

Replace the third-party action with first-party actions/github-script:
the same config rules are compiled with the i flag applied centrally
(case-insensitivity preserved), labels stay additive-only via addLabels,
and a pattern that fails to compile now fails the run loudly instead of
silently no-oping. Strip (?i) from all 7 config patterns and document
the line format the workflow parses.

Verified locally: all 7 rules compile and match expected labels across
sample issue texts; the old pattern reproduces the SyntaxError.

Closes #764

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-07-10 00:03:43 +02:00

22 lines
1.2 KiB
YAML

# Config for the Issue area labeler (.github/workflows/issue-labeler.yml).
# FORMAT (parsed line-wise by the workflow): one rule per line, exactly
# "label": 'regex'
# Patterns are compiled as JavaScript RegExp with the `i` flag applied by
# the workflow — do NOT use PCRE-only syntax like inline `(?i)` groups
# (that broke every run, #764). Matched against issue title + body.
# Additive only — these never remove a maintainer's manual label.
"windows": '\b(windows|win\s?1[01]|powershell|\.ps1|mapped drive|smb share|unc path)\b'
"stability/performance": '(out of memory|\boom\b|memory leak|segfault|sigsegv|sigbus|crash(es|ed|ing)?|core dumped|\bhang(s|ing)?\b|deadlock|freezes?|time(s)?\s?out|timeout|never finishes|cgroup)'
"parsing/quality": '(trace_path|query_graph|search_graph|calls? edge|missing (edges|nodes)|false positive|zero edges|0 edges|module node|not indexed|extraction|wrong (node|label))'
"editor/integration": '(cursor|vscode|vs code|opencode|codex|claude code|gemini cli|antigravity|mcp client|\.mcp\.json|installer)'
"ux/behavior": '(web ui|\bui\b|dashboard|3d graph|visuali[sz]ation|watcher|project name|frontend)'
"cypher": '\bcypher\b'
"language-request": '(language support|hybrid lsp|new language support|support for \w+ language)'