From 107aafb4e8b3813a33b1e98417f717cbecb7f8a8 Mon Sep 17 00:00:00 2001 From: Sina Date: Mon, 8 Feb 2021 17:09:34 +0000 Subject: [PATCH] fix: Add missing auth header on the search request (#277) --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 4031a392..0e61b2de 100644 --- a/index.js +++ b/index.js @@ -133,6 +133,9 @@ async function main() { if (remoteBranchExists) { const q = `head:${inputs.branch} type:pr is:open repo:${process.env.GITHUB_REPOSITORY}`; const { data } = await request("GET /search/issues", { + headers: { + authorization: `token ${process.env.GITHUB_TOKEN}`, + }, q, });