From 638365c15b360bd7c2fa2068ac09959efc0471c8 Mon Sep 17 00:00:00 2001 From: Amitai Stern <123amitai@gmail.com> Date: Mon, 16 Sep 2024 10:08:33 -0700 Subject: [PATCH] fixes https://github.com/opensearch-project/opensearch-build-libraries/issues/498 Signed-off-by: Amitai Stern <123amitai@gmail.com> --- vars/createGithubIssue.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vars/createGithubIssue.groovy b/vars/createGithubIssue.groovy index 1fec0013..5d3bf11d 100644 --- a/vars/createGithubIssue.groovy +++ b/vars/createGithubIssue.groovy @@ -76,8 +76,9 @@ void call(Map args = [:]) { } else { println("Creating new issue") + def untriagedLabel = label != "autocut" ? "--label \"untriaged\"" : "" sh( - script: "gh issue create --title \"${args.issueTitle}\" ${bodyOption} --label \"${label}\" --label \"untriaged\" --repo ${args.repoUrl}", + script: "gh issue create --title \"${args.issueTitle}\" ${bodyOption} --label \"${label}\" ${untriagedLabel} --repo ${args.repoUrl}", returnStdout: true ) }