{"id":13411586,"url":"https://github.com/danger/danger","last_synced_at":"2025-09-09T20:49:21.161Z","repository":{"id":37548261,"uuid":"43347873","full_name":"danger/danger","owner":"danger","description":"🚫 Stop saying \"you forgot to …\" in code review (in Ruby)","archived":false,"fork":false,"pushed_at":"2025-04-03T00:25:10.000Z","size":3498,"stargazers_count":5540,"open_issues_count":162,"forks_count":484,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-04-27T20:53:36.399Z","etag":null,"topics":["automation","bitbucket","ci","circle","code-review","danger","github","gitlab","travis"],"latest_commit_sha":null,"homepage":"https://danger.systems","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-09-29T05:54:39.000Z","updated_at":"2025-04-26T14:59:57.000Z","dependencies_parsed_at":"2022-07-16T18:30:34.126Z","dependency_job_id":"ff9f9d07-2de3-4947-865b-317d000e73c8","html_url":"https://github.com/danger/danger","commit_stats":{"total_commits":2151,"total_committers":274,"mean_commits":7.850364963503649,"dds":0.7549976754997676,"last_synced_commit":"53ebd6415175ac7611b8605d5c8d20905268404c"},"previous_names":[],"tags_count":225,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Fdanger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Fdanger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Fdanger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danger%2Fdanger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danger","download_url":"https://codeload.github.com/danger/danger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251207159,"owners_count":21552521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bitbucket","ci","circle","code-review","danger","github","gitlab","travis"],"created_at":"2024-07-30T20:01:14.743Z","updated_at":"2025-04-27T20:53:54.947Z","avatar_url":"https://github.com/danger.png","language":"Ruby","readme":"# Danger :no_entry_sign:\n\n[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/orta/danger/blob/master/LICENSE)\n[![Gem](https://img.shields.io/gem/v/danger.svg?style=flat)](http://rubygems.org/gems/danger)\n[![CI](https://github.com/danger/danger/actions/workflows/CI.yml/badge.svg)](https://github.com/danger/danger/actions/workflows/CI.yml)\n\nFormalize your Pull Request etiquette.\n\n-------\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"#what-is-danger\"\u003eWhat is Danger?\u003c/a\u003e \u0026bull;\n    \u003ca href=\"VISION.md\"\u003eVision\u003c/a\u003e \u0026bull;\n    \u003ca href=\"#im-here-to-help-out\"\u003eHelping Out\u003c/a\u003e \u0026bull;\n    \u003ca href=\"https://danger.systems/guides/creating_your_first_plugin.html\"\u003ePlugin Development\u003c/a\u003e\n\u003c/p\u003e\n\n-------\n\n## What is Danger?\n\nDanger runs during your CI process, and gives teams the chance to automate common code review chores.\n\nThis provides another logical step in your process, through this Danger can help lint your rote tasks in daily code review.\n\nYou can use Danger to codify your teams norms. Leaving humans to think about harder problems.\n\n## For example?\n\nYou can:\n\n* Enforce CHANGELOGs\n* Enforce links to Trello/JIRA in PR/MR bodies\n* Enforce using descriptive labels\n* Look out for common anti-patterns\n* Highlight interesting build artifacts\n* Give specific files extra focus\n\nDanger 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.\n\n## Getting Started\n\nAlright. 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.\n\nWe keep all of the end-user documentation at [https://danger.systems](https://danger.systems).\n\nSome quick links: [Guides Index](https://danger.systems/guides.html), [DSL Reference](https://danger.systems/reference.html), [Getting Started](https://danger.systems/guides/getting_started.html) and [What does Danger Do?](https://danger.systems/guides/what_does_danger_do.html).\n\n## I'm here to help out!\n\nBrilliant. So, let's get you set up.\n\n```sh\ngit clone https://github.com/danger/danger.git\ncd danger\nbundle install\nbundle exec rake spec\n```\n\nThis sets everything up and runs all of the tests.\n\n#### Theory\n\nDanger has a [VISION.md](https://github.com/danger/danger/blob/master/VISION.md) file, which sums up the ideas around what Danger is. It is the lower bounds of what Danger means. Orta has written on handling and creating Danger [on the Artsy blog](http://artsy.github.io/blog/categories/danger/), too.\n\n#### Documentation\n\nThe code you write may end up in the public part of the website — the easiest way to tell is that it is vastly overdocumented. If you are working in a space that looks over-documented, please be extra considerate to add documentation. We expect the consumers of that documentation to be non-rubyists, thus you should avoid specific jargon and try to provide duplicate overlapping examples.\n\n#### Testing\n\nSo far, we've not really figured out the right way to make tests for our CLI commands. When we have done so, they've ended up being brittle. So, ideally, try to move any logic that would go into a command into separate classes, and test those. We're okay with the command not having coverage, but ideally the classes that make up what it does will.\n\nI'd strongly recommend using `bundle exec guard` to run your tests as you work. Any changes you make in the lib, or specs will have corresponding tests run instantly.\n\n#### Debugging\n\nRuby is super dynamic. One of the best ways to debug Ruby code is by using [pry](https://pry.github.io/). We include pry for developers: when you have a problem, copy these two lines just before your problem and follow the instructions from \"[I Want To Be A Danger Wizard](https://danger.systems/guides/troubleshooting.html#i-want-to-be-a-danger-wizard).\"\n\n```ruby\nrequire 'pry'\nbinding.pry\n```\n\n## License, Contributor's Guidelines and Code of Conduct\n\nWe 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](https://twitter.com/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.\n\n\u003e 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.\n\n\u003e This project subscribes to the [Moya Contributors Guidelines](https://github.com/Moya/contributors) which TLDR: means we give out push access easily and often.\n\n\u003e Contributors subscribe to the [Contributor Code of Conduct](https://contributor-covenant.org/version/1/3/0/) based on the [Contributor Covenant](https://contributor-covenant.org) version 1.3.0.\n","funding_links":[],"categories":["Ruby","Validate Pull Requests","Maintenance Managers","Continuous Integration","Awesome Ruby CLIs","Automation","What is Danger?","Happy Exploring 🤘","Danger","Testing","Uncategorized"],"sub_categories":["Danger","A11y (accessibility)","Messaging","Automation","Environment Variable","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanger%2Fdanger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanger%2Fdanger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanger%2Fdanger/lists"}