Skip to content

Commit cddb805

Browse files
committed
feat: skip downloads in dev mode for fatal commit conclusions
Prevent automatic target downloads in dev mode when the commit step has a fatal conclusion, ensuring failed builds don't trigger downloads.
1 parent 314b1ab commit cddb805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/dev.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ func (m BuildModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
130130
if commitUnion == nil {
131131
continue
132132
}
133-
status, _, _ := extractStepInfo(commitUnion)
134-
if status == "completed" {
133+
status, _, conclusion := extractStepInfo(commitUnion)
134+
if status == "completed" && conclusion != "fatal" {
135135
if download, ok := m.downloads[target]; ok && download.status == "not started" {
136136
download.status = "started"
137137
cmds = append(cmds, m.downloadTarget(target))

0 commit comments

Comments
 (0)