Skip to content

Remove duplicate repository entries#486

Open
DhruvGupta6177 wants to merge 1 commit into
github:mainfrom
DhruvGupta6177:fix/remove-duplicate-repositories
Open

Remove duplicate repository entries#486
DhruvGupta6177 wants to merge 1 commit into
github:mainfrom
DhruvGupta6177:fix/remove-duplicate-repositories

Conversation

@DhruvGupta6177
Copy link
Copy Markdown

Removes duplicated repository entries from the source dataset and adds a guard in the generator to prevent repeated repositories from leaking into generated output.

@DhruvGupta6177 DhruvGupta6177 marked this pull request as ready for review June 3, 2026 09:17
Copilot AI review requested due to automatic review settings June 3, 2026 09:17
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

Note

Copilot was unable to run its full agentic suite in this review.

Updates the curated repository list and ensures generated repository results don’t contain duplicates.

Changes:

  • Removed a few entries from happycommits.json.
  • Added a helper in generate.ts to de-duplicate repositories by owner/name before shuffling.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
happycommits.json Removes specific repositories from the curated list.
generate.ts Introduces repository de-duplication prior to randomizing output order.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread generate.ts
Comment on lines +98 to +104
const uniqueByRepositoryKey = (repositories: RepositoryModel[]) =>
Array.from(
repositories.reduce((map, repository) => {
map.set(`${repository.owner}/${repository.name}`, repository);
return map;
}, new Map<string, RepositoryModel>()).values()
);
Comment thread generate.ts

return {
repositories: repoData.sort(() => Math.random() - 0.5),
repositories: uniqueByRepositoryKey(repoData).sort(() => Math.random() - 0.5),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants