Update index.js
This commit is contained in:
parent
51cc3a6906
commit
9d751d74ed
1 changed files with 6 additions and 1 deletions
7
index.js
7
index.js
|
@ -21,7 +21,12 @@ async function run() {
|
||||||
newLabels.forEach(async label => {
|
newLabels.forEach(async label => {
|
||||||
let { name, color, description } = label;
|
let { name, color, description } = label;
|
||||||
|
|
||||||
let params = tools.context.repo({ name, color, description });
|
let params = tools.context.repo({
|
||||||
|
name,
|
||||||
|
color,
|
||||||
|
description,
|
||||||
|
headers: { accept: "application/vnd.github.symmetra-preview+json" }
|
||||||
|
});
|
||||||
|
|
||||||
if (labels.some(issue => issue.name === name)) {
|
if (labels.some(issue => issue.name === name)) {
|
||||||
await octokit.issues.updateLabel(params);
|
await octokit.issues.updateLabel(params);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue