Skip to content

Fix Duplicate Code Detector checkout history - #10539

Merged
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/fix-duplicate-detector-data
Aug 11, 2026
Merged

Fix Duplicate Code Detector checkout history#10539
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/fix-duplicate-detector-data

Conversation

@Evangelink

Copy link
Copy Markdown
Member

The scheduled Duplicate Code Detector only received a depth-1 checkout, so it could not diff recent commits and reported missing data instead of analyzing code duplication.

Configure the agent checkout to fetch full Git history and regenerate the strict workflow lockfile. This gives git log and git diff the parent commits required to scope analysis while preserving immutable action pins.

Fixes #10495

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c0a32ff3-c05a-4421-a298-42b704e6c602
Copilot AI balanced review requested due to automatic review settings August 10, 2026 09:32

Copilot AI left a comment

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.

Pull request overview

Fixes the scheduled duplicate-code workflow by providing the Git history required for recent-commit analysis.

Changes:

  • Configures a full-history checkout with fetch-depth: 0.
  • Regenerates the strict lockfile while preserving immutable action pins.
Show a summary per file
File Description
.github/workflows/duplicate-code-detector.md Enables full Git history.
.github/workflows/duplicate-code-detector.lock.yml Applies the generated checkout configuration.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@Evangelink Amaury Levé (Evangelink) added the state/needs-review Awaiting review from the team. label Aug 10, 2026
@Evangelink
Amaury Levé (Evangelink) enabled auto-merge (squash) August 10, 2026 13:19
@Evangelink
Amaury Levé (Evangelink) merged commit eef323e into main Aug 11, 2026
22 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/fix-duplicate-detector-data branch August 11, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state/needs-review Awaiting review from the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Duplicate Code Detector is missing required data

3 participants