Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

Count lines of code for a GitHub organisation.

License

Notifications You must be signed in to change notification settings

OutlierVentures/count-org-loc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Count lines of code for a GitHub organisation

Install

  1. git clone https://github.com/benbalter/count-org-loc && cd count-org-loc
  2. gem install bundler
  3. script/bootstrap

Usage

script/count [ORGANISATION_NAME]

This will not count forked repos.

For a single repo (e.g. counting the Indy repos under Hyperledger):

./countsingle [GIT_CLONE_URL]

Counting private repositories

To look at private repositories, you'll need to pass a personal access token with repo scope as GITHUB_TOKEN. You can do this by adding GITHUB_TOKEN=[TOKEN] to a .env file in the repository's root.

If you are working with GitHub Enterprise and want to change your URL, simply add GITHUB_ENTERPRISE_URL=https://<ghe-url>/api/v3 to the .env file

Sample .env File :

GITHUB_TOKEN="<token>"
GITHUB_ENTERPRISE_URL="https://my-ghe.local/api/v3"

About

Count lines of code for a GitHub organisation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 82.0%
  • Shell 18.0%