From 4e6a7aea8839cf07ff3b77551d8385027865198e Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Mon, 18 Sep 2023 15:37:28 +0300 Subject: [PATCH] Update commit request headers Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com> --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index c55f075..5218536 100644 --- a/index.js +++ b/index.js @@ -124,8 +124,7 @@ async function commitChanges(filePath) { { headers: { 'Accept': 'application/vnd.github+json', - 'Authorization': `Bearer ${githubToken}`, - 'X-GitHub-Api-Version': '2022-11-28' + 'Authorization': `Bearer ${githubToken}` }, } ); @@ -143,7 +142,7 @@ async function commitChanges(filePath) { }, { headers: { - 'Accept': 'application/vnd.github.v3+json', + 'Accept': 'application/vnd.github+json', 'Authorization': `Bearer ${githubToken}`, }, }