Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
⚠️ Stop saying "you forgot to …" in code review
Branch: master
Clone or download
Latest commit 78726f7 May 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Circle faff Feb 7, 2019
.vscode Adds docs to the new Chainsmoker Apr 6, 2019
docs Update docs Apr 6, 2019
env Add logic for "DANGER_DISABLE_TRANSPILATION" env Oct 12, 2018
scripts Cleans up the declartions and runs prettier over them in memory Apr 13, 2019
source Remove hard-coded artsy values May 2, 2019
types Adds test which validate the fixtures run correctly Oct 21, 2017
.babelrc Update to babel 7 stable Sep 13, 2018
.editorconfig Add .editorconfig Dec 27, 2016
.flowconfig [Dev] Updates the flow definition, and adds it to CI Feb 19, 2018
.gitignore Merge master Oct 17, 2018
.npmignore Add homebrew files to the npm ignore Oct 10, 2018
.prettierignore Use a prettier ignore Dec 3, 2018
.release-it.json Fix tests, and move the declarations/schema-gen to be on dpeloy, not … Dec 26, 2018
.travis-just-danger.yml Updates danger-plugin-yarn Jun 12, 2017
.travis.yml Adds a dts validation step, and adds chainsmoker to the exposed dts - f… Apr 8, 2019
CHANGELOG.md PRepare for release May 2, 2019
CONTRIBUTING.md More docs Feb 17, 2018
Dockerfile Update Dockerfile Jan 23, 2019
LICENSE Update copyright notice to 2019 [ci skip] Feb 20, 2019
README.md Add Codefresh to README.md Apr 19, 2019
VISION.md Fixes typo in VISION.md Oct 3, 2018
appveyor.yml Fix CI now that sane only supports LTS dangers Feb 7, 2019
dangerfile.circle.js Convert our Dangerfile to be a TypeScript file Mar 19, 2017
dangerfile.flow.js [Dev] Updates the flow definition, and adds it to CI Feb 19, 2018
dangerfile.lite.ts Fix tests, and move the declarations/schema-gen to be on dpeloy, not … Dec 26, 2018
dangerfile.ts Fix tests, and move the declarations/schema-gen to be on dpeloy, not … Dec 26, 2018
package.json Release 7.1.4 May 2, 2019
tsconfig.json Make yarn tsc run files in the test folders Oct 20, 2018
tsconfig.production.json Adds support to the runner to handle a github-less platform Jan 21, 2018
tslint.json Remove all tslint rules which conflict with prettier Oct 23, 2017
wallaby.js Remove vm2 from Danger Feb 5, 2019
yarn.lock Cleans up the declartions and runs prettier over them in memory Apr 13, 2019

README.md


Formalize your Pull Request etiquette.

What is Danger JS?VisionHelping OutPlugin Development

What is Danger JS?

Danger runs after your CI, automating your team's conventions surrounding code review.

This provides another logical step in your process, through which Danger can help lint your rote tasks in daily code review.

You can use Danger to codify your teams norms, leaving humans to think about harder problems.

Danger JS works with GitHub or BitBucket Server for code review, then with: Travis CI, Circle CI, GitHub Actions, Semaphore, Jenkins, Docker Cloud, Bitrise, surf-build, Codeship, Drone, Buildkite, Nevercode, buddybuild, TeamCity, Visual Studio Team Services, Screwdriver, Concourse, Netlify, CodeBuild or Codefresh.

npm Build Status Build Status Join the community on Spectrum

For example?

You can:

  • Enforce CHANGELOGs
  • Enforce links to Trello/JIRA in PR/MR bodies
  • Enforce using descriptive labels
  • Look out for common anti-patterns
  • Highlight interesting build artifacts
  • Give warnings when specific files change

Danger provides the glue to let you build out the rules specific to your team's culture, offering useful metadata and a comprehensive plugin system to share common issues.

Getting Started

Alright. So, actually, you may be in the wrong place. From here on in, this README is going to be for people who are interested in working on and improving on Danger JS.

We keep all of the end-user documentation at http://danger.systems/js.

Some quick links to get you started:

This thing is broken, I should help improve it!

Awesommmmee. Everything you need is down below. You can also refer to CONTRIBUTING file where you'll find the same information listed below.

git clone https://github.com/danger/danger-js.git
cd danger-js

# if you don't have yarn installed
npm install -g yarn

yarn install

You can then verify your install by running the tests, and the linters:

yarn test
yarn lint

The fixers for both tslint and prettier will be applied when you commit, and on a push your code will be verified that it compiles.

You can run your dev copy of danger against a PR by running:

yarn build; node --inspect distribution/source/commands/danger-pr.js https://github.com/danger/danger-js/pull/817

How does Danger JS work?

Check the architecture doc.

What is the TODO?

Check the issues, I try and keep my short term perspective there. Long term is in the VISION.md.

Releasing a new version of Danger

Following this commit as a model:

  • Checkout the master branch. Ensure your working tree is clean, and make sure you have the latest changes by running git pull.
  • Publish - npm run release -- [major/patch/minor] --non-interactive.

🚢

License, Contributor's Guidelines and Code of Conduct

We try to keep as much discussion as possible in GitHub issues, but also have a pretty inactive Slack --- if you'd like an invite, ping @Orta a DM on Twitter with your email. It's mostly interesting if you want to stay on top of Danger without all the emails from GitHub.

This project is open source under the MIT license, which means you have full access to the source code and can modify it to fit your own needs.

This project subscribes to the Moya Contributors Guidelines which TLDR: means we give out push access easily and often.

Contributors subscribe to the Contributor Code of Conduct based on the Contributor Covenant version 1.3.0.

You can’t perform that action at this time.