From bbe1542dae9ef92af5c3f56946ed55cd35e616ae Mon Sep 17 00:00:00 2001 From: Gabriel Jordan Date: Mon, 23 Nov 2026 16:54:15 -0300 Subject: [PATCH] Release 0.12.2: list a job's steps in the order they run 0.12.1 put the running step first and the finished steps below it in reverse, which pushed the next step to the bottom. Steps are back in GitHub's order. --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- CHANGELOG.md | 8 +++++++- Sources/Pullo/Domain/WorkflowJob.swift | 7 ------- Sources/Pullo/Features/Actions/RunDetail.swift | 2 +- Tests/PulloTests/WorkflowRunTests.swift | 16 ---------------- 5 files changed, 9 insertions(+), 26 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index c2f80d3..bc7c4b9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index ebff8b4..0bf8d53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/Sources/Pullo/Domain/WorkflowJob.swift b/Sources/Pullo/Domain/WorkflowJob.swift index 4e2d719..98d64f0 100644 --- a/Sources/Pullo/Domain/WorkflowJob.swift +++ b/Sources/Pullo/Domain/WorkflowJob.swift @@ -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) @@ -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[..