From 7af195f0bc84f0d385d26ce3016691b55724e190 Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Mon, 18 Sep 2023 15:41:28 +0300 Subject: [PATCH] Update patch request headers Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com> --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 7b7e70e..a21a8b2 100644 --- a/index.js +++ b/index.js @@ -156,6 +156,12 @@ async function commitChanges(filePath) { `https://api.github.com/repos/${owner}/${repo}/git/refs/heads/${branch}`, { sha: newCommitSha, + }, + { + headers: { + 'Accept': 'application/vnd.github+json', + 'Authorization': `Bearer ${githubToken}`, + }, } );