Repository API - read and replace topics for a repository

Today we're introducing additions to the repository topics preview. You can now replace all the topics for a repository.

You can also list the topics for a repository specifically.

In addition to these new endpoints, the topics are also available as part of the payload in the get repository and search repositories endpoints.

To access the repository topics during the preview period, you must provide a custom media type in the Accept header:

application/vnd.github.mercy-preview+json

If you have any questions or feedback, please let us know!