Skip to content

Commit 72756c8

Browse files
hudeng-goBLumia
authored andcommitted
fix: extend AI co-author pattern check with more model names
Add claude, anthropic, openai, chatgpt, gemini, deepseek, mistral, llama, codestral to the blocked co-author pattern list to catch more AI-generated co-author lines.
1 parent ef57b00 commit 72756c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/commitlint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
env:
1818
PR_BODY: ${{ github.event.pull_request.body }}
1919
run: |
20-
BLOCKED_PATTERN='Co-authored-by:.*ai|Co-authored-by:.*agent|Co-authored-by:.*copilot|Co-authored-by:.*llm|Co-authored-by:.*gpt'
20+
BLOCKED_PATTERN='Co-authored-by:.*ai|Co-authored-by:.*agent|Co-authored-by:.*copilot|Co-authored-by:.*llm|Co-authored-by:.*gpt|Co-authored-by:.*claude|Co-authored-by:.*anthropic|Co-authored-by:.*openai|Co-authored-by:.*chatgpt|Co-authored-by:.*gemini|Co-authored-by:.*deepseek|Co-authored-by:.*mistral|Co-authored-by:.*llama|Co-authored-by:.*codestral'
2121
if echo "${PR_BODY}" | grep -Eiq "${BLOCKED_PATTERN}"; then
2222
echo "FAIL: PR description contains blocked co-author AI pattern." >&2
2323
echo "Blocked pattern: ${BLOCKED_PATTERN}" >&2
@@ -29,7 +29,7 @@ jobs:
2929
- name: check commit messages for AI co-author pattern
3030
shell: bash
3131
run: |
32-
BLOCKED_PATTERN='Co-authored-by:.*ai|Co-authored-by:.*agent|Co-authored-by:.*copilot|Co-authored-by:.*llm|Co-authored-by:.*gpt'
32+
BLOCKED_PATTERN='Co-authored-by:.*ai|Co-authored-by:.*agent|Co-authored-by:.*copilot|Co-authored-by:.*llm|Co-authored-by:.*gpt|Co-authored-by:.*claude|Co-authored-by:.*anthropic|Co-authored-by:.*openai|Co-authored-by:.*chatgpt|Co-authored-by:.*gemini|Co-authored-by:.*deepseek|Co-authored-by:.*mistral|Co-authored-by:.*llama|Co-authored-by:.*codestral'
3333
COMMIT_MSGS=$(git log --format=%B ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} 2>/dev/null || true)
3434
if [[ -n "${COMMIT_MSGS}" ]] && echo "${COMMIT_MSGS}" | grep -Eiq "${BLOCKED_PATTERN}"; then
3535
echo "FAIL: Commit messages contain blocked co-author AI pattern." >&2

0 commit comments

Comments
 (0)