This is the minimal version of running Danger in Rust. It is a cargo module which expects the JSON DSL from Danger JS and provides a type-safe way to interact with it from inside the app.
danger.rs
and injecting that with the additional runtime work (passing data in/out)ci
, pr
, local
I'm learning everything from scratch, so, some of these may take quite a while.
sh
cargo run --bin danger-rust
This is how you can test out how things work:
```sh
cat fixtures/danger-js-697.json | cargo run --bin danger-rust
cargo build --bin danger-rust
cat fixtures/danger-js-697.json | ./target/debug/danger-rust ```
Update the Rust Types from the JSON schema of Danger's DSL
sh
cargo run --bin update_types
Grab a Danger JS incoming JSON example
```sh
--dangerfile xxyy
is a bugdanger pr https://github.com/danger/danger-js/pull/697 --json > fixtures/danger-js-697.json --dangerfile LICENSE ```