Change that fixes issue 92 - #131
Merged
Merged
Conversation
sachin-panayil
approved these changes
Jul 20, 2026
sachin-panayil
left a comment
Collaborator
There was a problem hiding this comment.
great work! exactly what the ticket asked for an in a efficient way
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Repository tags generated from GitHub topics were overwriting the existing
tagsfield incode.json.This caused any tags that had been manually added to
code.json(but did not exist as GitHub repository topics) to be removed the next time the metadata generator ran. As a result, custom tags such asfeaturedwould be lost in future generated PRs.Solution
Added a
mergeTagshelper that combines the detected GitHub repository topics with the existingcode.jsontags while removing duplicates.Instead of replacing the existing tags when repository topics are present, the metadata generator now merges both sources, preserving manually added tags while still including the repository topics.
Tests
Added unit tests covering the new merge behavior:
Preserves existing tags that are not repository topics
code.jsonare retained after metadata generation.Does not duplicate tags that already exist as repository topics
code.jsonare included only once.Uses repository topics when no existing
code.jsonis presentcode.jsoncontinue to use the detected GitHub repository topics as before.Closes Metadata: Preserve tags that are not repo topics by adding as repo topics #92