Codeowners
Simple CLI to interact with GitHub CODEOWNERS
Install / Use
/learn @jodosha/CodeownersREADME
Codeowners
Simple CLI to interact with GitHub CODEOWNERS.
Installation
Install as:
$ gem install codeowners
Usage
List
List code owners for a file, if any.
$ codeowners list path/to/file
@company/team-a @company/team-b
Contributors
List code contributors for a file. This is useful to guess who can be a candidate to own a file.
$ codeowners contributors path/to/file
path/to/file
Person One <person.one@company.com> / +106, -0
Person Two <person.two@company.com> / +12, -2
The command accepts also a pattern to match files in bulk.
$ codeowners contributors 'path/to/**/*.rb'
path/to/**/*.rb
Person One <person.one@company.com> / +243, -438
Person Three <person.three@company.com> / +104, -56
Person Two <person.two@company.com> / +12, -2
Help
For a complete set of options, please run:
$ codeowners --help
$ codeowners COMMAND --help
Development
After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.
To run codeowners executable during development:
$ bundle exec exe/codeowners contributors path/to/file --base-directory=/path/to/git/repository/to/analyze
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/jodosha/codeowners.
Copyright
© 2020 - Luca Guidi - https://lucaguidi.com
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
