mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-22 22:06:42 +00:00
Update commit request headers
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
6167fab78c
commit
4e6a7aea88
5
index.js
5
index.js
@ -124,8 +124,7 @@ async function commitChanges(filePath) {
|
|||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/vnd.github+json',
|
'Accept': 'application/vnd.github+json',
|
||||||
'Authorization': `Bearer ${githubToken}`,
|
'Authorization': `Bearer ${githubToken}`
|
||||||
'X-GitHub-Api-Version': '2022-11-28'
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -143,7 +142,7 @@ async function commitChanges(filePath) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/vnd.github.v3+json',
|
'Accept': 'application/vnd.github+json',
|
||||||
'Authorization': `Bearer ${githubToken}`,
|
'Authorization': `Bearer ${githubToken}`,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user