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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ body:
attributes:
label: Pullo version
description: Settings › About.
placeholder: "0.12.1"
placeholder: "0.12.2"
validations:
required: true
- type: input
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to Pullo are listed here, newest first. The format follows [

## [Unreleased]

## [0.12.2] - 2026-11-23

### Fixed
- Steps inside a job are back in the order they run, like on GitHub, so the next step sits right below the one running.

## [0.12.1] - 2026-11-23

### Changed
Expand Down Expand Up @@ -331,7 +336,8 @@ All notable changes to Pullo are listed here, newest first. The format follows [
- An alert stays open while the pointer is over it.
- Clicks only land on the visible part of the notch. Everywhere else they go to the app behind it.

[unreleased]: https://github.com/jordan-cod/pullo/compare/v0.12.1...HEAD
[unreleased]: https://github.com/jordan-cod/pullo/compare/v0.12.2...HEAD
[0.12.2]: https://github.com/jordan-cod/pullo/compare/v0.12.1...v0.12.2
[0.12.1]: https://github.com/jordan-cod/pullo/compare/v0.12.0...v0.12.1
[0.12.0]: https://github.com/jordan-cod/pullo/compare/v0.11.4...v0.12.0
[0.11.4]: https://github.com/jordan-cod/pullo/compare/v0.11.3...v0.11.4
Expand Down
7 changes: 0 additions & 7 deletions Sources/Pullo/Domain/WorkflowJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ struct WorkflowStep: Identifiable, Equatable {

var id: Int { number }

var hasStarted: Bool { [.running, .passed, .failed, .cancelled].contains(state) }

func duration(now: Date) -> TimeInterval? {
guard let startedAt, state != .skipped, state != .queued else { return nil }
return (completedAt ?? now).timeIntervalSince(startedAt)
Expand All @@ -30,11 +28,6 @@ struct WorkflowJob: Identifiable, Equatable {

var currentStep: String? { steps.first { $0.state == .running }?.name }

var stepsLatestFirst: [WorkflowStep] {
guard let reached = steps.lastIndex(where: \.hasStarted) else { return steps }
return steps[...reached].reversed() + steps[(reached + 1)...]
}

var group: String {
guard let open = name.range(of: " ("), name.hasSuffix(")") else { return name }
return String(name[..<open.lowerBound])
Expand Down
2 changes: 1 addition & 1 deletion Sources/Pullo/Features/Actions/RunDetail.swift
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private struct JobRow: View {
.disabled(!hasSteps && job.url == nil)
.hint(hint)
if isExpanded {
ForEach(job.stepsLatestFirst) { step in
ForEach(job.steps) { step in
StepRow(step: step, now: now, url: url(of: step))
}
.padding(.leading, 20)
Expand Down
16 changes: 0 additions & 16 deletions Tests/PulloTests/WorkflowRunTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,6 @@ struct WorkflowRunTests {
#expect(jobs[2].steps.first?.number == 1)
}

@Test func listsTheLatestStepFirstAndThePendingOnesLast() {
let step = { (number: Int, state: WorkflowRun.State) in
WorkflowStep(number: number, name: "Step \(number)", state: state, startedAt: nil, completedAt: nil)
}
let job = WorkflowJob(
id: 1, name: "test", state: .running, url: nil, startedAt: nil, completedAt: nil,
steps: [step(1, .passed), step(2, .skipped), step(3, .passed), step(4, .running), step(5, .queued), step(6, .queued)]
)
#expect(job.stepsLatestFirst.map(\.number) == [4, 3, 2, 1, 5, 6])
let waiting = WorkflowJob(
id: 2, name: "test", state: .queued, url: nil, startedAt: nil, completedAt: nil,
steps: [step(1, .queued), step(2, .queued)]
)
#expect(waiting.stepsLatestFirst.map(\.number) == [1, 2])
}

@Test func groupsMatrixJobsAndPutsFailuresFirst() {
let groups = JobGroup.grouping([
.make(id: 1, name: "lint", state: .passed),
Expand Down
Loading