Skip to content

0.2.0

Compare
Choose a tag to compare
@el-hoshino el-hoshino released this 14 Dec 07:36
· 15 commits to main since this release
e0941e5

Changes

Enhanced

  • API Responsibility (#4 )

CONTAINS API BREAKING CHANGES!!

Migration Guide from 0.1.x

Old API New API
var result = CheckResult(title: "Result Title") var report = danger.shoki.makeInitialReport(title: "Report Title")
result.check("CheckTitle") { return .good } danger.shoki.check("Check Title", into: &report) { return .good }
result.check("CheckTitle") { warn("Warning Message"); return .acceptable } danger.shoki.check("Check Title", into: &report) { return .acceptable(warningMessage: "Warning Message") }
result.check("CheckTitle") { fail("Failure Message"); return .rejected } danger.shoki.check("Check Title", into: &report) { return .rejected(failureMessage: "Failure Message") }
result.askReviewer(to: "Do something") danger.shoki.askReviewer(to: "Do something", into: &report)

You can also check this PR to see how we migrated from 0.1.1 to 0.2.0.