fix(workflow): make the repository optional for the triage workflow (#1578)
This commit is contained in:
5 files changed
+167
-7
No files matched your search
@@ -2090,6 +2090,13 @@ func (d *Daemon) pinTaskProfile(ctx context.Context, task *workflow.Task) (confi
|
||||
// dashboard spawns go through the Gateway, which never does).
|
||||
err = iface.CheckInputs(task.Inputs)
|
||||
}
|
||||
if err == nil && iface.RepositoryMode() == workflowtask.RepositoryRequired && !task.HasRepository() {
|
||||
// An optional workflow may hand off to one that requires a
|
||||
// repository, because its task may carry one; a task that does not
|
||||
// is parked here rather than run the target's steps in a scratch
|
||||
// workspace.
|
||||
err = fmt.Errorf("requires a repository and this task has none")
|
||||
}
|
||||
if err == nil {
|
||||
var profile config.AgentProfile
|
||||
if profile, err = d.configFor(task).Containers.Profile(iface.Profile); err == nil {
|
||||
|
||||
Reference in new issue
Block a user