Skip to content

Commit

Permalink
fix(ghpr): Check error when rebasing
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed Apr 29, 2024
1 parent c72f58c commit a138afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ghpr/ghpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a138afe

Please sign in to comment.