Integrate Danger
See original GitHub issueDanger 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 inStyledNativeComponent.js
– warn that this might have to be done - Warn that changes to
ThemeProvider.js
,StyledComponent.js
orStyledNativeComponent.js
might be semver major changes if they touch thecontext
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 thesrc/
folder except forsrc/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:
- Created 7 years ago
- Reactions:2
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done by the amazing @nickgnd in #121! 🎉
@mxstbr wow, thanks! Let me know if you need further help to adjust Danger’s rules or in other on ruby stuff 🤓 💎