Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created February 27, 2020 00:52
Show Gist options
  • Save manakuro/8635c60e8f47f753e1666196085691e7 to your computer and use it in GitHub Desktop.
Save manakuro/8635c60e8f47f753e1666196085691e7 to your computer and use it in GitHub Desktop.
// dangerfile.ts
import { warn, danger } from "danger"
const prThreshold = 300;
if (danger.github.pr.additions + danger.github.pr.deletions > prThreshold) {
warn(':exclamation: Big PR');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment