diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-04-03 08:44:02 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-04-03 08:44:02 +0000 |
| commit | 1271ba1d329c8b16062600dfafdec1d06c735c2e (patch) | |
| tree | 6f42961322830ce8c0518de82b9240f4803e0057 /internal/task | |
| parent | 5aa6a15ffdf68a8dbe12eb0fdfff93deafb9da10 (diff) | |
feat: require repository_url on tasks; fix UpdateTask to persist it; fix cascade-retry test race
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/task')
| -rw-r--r-- | internal/task/validator.go | 3 | ||||
| -rw-r--r-- | internal/task/validator_test.go | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/internal/task/validator.go b/internal/task/validator.go index 003fab9..43e482e 100644 --- a/internal/task/validator.go +++ b/internal/task/validator.go @@ -29,6 +29,9 @@ func Validate(t *Task) error { if t.Name == "" { ve.Add("name is required") } + if t.RepositoryURL == "" { + ve.Add("repository_url is required") + } if t.Agent.Instructions == "" { ve.Add("agent.instructions is required") } diff --git a/internal/task/validator_test.go b/internal/task/validator_test.go index c0ab986..2c6735c 100644 --- a/internal/task/validator_test.go +++ b/internal/task/validator_test.go @@ -9,6 +9,7 @@ func validTask() *Task { return &Task{ ID: "test-id", Name: "Valid Task", + RepositoryURL: "https://github.com/user/repo", Agent: AgentConfig{ Type: "claude", Instructions: "do something", |
