All Projects β†’ danger β†’ Danger

danger / Danger

Licence: mit
🚫 Stop saying "you forgot to …" in code review (in Ruby)

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Danger

Danger Js
⚠️ Stop saying "you forgot to …" in code review
Stars: ✭ 4,076 (-13.11%)
Mutual labels:  ci, travis, code-review, circle, danger
Reviewdog
🐢 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (-3.2%)
Mutual labels:  ci, code-review, gitlab, bitbucket
Env Ci
Get environment variables exposed by CI services
Stars: ✭ 180 (-96.16%)
Mutual labels:  ci, travis, gitlab, bitbucket
Ci Detector
Detect continuous integration environment and get information of current build
Stars: ✭ 138 (-97.06%)
Mutual labels:  ci, travis, gitlab
Codestream
The Code Collaboration Tool Built for Remote Teams
Stars: ✭ 459 (-90.22%)
Mutual labels:  code-review, gitlab, bitbucket
Cistern
A terminal UI for Unix to monitor Continuous Integration pipelines from the command line. Current integrations include GitLab, Azure DevOps, Travis CI, AppVeyor and CircleCI.
Stars: ✭ 161 (-96.57%)
Mutual labels:  ci, travis, gitlab
Android Ci
A docker image for building Android apps. Supports multiple SDK Build Tools.
Stars: ✭ 101 (-97.85%)
Mutual labels:  ci, gitlab, bitbucket
Tox
Command line driven CI frontend and development task automation tool.
Stars: ✭ 2,523 (-46.22%)
Mutual labels:  automation, travis, gitlab
Gitlab Ci Pipeline Php
β˜•οΈ Docker images for test PHP applications with Gitlab CI (or any other CI platform!)
Stars: ✭ 451 (-90.39%)
Mutual labels:  ci, gitlab
go-scm
Package scm provides a unified interface to multiple source code management systems.
Stars: ✭ 117 (-97.51%)
Mutual labels:  gitlab, bitbucket
Github Updater
This WP plugin will update GitHub, Bitbucket, GitLab, and Gitea hosted plugins and themes
Stars: ✭ 2,893 (-38.33%)
Mutual labels:  gitlab, bitbucket
myyearwithgit
δ»£η δ»“εΊ“εΉ΄η»ˆζ€»η»“ζŠ₯ε‘Šγ€‚
Stars: ✭ 176 (-96.25%)
Mutual labels:  gitlab, bitbucket
vpr
VPR is a CLI that helps you to quickly manage your project in GitHub/GitLab/Bitbucket
Stars: ✭ 17 (-99.64%)
Mutual labels:  gitlab, bitbucket
snk.dev-assistant
Assistant for code development with advanced machine learning features
Stars: ✭ 14 (-99.7%)
Mutual labels:  gitlab, bitbucket
qodana-action
βš™οΈ Scan your Java, Kotlin, PHP, Python, JavaScript, TypeScript projects at GitHub with Qodana
Stars: ✭ 112 (-97.61%)
Mutual labels:  ci, code-review
docker-dev-arduino
Arduino development environment in a container
Stars: ✭ 18 (-99.62%)
Mutual labels:  gitlab, ci
Skyhook
Parses webhooks and forwards them in the proper format to Discord.
Stars: ✭ 263 (-94.39%)
Mutual labels:  gitlab, bitbucket
Generic Webhook Trigger Plugin
Can receive any HTTP request, extract any values from JSON or XML and trigger a job with those values available as variables. Works with GitHub, GitLab, Bitbucket, Jira and many more.
Stars: ✭ 287 (-93.88%)
Mutual labels:  gitlab, bitbucket
Travis Watch
Stream live travis test results of the current commit to your terminal!
Stars: ✭ 294 (-93.73%)
Mutual labels:  ci, travis
Oauth
πŸ”— OAuth 2.0 implementation for various providers in one place.
Stars: ✭ 336 (-92.84%)
Mutual labels:  gitlab, bitbucket

Danger 🚫

License Gem Travis CI Join the community on Spectrum

Formalize your Pull Request etiquette.


What is Danger? β€’ Vision β€’ Helping Out β€’ Plugin Development


What is Danger?

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

This provides another logical step in your process, through this 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.

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 specific files extra focus

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.

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

Some quick links: Guides Index, DSL Reference, Getting Started and What does Danger Do?.

I'm here to help out!

Brilliant. So, let's get you set up.

git clone https://github.com/danger/danger.git
cd danger
bundle install
bundle exec rake spec

This sets everything up and runs all of the tests.

Theory

Danger has a 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, too.

Documentation

The 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.

Testing

So 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.

I'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.

Debugging

Ruby is super dynamic. One of the best ways to debug Ruby code is by using pry. 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."

require 'pry'
binding.pry

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].