question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Danger is a bot that let’s you write rules that are used to automatically check each PR for common problems. (like “you forgot to add a changelog entry”)

It’s written in Ruby (a JS port is being worked on, though it’s not ready yet), and I haven’t done Ruby in a while, so I’d love if somebody from the community could help out with this!

I might have to do some setup for the repo or a bot, but I’m sure we can figure that out as we go along in a PR.


Some of the rules I imagine would be useful for this repo:

  • Enforce CHANGELOG.md entries for each PR that touches .js files
  • A change was made in StyledComponent.js that wasn’t made in StyledNativeComponent.js – warn that this might have to be done
  • Warn that changes to ThemeProvider.js, StyledComponent.js or StyledNativeComponent.js might be semver major changes if they touch the context stuff
  • Don’t let testing shortcuts be merged into master (fit, fdescribe, it.only, describe.only)
  • Enforce rebases to remove “Merge master into bla” commits?
  • Enforce that a test must be added for the changes? (not sure if this makes sense for everything, maybe enforce for all .js files in the src/ folder except for src/vendor)
  • Enforce a certain commit style? Not sure if this is really necessary.
  • Anything else you can come up with that might be an issue with PRs more often than not!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mxstbrcommented, Oct 19, 2016

Done by the amazing @nickgnd in #121! 🎉

0reactions
nickgndcommented, Oct 19, 2016

@mxstbr wow, thanks! Let me know if you need further help to adjust Danger’s rules or in other on ruby stuff 🤓 💎

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrate Danger JS in 5 Minutes - Medium
It's a automation checker against any opened pull requests. This article walkthrough how to set up such integration in GitHub within 5 minutes....
Read more >
Getting Started with Danger JS
Continuous Integration is the process of regularly running tests and generating metrics for a project. It is where you can ensure that the...
Read more >
danger/danger: Stop saying "you forgot to …" in code ... - GitHub
Danger runs after your CI, automating your team's conventions surrounding code review. This provides another logical step in your process, through this Danger...
Read more >
Working with danger JS and integrating it with GitHub
It's an automation checker against any opened pull requests. Install danger JS. Navigate to the root of your folder and execute: $ yarn...
Read more >
How To Automate The Android Code Review Process Using ...
What is Danger? Setting up Danger; Integrating Danger with Github and Travis CI; How to configure your DangerFile; How to integrate it with ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found