From e3954992af63440986bd39cce889e9c62e1a6b92 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 24 Mar 2026 21:35:12 +0000 Subject: feat: clone story branch in ContainerRunner (ADR-007) - Add BranchName field to task.Task (populated from story at execution time) - Add GetStory to executor Store interface; resolve BranchName from story in both execute() and executeResume() parallel to RepositoryURL resolution - Pass --branch to git clone when BranchName is set; default clone otherwise Co-Authored-By: Claude Sonnet 4.6 --- internal/task/task.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/task/task.go') diff --git a/internal/task/task.go b/internal/task/task.go index ee79668..ba87360 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -82,6 +82,7 @@ type Task struct { Tags []string `yaml:"tags" json:"tags"` DependsOn []string `yaml:"depends_on" json:"depends_on"` StoryID string `yaml:"-" json:"story_id,omitempty"` + BranchName string `yaml:"-" json:"branch_name,omitempty"` State State `yaml:"-" json:"state"` RejectionComment string `yaml:"-" json:"rejection_comment,omitempty"` QuestionJSON string `yaml:"-" json:"question,omitempty"` -- cgit v1.2.3