Skip to content

fix: sort repositories by issue count without mutating state - #577

Open
YashCoder-svg wants to merge 1 commit into
github:mainfrom
YashCoder-svg:fix/sort-repositories-by-issue-count
Open

YashCoder-svg wants to merge 1 commit into
github:mainfrom
YashCoder-svg:fix/sort-repositories-by-issue-count

Conversation

@YashCoder-svg

Copy link
Copy Markdown

No description provided.

Copilot AI adaptive review requested due to automatic review settings November 19, 2026 05:12

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.

🟢 Approval recommended

The reviewed changes address the sorting and filtering issues with no remaining active review concerns.

No open issues 🎉

What changed in this PR

Fixes homepage repository sorting to order repositories by issue count without mutating application state, and removes a redundant repository filter condition.

Changes:

  • Clone the repository array before sorting by descending issue count.
  • Compare repositories using their issue-array lengths.
  • Remove the duplicate repository-wide search predicate.
File Description
pages/​index.tsx Sorts a copied repository array by descending issue count without mutating state.
components/​RepositoryList.tsx Removes a redundant duplicate predicate from repository filtering.

Review effort: Lite (adaptive)

@ShoaibAKHTER0010 ShoaibAKHTER0010 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

yes!

This branch has not been deployed

No deployments
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.

3 participants