From a138afec701c851c8da275821c9ed01a303b177c Mon Sep 17 00:00:00 2001 From: Cezar Craciunoiu Date: Mon, 29 Apr 2024 15:18:46 +0300 Subject: [PATCH] fix(ghpr): Check error when rebasing Signed-off-by: Cezar Craciunoiu --- internal/ghpr/ghpr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ghpr/ghpr.go b/internal/ghpr/ghpr.go index 708ade4..7a9a249 100644 --- a/internal/ghpr/ghpr.go +++ b/internal/ghpr/ghpr.go @@ -209,7 +209,7 @@ func NewPullRequestFromID(ctx context.Context, client *ghapi.GithubClient, ghOrg ) rebase.Stdout = log.G(ctx).WriterLevel(logrus.ErrorLevel) rebase.Stderr = log.G(ctx).WriterLevel(logrus.ErrorLevel) - if rebase.Run(); err != nil { + if err := rebase.Run(); err != nil { return nil, fmt.Errorf("could not rebase: %w", err) }