Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Sep 6, 2023
1 parent a0db744 commit d4956fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/runners/push/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,10 @@ func (r *Push) Run(params PushParams) error {
}

// Update the project at the given commit id.
bp := model.NewBuildPlannerModel(r.auth)
// Currently, the build planner doesn't support attaching a staged commit
// without a parent commit ID
if branch.CommitID != nil {
bp := model.NewBuildPlannerModel(r.auth)
logging.Debug("Attaching staged commit via build planner")
err = bp.AttachStagedCommit(targetNamespace.Owner, targetNamespace.Project, branch.CommitID.String(), commitID.String(), branch.Label)
if err != nil {
Expand Down

0 comments on commit d4956fb

Please sign in to comment.