Releases: yumemi-inc/danger-swift-shoki
Releases · yumemi-inc/danger-swift-shoki
0.3.0
0.2.1
0.2.0
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.
0.1.1
Enhanced
- Add details to README.md
0.1.0
Initial Release 🎉