codersrank-org / multi_repo_extractor

6 stars 6 forks source link
hacktoberfest

DEPRECATED

This repo is deprecated and the generated artefact is not supported anymore. It is going to be merged with the repo_info_extractor.

What is it?

Wrapper for repo_info_extractor to extract/process multiple repositories at once. If you have a GitHub account with multiple repos (public or private) you can use this script to analyze them at once by providing a token.

How it works?

Usage

TL;DR

This will extract all the private repos from GitHub that are available by the given token.

go run . -token="{your_actual_token}" -emails="email1@example.com,email2@example.com"

or using the binary

./multi_repo_extractor_linux -token="{your_actual_token}" -emails="email1@example.com,email2@example.com"

Other options

If you want to change the default configurations you can do it like this:

./multi_repo_extractor_linux -token="{your_actual_token}" -emails="email1@example.com,email2@example.com" -repo_visibility="all" -provider="github.com"

Available flags

There are also two enviroment variables you can use:

repo_scope

BitBucket.org

Right now BitBucket Cloud is supported. For authentication your have to use your username and password. Password must be set via the -token flag. Example usage:

./multi_repo_extractor_linux -token="password1" -username="username1" -emails="email1@example.com,email2@example.com" -repo_visibility="all" -provider="bitbucket.org"

When you create the a new app password make sure you select all the necessary scopes. repo_scope The safest way if you create an app password and use it instead of your user's password. You can create it here: https://bitbucket.org/account/settings/app-passwords/