chainguard-dev / terraform-infra-common

A repository containing a collection of "glue" modules for encapsulating common Cloud Run patterns.
Apache License 2.0
4 stars 22 forks source link

bot-sdk: fixes a panic if there is an error but no response #444

Closed rawlingsj closed 1 month ago

rawlingsj commented 1 month ago

example of panic:

panic: goroutine 16946 [running]:
runtime/debug.Stack()
    runtime/debug/stack.go:24 +0x5e
github.com/chainguard-dev/terraform-infra-common/modules/github-bots/sdk.Serve.func1.1()
    github.com/chainguard-dev/terraform-infra-common@v0.6.41/modules/github-bots/sdk/bot.go:97 +0x25
panic({0x127e1c0?, 0x208f5a0?})
    runtime/panic.go:770 +0x132
github.com/chainguard-dev/terraform-infra-common/modules/github-bots/sdk.GitHubClient.AddLabel({0xc000ce5c08?, 0xc0001bc960?, 0xc00883b170?}, {0x168cbf0, 0xc00883b170}, 0xc001d56a80, {0x1472a8d, 0xc})
    github.com/chainguard-dev/terraform-infra-common@v0.6.41/modules/github-bots/sdk/github.go:156 +0x348