From f7d0ec124316013a4ae4c4f4f8de81cbc0f4198e Mon Sep 17 00:00:00 2001 From: Benjamin Lannon Date: Wed, 5 Dec 2018 20:49:57 -0500 Subject: [PATCH] Update index.js --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 84f7f61..6b62c07 100644 --- a/index.js +++ b/index.js @@ -29,6 +29,7 @@ async function run() { headers: { accept: "application/vnd.github.symmetra-preview+json" } }); await octokit.issues.updateLabel(params); + labels = labels.splice(idx, 1); } else { let params = tools.context.repo({ name, @@ -38,8 +39,6 @@ async function run() { }); await octokit.issues.createLabel(params); } - - labels = labels.splice(idx, 1); }); // Delete labels that exist on GitHub that aren't in labels.json