From 555818fc1ef8bcd298575785b6eca3ba95566d62 Mon Sep 17 00:00:00 2001 From: Shakar Bakr <5h4k4r.b4kr@gmail.com> Date: Wed, 4 Oct 2023 11:50:09 +0300 Subject: [PATCH] commit the file Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com> --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6348155..c45136c 100644 --- a/index.js +++ b/index.js @@ -99,7 +99,7 @@ async function commitChanges(file, filePath) { const blobResponse = await axios.post( `https://api.github.com/repos/${owner}/${repo}/git/blobs`, { - content: newContent, + content: file, encoding: 'utf-8', }, {