All Projects → softprops → git-codeowners

softprops / git-codeowners

Licence: MIT license
a git extension to work with CODEOWNERS files

Programming Languages

rust
11053 projects
shell
77523 projects

Projects that are alternatives of or similar to git-codeowners

codeowners-validator
The GitHub CODEOWNERS file validator
Stars: ✭ 142 (+610%)
Mutual labels:  codeowners
codeowners-generator
CODEOWNERS solution for mono repos
Stars: ✭ 16 (-20%)
Mutual labels:  codeowners

git-codeowners Build Status Software License Crates.io

a git extention for Github CODEOWNERS files

Github CODEOWNERS files document ownership over paths within git repositories allowing you to more effectively focus communication with the right people.

install

Homebrew

For osx users, you can use brew to install or update git-codeowners

$ brew install softprops/tools/git-codeowners

To upgrade, just use brew upgrade instead

GH releases

You can download releases for osx and linux directly from github releases

$ cd $HOME/bin
$ curl -L "https://github.com/softprops/git-codeowners/releases/download/v0.1.2/git-codeowners-$(uname -s)-$(uname -m).tar.gz" \
  | tar -xz

Cargo

If you are a rust user can can just use cargo

$ cargo install git-codeowners

usage

git-codeowners is intended for use as a git extention ( a program whose name starts with git- ) to extend your git workflow.

$ git codeowners file src/main.rs
@softprops
$ git codeowners log origin/master..
05a4fc chore: do the hokey cokey
 * "Cargo.lock" @ops
 * "Cargo.toml" @ops

e5fe46 feat: Discover current repository
 * "Cargo.lock" @ops
 * "Cargo.toml" @ops
 * "src/main.rs" @softprops

Summary:
 * @softprops: 1 file in 1 commit, including: "src/main.rs" in e5fe46 feat: Discover current repository
 * @ops: 4 files in 2 commits, including: "src/main.rs" in 05a4fc chore: do the hokey cokey
$ git-codeowners --help
git-codeowners 0.1.2
Github CODEOWNERS answer sheet

USAGE:
    git-codeowners [FLAGS] [OPTIONS] <SUBCOMMAND>

FLAGS:
    -e, --emails     Only return emails
    -h, --help       Prints help information
    -t, --teams      Only return teams
    -u, --users      Only return users
    -V, --version    Prints version information

OPTIONS:
    -c, --codeowners <codeowners>    An explicit path for a CODEOWNERS file. program will exit 1 if file can not be
                                     resolved

SUBCOMMANDS:
    help    Prints this message or the help of the given subcommand(s)
    log     annotate log information
    path    Finds information about a specific path or set of paths

Doug Tangren (softprops) 2017

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].