Skip to content

Import repository language breakdowns#1105

Open
AgentGoose32 wants to merge 1 commit into
ecosyste-ms:mainfrom
AgentGoose32:polar-640-show-language
Open

Import repository language breakdowns#1105
AgentGoose32 wants to merge 1 commit into
ecosyste-ms:mainfrom
AgentGoose32:polar-640-show-language

Conversation

@AgentGoose32
Copy link
Copy Markdown

Refs #640

Summary

  • fetch GitHub language breakdowns through the repository languages API during import
  • fetch Gitea/Forgejo language breakdowns through /api/v1/repos/:owner/:repo/languages
  • keep the primary language field populated from the largest detected language when breakdown data is available
  • persist the full language breakdown in repository metadata

Validation

  • ruby -c app/models/hosts/base.rb
  • ruby -c app/models/hosts/github.rb
  • ruby -c app/models/hosts/gitea.rb
  • git diff --check

Full targeted tests remain locally blocked by this repo's Ruby/Bundler dependency state: system Ruby is too old for the lockfile, and Homebrew Ruby reaches Bundler but cannot install locked sitemap_generator (7.0.0) from rubygems.org.

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.

1 participant