More info at danger/peril
We need to validate if a PR againt peril setup locally,the simplest way is:
- Use
node
>=6.5.0
- Run
yarn install
- Edit a dangerfile in use like issues.ts or pr.ts with new checks
- Export your danger github token
- Run
yarn danger -- pr <URL_pr_to_be_tested> --dangerfile ./dangerfiles/<dangerfile_you_edited>.ts
(you can pick any open pull request)
All current rules are being done via Taqtile's Danger plugin, which allows any developer adding specific rules with tests to ensure it works.
Check indigotech/dangerjs-plugin to know what it being currently checked and/or add your rules.
Local repository was not found on GitHub. If you're trying to test a private repository please provide a valid API token through DANGER_GITHUB_API_TOKEN environment variable.
- Create a github Personal Access Token
- Export it to an environment variable
$ export DANGER_GITHUB_API_TOKEN=your token here