danger-js
⚠️ Stop saying "you forgot to …" in code review
File Explorer
Download Latest Version (.zip)- bug_report.md
- CI.yml
- publish_package.yml
- release.yml
- FUNDING.yml
- pre-commit
- pre-push
- extensions.json
- launch.json
- settings.json
- spell.json
- faq.html.md
- peril.html.md
- the_dangerfile.html.md
- dependencies.html.md
- fast-feedback.html.md
- node-app.html.md
- node-library.html.md
- transpilation.html.md
- bitbucket_cloud.html.md
- bitbucket_server.html.md
- culture.html.md
- danger-process.html.md
- extending-danger.html.md
- github_enterprise.html.md
- gitlab.html.md
- architecture.md
- issue_template.md
- development.env.example
- create-danger-dts.ts
- create-homebrew-tap-pr.sh
- danger-dts.ts
- danger_runner.rb
- run-fixtures.js
- update-changelog.ts
- update_flow_types.js
- danger-js-pr-395.json
- fetch.test.ts
- fetch.ts
- dummy_ci.d.ts
- dummy_ci.js
- _get_ci_source.test.ts
- ci_source_helper.test.ts
- _bamboo.test.ts
- _bitbucketPipelines.test.ts
- _bitrise.test.ts
- _buddyWorks.test.ts
- _buildkite.test.ts
- _circle.test.ts
- _codebuild.test.ts
- _codefresh.test.ts
- _codemagic.test.ts
- _concourse.test.ts
- _drone.test.ts
- _gitHubActions.test.ts
- _gitlab.test.ts
- _jenkins.test.ts
- _netlify.test.ts
- _screwdriver.test.ts
- _semaphore.test.ts
- _teamcity.test.ts
- _travis.test.ts
- _vsts.test.ts
- _xcodeCloud.test.ts
- AppCenter.ts
- Bamboo.ts
- BitbucketPipelines.ts
- Bitrise.ts
- BuddyWorks.ts
- Buildkite.ts
- Circle.ts
- Cirrus.ts
- CodeBuild.ts
- Codefresh.ts
- Codemagic.ts
- Codeship.ts
- Concourse.ts
- Drone.ts
- Fake.ts
- GitHubActions.ts
- GitLabCI.ts
- index.ts
- Jenkins.ts
- local-repo.ts
- Netlify.ts
- Screwdriver.ts
- Semaphore.ts
- Surf.ts
- TeamCity.ts
- Travis.ts
- VSTS.ts
- XcodeCloud.ts
- ci_source.ts
- ci_source_helpers.ts
- get_ci_source.ts
- runner.test.ts
- resetStatus.ts
- runner.ts
- add-to-ci.ts
- default-dangerfile.ts
- get-repo-slug.ts
- interfaces.ts
- state-setup.ts
- chainsmoker.test.ts
- dangerRunToRunnerCLI.test.ts
- file-utils.test.ts
- chainsmoker.ts
- dangerRunToRunnerCLI.ts
- fileUtils.ts
- getRuntimeCISource.ts
- reporting.ts
- runDangerSubprocess.ts
- sharedDangerfileArgs.ts
- validateDangerfileExists.ts
- danger-ci.ts
- danger-init.ts
- danger-local.ts
- danger-pr.ts
- danger-process.ts
- danger-reset-status.ts
- danger-runner.ts
- danger.ts
- DangerResults.test.ts.snap
- ExampleDangerResults.ts
- DangerResults.test.ts
- Aliases.ts
- BitBucketCloudDSL.ts
- BitBucketServerDSL.ts
- cli-args.ts
- Commit.ts
- DangerDSL.ts
- DangerResults.ts
- DangerUtilsDSL.ts
- GitDSL.ts
- GitHubDSL.ts
- GitLabDSL.ts
- RepoMetaData.ts
- Violation.ts
- _bitbucket_cloud.test.ts.snap
- _bitbucket_server.test.ts.snap
- bbc-dsl-input.json
- bbs-dsl-input.json
- bitbucket_cloud_activities.json
- bitbucket_cloud_comments.json
- bitbucket_cloud_commits.json
- bitbucket_cloud_diff.diff
- bitbucket_cloud_pr.json
- bitbucket_server_activities.json
- bitbucket_server_changes.json
- bitbucket_server_comments.json
- bitbucket_server_commits.json
- bitbucket_server_diff.json
- bitbucket_server_issues.json
- bitbucket_server_pr.json
- github_comments.json
- github_commits.json
- github_diff.diff
- github_inline_comments.json
- github_inline_comments_with_danger.json
- github_issue.json
- github_pr.json
- github_user.json
- readme.md
- requested_reviewers.json
- reviews.json
- static_file.98f3e73f5e419f3af9ab928c86312f28a3c87475.json
- static_file.cfa8fb80d2b65f4c4fa0b54d25352a3a0ff58f75.json
- static_file.json
- _bitbucket_cloud.test.ts
- _bitbucket_server.test.ts
- _encoding_parser.test.ts
- _github.test.ts
- _gitlab.test.ts
- _platform.test.ts
- _pull_request_parser.test.ts
- _bitbucket_cloud_git.test.ts.snap
- _bitbucket_cloud_api.test.ts
- _bitbucket_cloud_git.test.ts
- BitBucketCloudAPI.ts
- BitBucketCloudGit.ts
- _bitbucket_server_git.test.ts.snap
- _bitbucket_server_api.test.ts
- _bitbucket_server_git.test.ts
- BitBucketServerAPI.ts
- BitBucketServerGit.ts
- local_dangerfile_example.ts
- localGetCommits.test.ts
- localGetFileAtSHA.test.ts
- localLogGitCommits.test.ts
- diffToGitJSONDSL.ts
- gitJSONToGitDSL.ts
- localGetCommits.ts
- localGetDiff.ts
- localGetFileAtSHA.ts
- localLogGitCommits.ts
- _github_git.test.ts.snap
- _customGitHubRequire.test.ts
- _github_api.test.ts
- _github_git.test.ts
- _github_utils.test.ts
- fixturedGitHubDSL.ts
- _checksCommenter.test.ts
- _issueCommenter.test.ts
- githubAppSupport.ts
- resultsToCheck.ts
- checksCommenter.ts
- issueCommenter.ts
- customGitHubRequire.ts
- GitHubAPI.ts
- GitHubGit.ts
- GitHubUtils.ts
- _gitlab_git.test.ts.snap
- fileContentsAfter.txt
- fileContentsBefore.txt
- getCompareChanges.json
- getFileContents.json
- getMergeRequestApprovals.json
- getMergeRequestCommits.json
- getMergeRequestDiffs.json
- getMergeRequestDiscussions.json
- getMergeRequestInfo.json
- getMergeRequestNotes.json
- getUser.json
- gitlab_changes.json
- updateMergeRequestInfo.json
- _gitlab_api.test.ts
- _gitlab_git.test.ts
- _inline_position_parser.test.ts
- GitLabAPI.ts
- GitLabGit.ts
- inlinePositionParser.ts
- BitBucketCloud.ts
- BitBucketServer.ts
- encodingParser.ts
- FakePlatform.ts
- GitHub.ts
- GitLab.ts
- LocalGit.ts
- platform.ts
- pullRequestParser.ts
- thing.js
- __DangerfileAsync.js.json
- __DangerfileAsync.ts.json
- __DangerfileBadSyntax.js.json
- __DangerfileCallback.js.json
- __DangerfileCustomIconMessages.js.json
- __DangerfileDefaultExport.js.json
- __DangerfileDefaultExportAsync.js.json
- __DangerfileEmpty.js.json
- __DangerfileFullMessages.js.json
- __DangerfileImportRelative.js.json
- __DangerfileInlineOpts.js.json
- __DangerfileInlineResults.js.json
- __DangerfileMultiScheduled.js.json
- __DangerfileNoScheduledAsync.ts.json
- __DangerfilePlugin.js.json
- __DangerfileScheduled.js.json
- __DangerfileThrows.js.json
- __DangerfileTypeScript.ts.json
- __DangerfileAsync.js
- __DangerfileAsync.ts
- __DangerfileBadSyntax.js
- __DangerfileCallback.js
- __DangerfileCustomIconMessages.js
- __DangerfileDefaultExport.js
- __DangerfileDefaultExportAsync.js
- __DangerfileEmpty.js
- __DangerfileFullMessages.js
- __DangerfileImportRelative.js
- __DangerfileInlineOpts.js
- __DangerfileInlineResults.js
- __DangerfileMultiScheduled.js
- __DangerfileNoScheduledAsync.ts
- __DangerfilePlugin.js
- __DangerfileScheduled.js
- __DangerfileThrows.js
- __DangerfileTypeScript.ts
- ExampleDangerResults.ts
- _danger_utils.test.ts
- _executor.test.ts
- jsonToContext.test.ts
- jsonToDSL.test.ts
- _cleanDangerfile.test.ts
- _transpiler.test.ts
- cleanDangerfile.ts
- resultsForCaughtError.ts
- transpiler.ts
- inline.ts
- runner.ts
- _bitbucketCloudTemplate.test.ts.snap
- _bitbucketServerTemplate.test.ts.snap
- _githubIssueTemplates.test.ts.snap
- _markdownTableTemplate.test.ts.snap
- _bitbucketCloudTemplate.test.ts
- _bitbucketServerTemplate.test.ts
- _githubIssueTemplates.test.ts
- _markdownTableTemplate.test.ts
- bitbucketCloudTemplate.ts
- bitbucketServerTemplate.ts
- exceptionRaisedTemplate.ts
- githubIssueTemplate.ts
- markdownTableTemplate.ts
- dangerDSLJSON.ts
- Dangerfile.ts
- DangerUtils.ts
- dslGenerator.ts
- Executor.ts
- jsonToContext.ts
- jsonToDSL.ts
- ambient.d.ts
- danger-incoming-process-schema.json
- danger-outgoing-process-schema.json
- danger.d.ts
- danger.ts
- debug.ts
- package.json
- test.ts
- tsconfig.json
- tslint.json
- .babelrc
- .editorconfig
- .eslintignore
- .eslintrc.js
- .flowconfig
- .gitattributes
- .gitignore
- .npmignore
- .pre-commit-config.yaml
- .prettierignore
- .release-it.json
- appveyor.yml
- CHANGELOG.md
- CONTRIBUTING.md
- dangerfile.circle.js
- dangerfile.flow.js
- dangerfile.lite.ts
- dangerfile.ts
- Dockerfile
- LICENSE
- package.json
- README.md
- SECURITY.md
- tsconfig.json
- tsconfig.production.json
- tsconfig.spec.json
- tslint.json
- VISION.md
- wallaby.js
- yarn.lock
# Installation Guide
git clone https://github.com/danger/danger-js
Downloads the entire project code from GitHub to your computer.
cd danger-js
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- Node.js Node.js must be installed to use npm.
npm install -g yarn
Installs the package published on the npm registry globally — no need to clone the source.
Pulled directly from this repo's README.
3. Docker
Easy- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t danger-js .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 danger-js
Runs the built image as an actual container.
4. Node.js
Easynpm install -g yarn
Installs the package published on the npm registry globally — no need to clone the source.
yarn install
Downloads and installs the libraries listed in package.json.
yarn test
Type this command into your terminal and run it.
yarn lint
Type this command into your terminal and run it.
yarn build; node --inspect distribution/commands/danger-pr.js https://github.com/danger/danger-js/pull/817
Builds optimized production files.
Pulled directly from this repo's README.
