Update patch request headers

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-18 15:41:28 +03:00
parent aeaf77a84e
commit 7af195f0bc
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -156,6 +156,12 @@ async function commitChanges(filePath) {
`https://api.github.com/repos/${owner}/${repo}/git/refs/heads/${branch}`,
{
sha: newCommitSha,
},
{
headers: {
'Accept': 'application/vnd.github+json',
'Authorization': `Bearer ${githubToken}`,
},
}
);