From f99be05df03eb8251db3a1b1a6d8f5fb5c16994b Mon Sep 17 00:00:00 2001 From: Daniel Mikusa Date: Thu, 14 Apr 2022 13:07:04 -0400 Subject: [PATCH] Catches missed error handling Signed-off-by: Daniel Mikusa --- actions/draft-release/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/actions/draft-release/main.go b/actions/draft-release/main.go index 2c372bb9..dda218dd 100644 --- a/actions/draft-release/main.go +++ b/actions/draft-release/main.go @@ -92,7 +92,6 @@ func main() { } fmt.Println("owner:", owner, "repo:", repo, "releaseId:", releaseId) fmt.Println("repoRelease:", repoRelease) - fmt.Println("body:", body) if _, dryRun := inputs["dry_run"]; dryRun { fmt.Println("Title:", name) @@ -109,7 +108,7 @@ func main() { } gh := github.NewClient(c) - gh.Repositories.EditRelease( + rel, resp, err := gh.Repositories.EditRelease( context.Background(), owner, repo, @@ -118,5 +117,9 @@ func main() { if err != nil { panic(fmt.Errorf("unable to execute EditRelease %s/%s/%d with %q\n%w", owner, repo, releaseId, repoRelease, err)) } + + fmt.Println("rel:", rel) + fmt.Println("resp:", resp) + fmt.Println("status:", resp.StatusCode) } }