fix(workflow): make the repository optional for the triage workflow (#1578)

This commit is contained in:
sam committed 2026-10-31 00:36:10 +11:00
1 parent 590bf12e26
commit 93cbac2dda
5 files changed
+167 -7

No files matched your search

+7
View File
@@ -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 {