Skip to content

chore: add gh-aw duplicate code detector workflow#1487

Merged
KRRT7 merged 1 commit into
mainfrom
add-duplicate-code-detector
Feb 14, 2026
Merged

chore: add gh-aw duplicate code detector workflow#1487
KRRT7 merged 1 commit into
mainfrom
add-duplicate-code-detector

Conversation

@KRRT7

@KRRT7 KRRT7 commented Feb 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds the GitHub Agentic Workflows duplicate code detector, configured for Python with Serena semantic analysis
  • Runs daily, flags patterns spanning 10+ lines or appearing in 3+ locations
  • Creates up to 3 issues per run with [duplicate-code] prefix

Notes

  • Requires Claude API secret configured in repo Actions secrets
  • code-quality and automated-analysis labels will be auto-created on first run

@github-actions github-actions Bot added the workflow-modified This PR modifies GitHub Actions workflows label Feb 14, 2026
create-issue:
expires: 2d
title-prefix: "[duplicate-code] "
labels: [code-quality, automated-analysis, cookie]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cookie label appears to be a test/placeholder label. Was this intentionally included? If not, it should be removed to avoid creating a spurious label in the repository on first run.

Suggested change
labels: [code-quality, automated-analysis, cookie]
labels: [code-quality, automated-analysis]

@claude

claude Bot commented Feb 14, 2026

Copy link
Copy Markdown
Contributor

PR Review Summary

Prek Checks

✅ No issues — this PR contains no Python files. Prek reported (no files to check).

Mypy Checks

✅ No issues — no Python files changed.

Code Review

This PR adds the GitHub Agentic Workflows (gh-aw) duplicate code detector workflow. The changes consist of:

  • .gitattributes — marks lock.yml files as generated
  • .github/aw/ — action lock pins and imported reporting template
  • .github/workflows/duplicate-code-detector.lock.yml — auto-generated workflow (1170 lines, DO NOT EDIT)
  • .github/workflows/duplicate-code-detector.md — workflow configuration

Outstanding issue (from previous review):

  • Line 19 in duplicate-code-detector.md: The cookie label is still present in labels: [code-quality, automated-analysis, cookie]. This appears to be a test/placeholder label that should be removed before merge.

No other critical bugs, security vulnerabilities, or breaking API changes found.

Test Coverage

✅ N/A — no Python source files were changed in this PR. Coverage is unaffected.

Codeflash Optimization PRs

No mergeable optimization PRs found. All 29 open codeflash-ai[bot] PRs have failing CI checks.


Last updated: 2026-02-14

Adds automated duplicate code detection using GitHub Agentic Workflows
with Serena semantic analysis, configured for Python.
@KRRT7 KRRT7 force-pushed the add-duplicate-code-detector branch from 276fb56 to f819d60 Compare February 14, 2026 23:14
@KRRT7 KRRT7 merged commit b3c3a30 into main Feb 14, 2026
28 of 29 checks passed
@KRRT7 KRRT7 deleted the add-duplicate-code-detector branch February 14, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workflow-modified This PR modifies GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant