Update commit request headers

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

View File

@ -124,8 +124,7 @@ async function commitChanges(filePath) {
{
headers: {
'Accept': 'application/vnd.github+json',
'Authorization': `Bearer ${githubToken}`,
'X-GitHub-Api-Version': '2022-11-28'
'Authorization': `Bearer ${githubToken}`
},
}
);
@ -143,7 +142,7 @@ async function commitChanges(filePath) {
},
{
headers: {
'Accept': 'application/vnd.github.v3+json',
'Accept': 'application/vnd.github+json',
'Authorization': `Bearer ${githubToken}`,
},
}