diff --git a/internal/directives/git_pr_opener.go b/internal/directives/git_pr_opener.go index 073a3f8f3..7ece72ac9 100644 --- a/internal/directives/git_pr_opener.go +++ b/internal/directives/git_pr_opener.go @@ -127,7 +127,7 @@ func (g *gitPROpener) runPromotionStep( ctx, repo, gitProviderSvc, - cfg.SourceBranch, + sourceBranch, cfg.TargetBranch, ) if err != nil { @@ -163,7 +163,7 @@ func (g *gitPROpener) runPromotionStep( pr, err := gitProviderSvc.CreatePullRequest( ctx, gitprovider.CreatePullRequestOpts{ - Head: cfg.SourceBranch, + Head: sourceBranch, Base: cfg.TargetBranch, Title: title, },