feat: avoid pushing release branch only for rebasing

This commit is contained in:
Julian Tölle 2024-11-20 22:03:57 +01:00
parent 240813a2fd
commit f94c8f4ec7
3 changed files with 183 additions and 10 deletions

View file

@ -274,7 +274,7 @@ func (rp *ReleaserPleaser) runReconcileReleasePR(ctx context.Context) error {
logger.InfoContext(ctx, "created release commit", "commit.hash", releaseCommit.Hash, "commit.message", releaseCommit.Message)
// Check if anything changed in comparison to the remote branch (if exists)
newReleasePRChanges, err := repo.HasChangesWithRemote(ctx, rpBranch)
newReleasePRChanges, err := repo.HasChangesWithRemote(ctx, rp.targetBranch, rpBranch)
if err != nil {
return err
}