Skip to content

Commit 207991c

Browse files
committed
githubpost: set map field if null
Go is a really good language. Informs: cockroachdb#107779 Epic: none Release note: None
1 parent 8beed2d commit 207991c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cmd/bazci/githubpost/githubpost.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ func getIssueFilerForFormatter(formatterName string) func(ctx context.Context, f
101101
return func(ctx context.Context, f failure) error {
102102
fmter, req := reqFromFailure(ctx, f)
103103
if stress := os.Getenv("COCKROACH_NIGHTLY_STRESS"); stress != "" {
104+
if req.ExtraParams == nil {
105+
req.ExtraParams = make(map[string]string)
106+
}
104107
req.ExtraParams["stress"] = "true"
105108
}
106109
return issues.Post(ctx, log.Default(), fmter, req)

0 commit comments

Comments
 (0)