/repo_dependency_graph

Graph the dependencies of your repositories

Primary LanguageRuby

Graph the dependency of your repositories

Install

gem install repo_dependency_graph

Usage

Install graphviz

    --token TOKEN                Use token
    --user USER                  Use user
    --draw TYPE                  png, html, table (default: png)
    --organization ORGANIZATION  Use organization
    --private                    Only show private repos
    --external                   Also include external projects in graph (can get super-messy)
    --map SEARCH=REPLACE         Replace in project name to find them as internal: 'foo=bar' -> replace foo in repo names to bar
    --only TYPE                  Only this type (chef,gem), default: all
    --max-pages PAGES
    --select REGEX               Only include repos with matching names
    --reject REGEX               Exclude repos with matching names
-h, --help                       Show this.
-v, --version                    Show Version

Public user

repo-dependency-graph --user repo-test-user
repo_a: repo_b, repo_c
repo_b: repo_d
repo_d: repo_c
repo_c: repo_b
repo_e: repo_a, repo_b, repo_c, repo_d
repo_f: repo_c, repo_d

Simple Travis

Private organization

# create a token that has access to your repositories
curl -v -u your-user-name -X POST https://api.github.com/authorizations --data '{"scopes":["repo"]}'
enter your password -> TOKEN

git config --global github.token ttttoookkkeeeennn

OR

repo-dependency-graph --organization xyz --token ttttoookkkeeeennn

Author

Michael Grosser
michael@grosser.it
License: MIT
Build Status