mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-25 15:22:59 +00:00
Update commit request headers
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
5
index.js
5
index.js
@@ -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}`,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user