Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitsheet

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitsheet

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Gitsheet

Gitsheet is a command line utility designed to fetch/parse/format GitHub API data. Primary use cases include analytics and report-generating.

Gitsheet requests are authenticated using your Github credentials. As such, the results of all queries are limited to the permissions of your Github account.

Installation

Clone the repository:

$ git clone ssh@github.com/vervewireless/gitsheet.git
$ cd gitsheet/

Mac OSX Users should have a system version of Ruby installed:

$ ruby -v

Install Bundler:

$ gem install bundler

Install Gitsheet dependencies:

$ bundle install

Configuration

Place bin/gitsheet in your $PATH to be able to run the command globally:

$ cp gitsheet/bin/gitsheet usr/bin

It is helpful to create aliases in your .bashrc file for common operations:

# .bashrc
alias report_git_repos='gitsheet repos -u maiyln -o vervewireless'
alias report_git_users='gitsheet users -u maiyln -o vervewireless'

Usage

Synopsis:

$ gitsheet [type] -u [username] -p [password] -o [organization] -f [format]

Arguments:

type is the data type to fetch. Can be either 'repos' or 'users'.

-o the GitHub organization to search within eg: 'vervewireless'

Output

By default, gitsheet outputs raw csv data to stdout. This is useful because you can pass the output to various shell commands.

Write to a file:

$ gitsheet ... > report.csv

Keyword search through results:

$ gitsheet ... | grep [keyword]

Examples

Get all repositories in an organization:

$ gitsheet repos -u testuser -p secret -o vervewireless

Get all members of an organization:

$ gitsheet users -u testuser -p secret -o vervewireless

Get all repositories and write output to a .csv file:

$ gitsheet repos -u testuser -p secret -o vervewireless -f csv > report.csv

TODO

Here are the next steps for Gitsheet

  • Add unit tests
  • Leverage Ruby gem to handle command line argument parsing, control flow etc.
  • Better error handling
  • More informative error messages
  • A much better name!

FAQs

Package last updated on 08 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc