Skip to content

Commit cd4a2cd

Browse files
committed
pattern
Co-authored-by: Claude
1 parent 445455a commit cd4a2cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/genaiPatterns.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ const COMMIT_PATTERNS = [
163163

164164
// PR body/description patterns
165165
const PR_BODY_PATTERNS = [
166+
// Co-authored-by patterns (same as commit patterns, for PR body)
167+
new RegExp(`Co-Authored-By:.*\\b(${AI_TOOLS_PATTERN})\\b`, "i"),
168+
/Co-Authored-By:.*(@anthropic\.com|@openai\.com|noreply@github\.com)/i,
169+
166170
// Explicit assistance mentions
167171
new RegExp(
168172
`\\b(generated|assisted|created|written|coded|implemented)\\s+(by|with|using|via)\\s+(${AI_TOOLS_PATTERN}|AI|GenAI|LLM)`,

0 commit comments

Comments
 (0)