Add header for commit request

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-18 15:16:35 +03:00
parent 5359015c61
commit 1dff45e6ce
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -140,6 +140,12 @@ async function commitChanges(filePath) {
message: commitMessage,
tree: newTreeSha,
parents: [baseTreeSha],
},
{
headers: {
'Accept': 'application/vnd.github.v3+json',
'Authorization': `Bearer ${githubToken}`,
},
}
);