Skip to content

Commit 3dba9cb

Browse files
committed
fix(ghpr): Ensure rebasing does not fail
Signed-off-by: Cezar Craciunoiu <[email protected]>
1 parent 4153e3b commit 3dba9cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/ghpr/ghpr.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ func NewPullRequestFromID(ctx context.Context, client *ghapi.GithubClient, ghOrg
172172
"git",
173173
"-C", pr.localRepo,
174174
"rebase",
175+
"--merge",
176+
"--force-rebase",
175177
fmt.Sprintf("origin/%s", pr.baseBranch),
176178
)
177179
rebase.Stdout = log.G(ctx).WriterLevel(logrus.ErrorLevel)

0 commit comments

Comments
 (0)