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.
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, replacingtask-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()