mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-22 22:06:42 +00:00
Add header for commit request
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
5359015c61
commit
1dff45e6ce
6
index.js
6
index.js
@ -140,6 +140,12 @@ async function commitChanges(filePath) {
|
|||||||
message: commitMessage,
|
message: commitMessage,
|
||||||
tree: newTreeSha,
|
tree: newTreeSha,
|
||||||
parents: [baseTreeSha],
|
parents: [baseTreeSha],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
headers: {
|
||||||
|
'Accept': 'application/vnd.github.v3+json',
|
||||||
|
'Authorization': `Bearer ${githubToken}`,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user