How do I change the 5 topics shown for a GitHub repository in search results?
12:19 13 Oct 2026

I have a GitHub repository with 11 topics on it. When searching repositories on GitHub, only 5 of those topics get shown in the results, selected seemingly at random. I'd like to change the 5 "main" tags shown in search results without removing topics from the main repo page. (The topics on my repo page are sorted alphabetically with no way to re-arrange them.)

What determines which 5 topics get chosen for my repository in GitHub search results? How can I swap which ones get shown?

Search result on GitHub of a repository with 5 tags

github