ランキングに戻る

danger/danger-js

TypeScriptdanger.systems/js/

⚠️ Stop saying "you forgot to …" in code review

code-reviewdangercitravisjenkinscircledanger-jsgithub-actions
スター成長
スター
5.5k
フォーク
382
週間成長
Issue
156
2k4k
2016年8月2019年11月2023年3月2026年7月
成果物npmnpm install danger-js
README


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 team's norms, leaving humans to think about harder problems.

Danger JS works with GitHub, BitBucket Server, BitBucket Cloud for code review, then with: Travis CI, GitLab CI, Semaphore, Circle CI, GitHub Actions, Jenkins, Bamboo, Bitrise, surf-build, Codeship, Drone, Buildkite, Buddy.works, TeamCity, Visual Studio Team Services, Screwdriver, Concourse, Netlify, CodeBuild, Codefresh, AppCenter, BitBucket Pipelines, Cirrus CI, Codemagic or Xcode Cloud.

npm Build Status Build Status

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/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 main branch. Ensure your working tree is clean, and make sure you have the latest changes by running git pull; yarn.
  • Publish - npm run release -- patch --ci --npm.otp=<code>.
  • This will trigger a CI run which updates homebrew for the native builds

:ship:

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 but don't have access to deploy.

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.

関連リポジトリ
tirth8205/code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

PythonPyPIMIT Licenseai-codingclaude
code-review-graph.com
24.7k2.4k
ovity/octotree

GitHub on steroids

JavaScriptnpmGNU Affero General Public License v3.0githubchrome
octotree.io
23.2k1.8k
millionco/react-doctor

Your agent writes bad React. This catches it

TypeScriptnpmOtheragentscode-review
react.doctor
14k451
gitpod-io/gitpod

The developer platform for on-demand cloud development environments to create software faster and more securely.

TypeScriptnpmGNU Affero General Public License v3.0cloud-idegitpod
gitpod.io
13.7k1.4k
The-PR-Agent/pr-agent

🚀 PR Agent: The Original Open-Source PR Reviewer. This project It is not the Qodo free tier.

PythonPyPIMIT Licensegpt-4openai
pr-agent.ai
12.2k1.6k
alibaba/open-code-review

Open-source & free — Battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic pipelines + LLM Agent, precise line-level comments, built-in fine-tuned ruleset (NPE, thread-safety, XSS, SQL injection), OpenAI & Anthropic compatible.

GoGo ModulesApache License 2.0agentcode-review
open-codereview.ai
10.9k743
reviewdog/reviewdog

🐶 Automated code review tool integrated with any code analysis tools regardless of programming language

GoGo ModulesMIT Licenselintergo
medium.com/@haya14busa/reviewdog-a-code-review-dog-who-keeps-your-codebase-healthy-d957c471938b
9.5k489
modem-dev/hunk

Review-first terminal diff viewer for agentic coders

TypeScriptnpmMIT Licenseclicode-review
hunk.dev
7.6k212
backnotprop/plannotator

Annotate and review coding agent plans and code diffs visually, share with your team, send feedback to agents with one click.

TypeScriptnpmApache License 2.0claude-codeopencode
plannotator.ai
7.2k516
jnMetaCode/superpowers-zh

🦸 AI 编程超能力 · 中文增强版 — superpowers(116k+ ⭐)完整汉化 + 6 个中国原创 skills,让 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI 等 16 款 AI 编程工具真正会干活

JavaScriptnpmMIT Licenseai-codingchinese
sp.aiolaola.com
7.1k686
qodo-ai/pr-agent

🚀 PR-Agent (Qodo Merge open-source): An AI-Powered 🤖 Tool for Automated Pull Request Analysis, Feedback, Suggestions and More! 💻🔍

PythonPyPIApache License 2.0gpt-4openai
qodo.ai
7.1k731
lintsinghua/DeepAudit

DeepAudit:人人拥有的 AI 黑客战队,让漏洞挖掘触手可及。国内首个开源的代码漏洞挖掘多智能体系统。小白一键部署运行,自主协作审计 + 自动化沙箱 PoC 验证。支持 Ollama 私有部署 ,一键生成报告。支持中转站。​让安全不再昂贵,让审计不再复杂。

PythonPyPIGNU Affero General Public License v3.0aibug-detection
6.7k821