From 37ae560d8cd5bdfebe488195307330b619c089f1 Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Tue, 19 Sep 2023 11:16:53 +0300 Subject: [PATCH] stringify contnet Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com> --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d8ef376..3e0c5cd 100644 --- a/index.js +++ b/index.js @@ -87,7 +87,7 @@ async function commitChanges(filePath, file) { const blobResponse = await axios.post( `https://api.github.com/repos/${owner}/${repo}/git/blobs`, { - content: newContent, + content: JSON.stringify(newContent), encoding: 'utf-8', }, {