mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-23 06:16:41 +00:00
Update patch request headers
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
aeaf77a84e
commit
7af195f0bc
6
index.js
6
index.js
@ -156,6 +156,12 @@ async function commitChanges(filePath) {
|
|||||||
`https://api.github.com/repos/${owner}/${repo}/git/refs/heads/${branch}`,
|
`https://api.github.com/repos/${owner}/${repo}/git/refs/heads/${branch}`,
|
||||||
{
|
{
|
||||||
sha: newCommitSha,
|
sha: newCommitSha,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
headers: {
|
||||||
|
'Accept': 'application/vnd.github+json',
|
||||||
|
'Authorization': `Bearer ${githubToken}`,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user