From a5754429d0aa3da86323adeedc14396c5cc8a369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Ma=C5=82achowski?= Date: Fri, 18 Oct 2024 14:08:27 +0200 Subject: [PATCH] Restore force push behaviour --- pkg/github/bumper/bumper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/github/bumper/bumper.go b/pkg/github/bumper/bumper.go index a20e5750c415..51c0d0135711 100644 --- a/pkg/github/bumper/bumper.go +++ b/pkg/github/bumper/bumper.go @@ -144,6 +144,7 @@ func gitPush(remote, remoteBranch, baseBranch string, repo *git.Repository, auth refSpecString := fmt.Sprintf("+%s:refs/heads/%s", localRef.Name(), remoteBranch) logrus.Infof("Pushing changes using %s refspec", refSpecString) err = repo.Push(&git.PushOptions{ + Force: true, RemoteName: forkRemoteName, RefSpecs: []config.RefSpec{ config.RefSpec(refSpecString),