Skip to content

change that introduces fix to issue 93 - #129

Merged
jjijon7000 merged 2 commits into
devfrom
issue-93-languages-override
Jul 22, 2026
Merged

change that introduces fix to issue 93#129
jjijon7000 merged 2 commits into
devfrom
issue-93-languages-override

Conversation

@jjijon7000

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the metadata generation bug where manually maintained languages in code.json were being overwritten by GitHub API values during generation.

The behavior now matches the existing tags preservation pattern from issue #92:

  • If languages already exist in code.json, they are preserved.
  • If languages are missing or empty, the generator falls back to the GitHub-detected languages.
  • Added unit coverage for both the preservation path and the fallback path.

Testing

  • npx jest --runInBand src/__tests__/unit/main.test.ts

Related Issue

@sachin-panayil sachin-panayil left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! clean and simple fix

@jjijon7000
jjijon7000 merged commit 0844e75 into dev Jul 22, 2026
5 checks passed
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.

Metadata: Languages being overridden by GitHub API

2 participants