fix(route): github recent issues (#9473)

This commit is contained in:
Tony
2022-04-05 08:38:18 -07:00
committed by GitHub
parent 521862793e
commit 5ee16451dc
2 changed files with 7 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ module.exports = async (ctx) => {
const host = `https://github.com/${user}/${repo}/pulls`;
const url = `https://api.github.com/repos/${user}/${repo}/pulls`;
const headers = {};
const headers = { Accept: 'application/vnd.github.v3+json' };
if (config.github && config.github.access_token) {
headers.Authorization = `token ${config.github.access_token}`;
}