Giter Club home page Giter Club logo

go-get-github-activity's Introduction

Github most activity in six months

The most activity by commits, in an organization, over a period of six months

IMAGE

Before

You will need a personal access token in order to run this script:

https://developer.github.com/v3/auth/#via-oauth-and-personal-access-tokens

This means creating a personal access token for the command line.

Compile

You will need the latest stable version of go installed on your machine:

https://golang.org/dl/

Run the following command to download and build for execution:

go get -u github.com/justinpage/go-get-github-activity

Execute

Export the following environment variables:

export GITHUB_USERNAME=<github-username>
export GITHUB_TOKEN=<github-personal-access-token>

Run report against an organization:

go-get-github-activity <org-name>

Report will provide a summary of repos ordered by commit number:

Grabbing list of all repos for git
Filtering list within six months of commit activity
Getting statistics for each repo from list
(http 202); retrying request...
(http 202); retrying request...

Summary
-------
git: 1073
git.github.io: 127
git-scm.com: 42
htmldocs: 32

About

The following script takes advantage of the following APIs:

By using worker pools, we are able to get a list of repos concurrently. And by using exponential back-off, we are able to obtain statistics about a repo within two minutes --accounting for background jobs firing when compiling results.

Some future improvements include the following:

  • Flags and arguments to adjust threshold and time range
  • Implement testing package: https://golang.org/pkg/testing/
  • Refactor exponential back-off to work smarter and not longer

Note

Depending on Github's server performance, you might have to run this report twice against the same organzation to verify the results are consistent. The reason behind this is due to how our exponential back-off works. That is, it only retries the request for up to two minutes --else it moves on. You might get more results from a second run.

go-get-github-activity's People

Contributors

justinpage avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.