Skip to content

Commit

Permalink
fix(controller): fix source branch used by pr-opener (#2600)
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Rancourt <[email protected]>
  • Loading branch information
krancour authored Sep 29, 2024
1 parent eecd669 commit 022c431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/directives/git_pr_opener.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (g *gitPROpener) runPromotionStep(
ctx,
repo,
gitProviderSvc,
cfg.SourceBranch,
sourceBranch,
cfg.TargetBranch,
)
if err != nil {
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit 022c431

Please sign in to comment.