This pull request addresses issue #17 by enhancing the user profile page to display the total number of stars a user has received on their repositories. The star count excludes forked repositories, providing a more accurate representation of the user's contributions and achievements.
To achieve this, the GraphQL query userProfileQuery has been updated to filter out forked repositories using the isFork field in the repositories connection. This ensures that only the stars given to the user's own repositories are counted in the displayed star count.
Resolve #17
This pull request addresses issue #17 by enhancing the user profile page to display the total number of stars a user has received on their repositories. The star count excludes forked repositories, providing a more accurate representation of the user's contributions and achievements.
To achieve this, the GraphQL query
userProfileQuery
has been updated to filter out forked repositories using theisFork
field in therepositories
connection. This ensures that only the stars given to the user's own repositories are counted in the displayed star count.Here's a snippet of the updated code: