GitHub's Hidden Discussion IDs #106
thecodedrift
announced in
TIL
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So that I don't forget this in the future, the Discussion API for GitHub behaves a differently than a lot of the other endpoints. As I implemented GitHub as a CMS, I needed to filter by discussion category, there's an example in the docs
The only way to get the
categoryId
field is by making a GraphQL call to get the list of discussion categories. You can run this against the GitHub GraphQL Explorer. The below snip grabs the id/name of categories for this repo,codedrift
.Beta Was this translation helpful? Give feedback.
All reactions