Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions pkg/task/generictaskhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,7 @@ func (th *genericTaskHandler) applySubpackageTask(
return pkgerrors.New("for subpackage tasks, the task list must contain exactly 2 tasks, the source task followed by the subpackage task")
}

var repo configapi.Repository
if err := th.referenceResolver.ResolveReference(ctx, draft.Key().RKey().K8SNS(), draft.Key().RKey().K8SName(), &repo); err != nil {
return pkgerrors.Wrapf(err, "cannot find repository for draft PR %+v", draft.Key())
}

mut, err := th.mapTaskToMutation(obj, &obj.Spec.Tasks[1], repo.Spec.Deployment, nil)
mut, err := th.mapTaskToMutation(obj, &obj.Spec.Tasks[1], false, nil)
Comment thread
liamfallon marked this conversation as resolved.
Outdated
Comment thread
liamfallon marked this conversation as resolved.
if err != nil {
return err
}
Expand Down
Loading