Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ contract.

## [Unreleased]

### Removed

- `actions.Job.RunStepsContaining` is gone. It was added with the workflow model
and never called, which is the shape this release spent its time removing
everywhere else. Neither `go vet` nor `staticcheck` reports it, because an
exported identifier in an `internal/` package is not treated as unused even
though nothing outside the module can reach it — so this class is currently
found by looking rather than by a gate.

## [0.2.0] - 2026-08-15

A minor bump because the contract breaks. Everything here came out of a forensic
Expand Down
11 changes: 0 additions & 11 deletions internal/actions/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,6 @@ func (j *Job) StepUsing(prefix string) (Step, bool) {
return Step{}, false
}

// RunStepsContaining returns every enabled step whose run script contains token.
func (j *Job) RunStepsContaining(token string) []Step {
var steps []Step
for _, step := range j.Steps {
if step.Enabled() && step.Run != "" && strings.Contains(step.Run, token) {
steps = append(steps, step)
}
}
return steps
}

// UsesActions returns the `uses` reference of every enabled step.
func (j *Job) UsesActions() []string {
refs := make([]string, 0, len(j.Steps))
Expand Down