Using GitHub Topics to my website's desire

8th Jul 2022

Octocat figurine next to Groot figurine

I used GitHub Topics to query GitHub's API

I was working on my website and I wanted to add a feature to query my GitHub repos but, I didn’t want ALL of my repos to be returned.

The first thing I did was look for a way to query repos so only some would be returned. On the repo’s screen, in the About section, I noticed Topics. After looking around a bit, I found that Topics were available through the GitHub API and could be used within a search.

Success! After some experimenting, I was able to return only repos that had featured-repo as one of the topics.

Tags:

Adam

Adam facts:

Adam went to Meow Wolf in Santa Fe