Skip to content

Commit 638365c

Browse files
committed
Signed-off-by: Amitai Stern <123amitai@gmail.com>
1 parent d88c840 commit 638365c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vars/createGithubIssue.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ void call(Map args = [:]) {
7676
}
7777
else {
7878
println("Creating new issue")
79+
def untriagedLabel = label != "autocut" ? "--label \"untriaged\"" : ""
7980
sh(
80-
script: "gh issue create --title \"${args.issueTitle}\" ${bodyOption} --label \"${label}\" --label \"untriaged\" --repo ${args.repoUrl}",
81+
script: "gh issue create --title \"${args.issueTitle}\" ${bodyOption} --label \"${label}\" ${untriagedLabel} --repo ${args.repoUrl}",
8182
returnStdout: true
8283
)
8384
}

0 commit comments

Comments
 (0)