Skip to content

Commit

Permalink
fix(ghpr): Ensure rebasing does not fail
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed Jan 27, 2024
1 parent 4153e3b commit 3dba9cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/ghpr/ghpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ func NewPullRequestFromID(ctx context.Context, client *ghapi.GithubClient, ghOrg
"git",
"-C", pr.localRepo,
"rebase",
"--merge",
"--force-rebase",
fmt.Sprintf("origin/%s", pr.baseBranch),
)
rebase.Stdout = log.G(ctx).WriterLevel(logrus.ErrorLevel)
Expand Down

0 comments on commit 3dba9cb

Please sign in to comment.