From e914a9db2b33739e24e4e35836f124abc48df10a Mon Sep 17 00:00:00 2001 From: Stripes <46821970+danamag@users.noreply.github.com> Date: Thu, 27 Oct 2022 09:10:34 +0300 Subject: [PATCH] Update graphql.js --- graphql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql.js b/graphql.js index 7edb348..870e805 100644 --- a/graphql.js +++ b/graphql.js @@ -90,7 +90,7 @@ const closeIssue = (postId) => { // also adds label "very low score" return request( `mutation { - updateIssue(input: {id : "${postId}" , state: CLOSED, labelIds: ["LA_kwDOFVUyTM8AAAABGbO_Bw"] }){ + updateIssue(input: {id : "${postId}" , state: CLOSED${config['label-id-for-close-issues'] ? ', labelIds: ["' + config['label-id-for-close-issues'] + '"]' : ''} }){ issue { id title