Git Product home page Git Product logo

fetch-all-github-repos's Introduction

Search all repositories in an organizations on github

This is simple program that fetches and searches all Optimizely's Github repositories for a specific string.

Install

$ go get github.com/optimizely/fetch-all-github-repos

Usage

$fetch-all-github-repos 0X123ThisIsAGithubAAccessKey

Or

$ time ./fetch-all-github-repos 0X123ThisIsAGithubAAccessKey | tee output.txt

repo number: 0 - [email protected]:optimizely/optimizely.git
git clone --depth 1 [email protected]:optimizely/optimizely.git tmpdir
ag eslint-scope tmpdir
tmpdir/src/www/frontend/yarn.lock:860:    eslint-scope "~3.7.1"
tmpdir/src/www/frontend/yarn.lock:3870:eslint-scope@^3.7.1, eslint-scope@~3.7.1:
tmpdir/src/www/frontend/yarn.lock:3872:  resolved "https://optimizely.jfrog.io/optimizely/api/npm/npm/eslint-scope/-/eslint-scope-3.7.1.tgz?dl=https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8"
tmpdir/src/www/frontend/yarn.lock:3892:    eslint-scope "^3.7.1"
tmpdir/src/www/frontend/yarn.lock:11571:    eslint-scope "^3.7.1"
ag eslint-config-eslint tmpdir
rm -rf tmpdir
repo number: 1 - [email protected]:optimizely/blog.optimizely.git
...
rm -rf tmpdir
repo number: 821 - [email protected]:optimizely/optimizely-ktlint.git
git clone --depth 1 [email protected]:optimizely/optimizely-ktlint.git tmpdir
ag eslint-scope tmpdir
ag eslint-config-eslint tmpdir
rm -rf tmpdir
./fetch-all-github-repos  135.25s user 239.15s system 31% cpu 19:55.51 total
tee output.txt  0.01s user 0.16s system 0% cpu 19:55.51 total

Note: If some string generates a lot of output lines can be restricted to 200 chars via

cut -c -200 output.txt > shortened-list.txt 

Credits

  • Ola

License

The MIT License (MIT).

fetch-all-github-repos's People

Contributors

ooola 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.