Take ownership of your code.
gem install owners
OWNERS file in any directory within your repository. This file should contain a newline separated list of subscribers to notify when files within the directory have changed. The
OWNERS files are searched recursively up the tree to make organizing owners more convenient.
Subscribers can be anything that suits your needs e.g. emails, GitHub handles, Slack channels, etc.
firstname.lastname@example.org email@example.com @some_github_handle @your_github_org/group#some_slack_channel
OWNERS file also supports limiting paths with regular expressions or exact matches. Any whitespace that separates the subscriber from the path limiters are ignored.
@data app/models/.* @ui \.(css|haml|js|scss)$ [email protected] lib/bobs_special_file.rb
OWNERS files are defined, you can search for a list of owners by calling
Owners.for with a list of paths e.g. output from
git diff --name-only.
.(".env", "app/controllers/posts_controller.rb", "app/models/user.rb")
This method returns a unique array of all the owners who have subscribed to changes for the specified files. These subscribers can then be notified however you see fit!
bundle exec rspec
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- Commit, do not mess with the version or history.
- Send me a pull request. Bonus points for topic branches.
MIT - Copyright © 2015 Sean Huber