Skip to content

Commit

Permalink
Version 0.24.1: Update Dangerfile to report tasks in correct order
Browse files Browse the repository at this point in the history
Merge pull request #86 from Samasaur1/development
  • Loading branch information
Samasaur1 authored Oct 15, 2020
2 parents ce0d451 + 62fef31 commit d67f52f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-16.04, ubuntu-latest]
swift: ["4.2", "5.0", "5.1", "5.2"]
swift: ["4.2", "5.0", "5.1", "5.2", "5.3"]
exclude:
- os: macos-latest
swift: "5.2"
Expand All @@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v2
- uses: fwal/setup-swift@v1
with:
swift-version: "5"
swift-version: "5.2"
- run: swift --version
- name: Install Danger
run: |
Expand Down
2 changes: 1 addition & 1 deletion .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ clean: true
author: Samasaur
author_url: https://github.com/Samasaur1
module: DiceKit
module_version: 0.24.0
module_version: 0.24.1
# docset_icon:
github_url: https://github.com/Samasaur1/DiceKit
# github_file_prefix:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Upcoming]

## [0.24.1] - 2020-10-15
### Fixed
- Danger now reports tasks in the correct order

## [0.24.0] - 2020-07-13
### Added
- `Chance` objects can now be multiplied together (which, mathematically, represents the chance of both occurring)
Expand Down Expand Up @@ -273,6 +277,7 @@ Update .travis.yml in case https://swiftenv.fuller.li/install.sh is down/has no
- `Rollable`: a protocol for anything that is rollable

[Upcoming]: https://github.com/Samasaur1/DiceKit/compare/development
[0.24.1]: https://github.com/Samasaur1/DiceKit/compare/v0.24.0...v0.24.1
[0.24.0]: https://github.com/Samasaur1/DiceKit/compare/v0.23.0...v0.24.0
[0.23.0]: https://github.com/Samasaur1/DiceKit/compare/v0.22.0...v0.23.0
[0.22.0]: https://github.com/Samasaur1/DiceKit/compare/v0.21.0...v0.22.0
Expand Down
2 changes: 1 addition & 1 deletion Dangerfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ if let body = danger.github.pullRequest.body {
let split = body.split { $0.isNewline }
let allTaskLines = split
.filter { $0.range(of: #"^- \[[x ]\] "#, options: .regularExpression) != nil }
for (num, line) in allTaskLines.enumerated() {
for (num, line) in allTaskLines.enumerated().reversed() {
if line.range(of: #"^- \[x\] "#, options: .regularExpression) != nil {
message("**Task \(num + 1) completed:** \(line.dropFirst(6))")
continue
Expand Down

0 comments on commit d67f52f

Please sign in to comment.