danger-missing_codeowners
A Danger Ruby plugin for inspecting CODEOWNERS and finding which files have no owners.
Works with GitHub and GitLab.
Installation
Add this line to your Gemfile:
gem 'danger-missing_codeowners'
Usage
Just call the verify methd in your Dangerfile:
missing_codeowners.verify
By default danger-missing_codeowners will only verify files that were added or modified in the pull request diff.
To verify all files, use the verify_all_files option:
missing_codeowners.verify_all_files = true
missing_codeowners.verify
You can also adjust the severity of the execution. Possible valures are error (default) and warning:
missing_codeowners.severity = 'warning'
missing_codeowners.verify
Development
- Clone this repo
- Run
bundle installto setup dependencies. - Run
bundle exec rake specto run the tests. - Use
bundle exec guardto automatically have tests run as you make changes.
License
MIT