trustwallet-assets/dangerfile.ts
Adam R ec1fe7f6ee
[internal] Script restructuring/refactoring (#4070)
* Make non-mandatory action interface elements optional.

* Remove one unused import

* Scripts main renamed to entrypoint.

* Script common rename to generic

* Move generic scripts from action to generic.

* Move chain-specific scripts to blockchain.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2020-09-23 15:47:24 +02:00

11 lines
518 B
TypeScript

import { fail, warn, markdown } from "danger";
import { sanityCheckAll } from "./script/generic/update-all";
sanityCheckAll().then(([errors, warnings]) => {
errors.forEach(err => fail(err));
warnings.forEach(err => warn(err));
if (errors.length > 0 || warnings.length > 0) {
markdown("Please fix the errors/warnings 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.");
}
});