mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-22 22:06:42 +00:00
Add more logs
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
67e0f41712
commit
5d6d6473f7
3
index.js
3
index.js
@ -84,6 +84,7 @@ async function commitChanges(filePath) {
|
|||||||
`https://api.github.com/repos/${owner}/${repo}/branches/${branch}`
|
`https://api.github.com/repos/${owner}/${repo}/branches/${branch}`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log('branchResponse: ' + branchResponse.data)
|
||||||
const baseTreeSha = branchResponse.data.commit.sha;
|
const baseTreeSha = branchResponse.data.commit.sha;
|
||||||
|
|
||||||
// Create a new blob with the updated content
|
// Create a new blob with the updated content
|
||||||
@ -94,6 +95,7 @@ async function commitChanges(filePath) {
|
|||||||
encoding: 'utf-8',
|
encoding: 'utf-8',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
console.log('blobResponse: ' + blobResponse.data)
|
||||||
|
|
||||||
const newBlobSha = blobResponse.data.sha;
|
const newBlobSha = blobResponse.data.sha;
|
||||||
|
|
||||||
@ -113,6 +115,7 @@ async function commitChanges(filePath) {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log('treeResponse: ' + treeResponse.data)
|
||||||
const newTreeSha = treeResponse.data.sha;
|
const newTreeSha = treeResponse.data.sha;
|
||||||
|
|
||||||
// Create a new commit
|
// Create a new commit
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user