Update index.js
This commit is contained in:
parent
1fe2dcc413
commit
f7d0ec1243
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
@ -29,6 +29,7 @@ async function run() {
|
||||||
headers: { accept: "application/vnd.github.symmetra-preview+json" }
|
headers: { accept: "application/vnd.github.symmetra-preview+json" }
|
||||||
});
|
});
|
||||||
await octokit.issues.updateLabel(params);
|
await octokit.issues.updateLabel(params);
|
||||||
|
labels = labels.splice(idx, 1);
|
||||||
} else {
|
} else {
|
||||||
let params = tools.context.repo({
|
let params = tools.context.repo({
|
||||||
name,
|
name,
|
||||||
|
@ -38,8 +39,6 @@ async function run() {
|
||||||
});
|
});
|
||||||
await octokit.issues.createLabel(params);
|
await octokit.issues.createLabel(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
labels = labels.splice(idx, 1);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Delete labels that exist on GitHub that aren't in labels.json
|
// Delete labels that exist on GitHub that aren't in labels.json
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue