Skip to content
Merged
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
6 changes: 3 additions & 3 deletions validate/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,18 @@ func (r *Runner) Run(ctx context.Context) (err error) {
return fmt.Errorf("stopped before %s: %w", commit["abbreviated_commit"], err)
}

vr := Commit(ctx, commit, r.Rules)
results := Commit(ctx, commit, r.Rules)

// A rule that was stopped has not judged the commit: what it
// returned is the stop, and is not a result.
if err = ctx.Err(); err != nil {
return fmt.Errorf("stopped at %s: %w", commit["abbreviated_commit"], err)
}

r.Results = append(r.Results, vr...)
r.Results = append(r.Results, results...)

if r.Report != nil {
r.Report(commit, vr)
r.Report(commit, results)
}
}

Expand Down
Loading