From 5d6d6473f7a723b0aac940ece3fb24978079bcb6 Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Sun, 17 Sep 2023 17:02:38 +0300 Subject: [PATCH] Add more logs Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com> --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index e4e4aa5..e62b348 100644 --- a/index.js +++ b/index.js @@ -84,6 +84,7 @@ async function commitChanges(filePath) { `https://api.github.com/repos/${owner}/${repo}/branches/${branch}` ); + console.log('branchResponse: ' + branchResponse.data) const baseTreeSha = branchResponse.data.commit.sha; // Create a new blob with the updated content @@ -94,6 +95,7 @@ async function commitChanges(filePath) { encoding: 'utf-8', } ); + console.log('blobResponse: ' + blobResponse.data) const newBlobSha = blobResponse.data.sha; @@ -113,6 +115,7 @@ async function commitChanges(filePath) { } ); + console.log('treeResponse: ' + treeResponse.data) const newTreeSha = treeResponse.data.sha; // Create a new commit