Samasaur1 / DiceKit

A Swift module for simulating dice both real and unreal
https://samasaur1.github.io/DiceKit/
Academic Free License v3.0
4 stars 4 forks source link

Danger reports tasks in reverse order #82

Closed Samasaur1 closed 4 years ago

Samasaur1 commented 4 years ago

When making a PR to master, Danger is run. Recently, I upgraded the Danger configuration so that it checks the PR body for incomplete tasks, replacing task-list-completed. However, Danger reports these tasks in reverse order, whether or not they are completed. I understand why this happens, but it's annoying.

Here's the code that does it:

https://github.com/Samasaur1/DiceKit/blob/e8876a102f1eb52d8a5bb117736cad82af8f24db/Dangerfile.swift#L103-L125

It should be relatively simple to reverse it — probably just allTaskLines.enumerated().reversed()