Skip to content

Crude script to generate an audit report of GitHub organization members activity state.

Notifications You must be signed in to change notification settings

jsimpson/github-organization-reports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Organization Reports

This was adapted from a gist by user @jdennes.

It is a very crude way to run a very loose audit against your GitHub organizations users (organization members and collaborators) and discover their active/inactive state. I believe that this is a feature in GitHub Enterprise that, for whatever reason, to my knowledge, doesn't exist for a GitHub organizations.

What does it do?

It pulls down all of your orgainzations members and repositories. It then analyzes repository events and correlates them back to your users. It updates 2 pertinent fields: active state (last_activity >= CUTOFF, in days) and last_activity of the organization repository event for that user. It dumps all of this information in to a CSV.

Set up

Clone the repository

$ git clone https://github.com/jsimpson/github-organization-reports.git; cd github-organization-reports

Install Octokit

$ bundle install

Configure the script

  • Set ORGANIZAION to your organization name.

  • Set CUTOFF appropriately.

  • Get a GitHub personal access token.

Execute

$ OCTOKIT_ACCESS_TOKEN=<yourtoken> bundle exec ruby organization-reports.rb
$ cat report.csv

About

Crude script to generate an audit report of GitHub organization members activity state.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages