Skip to content

Fix case-sensitive title matching in GitHub issue creator#53

Merged
BorDevTech merged 2 commits into
mainfrom
copilot/fix-52
Sep 22, 2025
Merged

Fix case-sensitive title matching in GitHub issue creator#53
BorDevTech merged 2 commits into
mainfrom
copilot/fix-52

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Sep 22, 2025

The checkExistingFileIssue method in the GitHub issue creator was using case-sensitive string comparison to match existing issues by filename. This could cause the system to miss existing issues and create duplicates when there were differences in filename casing between the search query and actual issue titles.

For example, if an existing issue had the title "Component.tsx" but the system was searching for "component.tsx", the case-sensitive comparison would fail to find the match, leading to duplicate issue creation.

Before:

const exactMatch = data.items.find((issue: any) => issue.title === fileName);

After:

const exactMatch = data.items.find((issue: any) => issue.title.toLowerCase() === fileName.toLowerCase());

This change ensures that existing issues are properly identified regardless of case differences in filenames, preventing duplicate issue creation while maintaining all existing functionality.

Fixes #52.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
clear-view Ready Ready Preview Comment Sep 22, 2025 4:30am

Co-authored-by: BorDevTech <73800053+BorDevTech@users.noreply.github.com>
Copilot AI changed the title [WIP] The exact title match comparison is case-sensitive and might miss issues if there are differences in filename casing between the search query and actual issue titles. Fix case-sensitive title matching in GitHub issue creator Sep 22, 2025
Copilot AI requested a review from BorDevTech September 22, 2025 04:30
@BorDevTech BorDevTech marked this pull request as ready for review September 22, 2025 04:31
Copilot AI review requested due to automatic review settings September 22, 2025 04:31
@BorDevTech BorDevTech merged commit 15f3810 into main Sep 22, 2025
8 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes case-sensitive title matching in the GitHub issue creator to prevent duplicate issue creation when filenames differ only in case.

  • Changes string comparison from case-sensitive to case-insensitive using toLowerCase()
  • Updates comment to reflect the case-insensitive matching behavior

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@BorDevTech BorDevTech deleted the copilot/fix-52 branch September 22, 2025 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants