Skip to content

Commit 689b76f

Browse files
committed
Make the new parameter optional
1 parent c170f63 commit 689b76f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/root.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ If a SPECIFIC_COMMIT_CHECK_NAME is specified, the StatusSuccess will be calculat
3535
sourceBranch := args[2]
3636
destinationBranch := args[3]
3737
expression := strings.Join(args[4:], " ")
38-
specificCheckName := args[5]
38+
specificCheckName := ""
39+
if len(args) > 5 {
40+
specificCheckName = args[5]
41+
}
3942

4043
for _, a := range args {
4144
if len(a) < 1 {

0 commit comments

Comments
 (0)