Skip to content

Conversation

@codomposer
Copy link

@codomposer codomposer commented Nov 5, 2025

feat: Include gists in top languages calculation

Description

Implements feature request to include gists in top languages statistics, providing more accurate language usage data.

Fixes

Closes #4638

Changes Made

  • GraphQL Query: Added gist fetching alongside repositories with file language detection
  • Gist Processing: Implemented language aggregation logic that counts gists containing each language
  • Data Merging: Combined repository and gist statistics while maintaining existing weighting system
  • Tests: Updated test suite with gist data and verified all functionality

Technical Details

  • Gists are processed by aggregating file sizes per language and counting gists per language
  • Maintains backward compatibility with existing repository-based calculations
  • Languages from both repos and gists are properly combined

Testing

✅ All existing tests pass
✅ New gist functionality verified
✅ No breaking changes

Addresses: "feat: include gists in top language data"

Contribution by Gittensor, learn more at https://gittensor.io/

- Add GraphQL query to fetch user gists alongside repositories
- Implement gist language aggregation logic that properly counts gists containing each language
- Merge repository and gist language statistics for comprehensive language usage
- Update tests to include gist data and verify correct aggregation
- Add detailed comments explaining the gist processing logic

This addresses the feature request to include gists in language statistics,
providing more accurate top languages data by considering code in both repos and gists.
@vercel
Copy link

vercel bot commented Nov 5, 2025

@codomposer is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the lang-card Issues related to the language card. label Nov 5, 2025
@codomposer codomposer closed this Nov 5, 2025
@Sakurapainting
Copy link

why it closed

@codomposer
Copy link
Author

I will reopen

@codomposer codomposer reopened this Nov 6, 2025
@codomposer
Copy link
Author

@Sakurapainting Could you please take a look the PR again?

@Sakurapainting
Copy link

How to get the repo maintainers to review the PR?

@codomposer
Copy link
Author

@anuraghazra is owner of this repo, and then he is responsible for managing PRs
So, He only can merge this PR

@Sakurapainting
Copy link

I also have a PR #4351 , but it still hasn’t been reviewed yet.

@filipopo
Copy link

filipopo commented Nov 7, 2025

You guys are more active than the maintainer, you should make a fork haha. But they are busy and try to check all the issues but focus on the top upvoted ones in #1935

p.s You can also tag other people, @qwerty541 and @rickstaa are maintainers

@codomposer codomposer closed this Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang-card Issues related to the language card.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: include gists in top language data

3 participants