Skip to content

Commit

Permalink
githubpost: set map field if null
Browse files Browse the repository at this point in the history
Go is a really good language.

Informs: #107779

Epic: none
Release note: None
  • Loading branch information
rickystewart committed Jul 28, 2023
1 parent 8beed2d commit 207991c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cmd/bazci/githubpost/githubpost.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ func getIssueFilerForFormatter(formatterName string) func(ctx context.Context, f
return func(ctx context.Context, f failure) error {
fmter, req := reqFromFailure(ctx, f)
if stress := os.Getenv("COCKROACH_NIGHTLY_STRESS"); stress != "" {
if req.ExtraParams == nil {
req.ExtraParams = make(map[string]string)
}
req.ExtraParams["stress"] = "true"
}
return issues.Post(ctx, log.Default(), fmter, req)
Expand Down

0 comments on commit 207991c

Please sign in to comment.