Skip to contents

Download archives of GitHub repositories within an organization

Usage

download_organization_repos(
  organizations = NULL,
  extra_repos = NULL,
  dest_folder = getwd()
)

Arguments

organizations

Organization name(s) (vector)

extra_repos

Named vector of extra repository names where names are organization names.

dest_folder

Where to save the folders with the archives.

Details

You will need a GitHub Personal Access Token.

The reason why you might need extra_repos is if you want to download archives of private repositories, while using a GitHub Personal Access Token with no scope.

GitHub documentation on archives.

Examples

if (FALSE) {
download_organization_repos(c("maelle-test", "maelle-test"))
}