trustwallet-assets/dangerfile.ts
Adam R 197613e61c
[internal] Set up Danger build on PR (#3243)
* Return all error messages from checks (to be used by Danger).
* Add Danger dev dep.
* Fix danger.yml + dangerfile.ts.
* Fix root files.
* Finetune Danger message.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2020-08-12 10:03:28 +02:00

10 lines
429 B
TypeScript

import { fail, markdown } from "danger";
import { sanityCheckAll } from "./script/action/update-all";
sanityCheckAll().then(errors => {
if (errors.length > 0) {
errors.forEach(err => fail(err));
markdown("Please fix the errors above. Files can be replaced/renamed in this pull request (using command-line, or GitHub Desktop). Alternatively, you may close this pull request and open a new one.");
}
});