No commit activity in last 3 years
No release in over 3 years
Audit all repos of your organization or user
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

Audit all repos of your organization or user

Install

gem install organization_audit

Usage

Token has to be passed or is fetched from git config github.token.

require 'organization_audit'

OrganizationAudit.all(user: "anamartinez").each do |repo|
  if !repo.private? && repo.gem? && repo.content("Gemfile").to_s.include?("rake")
    puts "#{repo.name} includes rake!"
  end
end

Commandline tool: fetch :user/:token/:organization/:ignore/:ignore_gems from ARGV

options = {}
OptionParser.new do |parser|
  parser.banner = "My shiny tool"
  OrganizationAudit.optparse(parser, options)
end.parse!

Options

  • :user
  • :organization
  • :token (see below)

Token

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

Related

Author

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