From 1dff45e6ceece5a5c6d798d92a95a2806f756e72 Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Mon, 18 Sep 2023 15:16:35 +0300 Subject: [PATCH] Add header for commit request 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 d393a84..639d9f5 100644 --- a/index.js +++ b/index.js @@ -140,6 +140,12 @@ async function commitChanges(filePath) { message: commitMessage, tree: newTreeSha, parents: [baseTreeSha], + }, + { + headers: { + 'Accept': 'application/vnd.github.v3+json', + 'Authorization': `Bearer ${githubToken}`, + }, } );