Add more logs

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-17 17:02:38 +03:00
parent 67e0f41712
commit 5d6d6473f7
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -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