github-tools / github

A higher-level wrapper around the Github API. Intended for the browser.
BSD 3-Clause "New" or "Revised" License
3.6k stars 755 forks source link

How to send a custom header? #595

Open sustained opened 4 years ago

sustained commented 4 years ago

If you send Accept: application/vnd.github.mercy-preview+json then you get access to some extra stuff e.g. repository topics. So far I couldn't find any way to do this but I'm still searching through the code/docs.

danwenzel commented 4 years ago

I recommend switching to https://github.com/octokit/rest.js. It's better-maintained, and can do what you're looking for