libraries/github.rb
# Given a GitHub organization name and a GitHub API token with access to view
# the repositories in that org, returns a list of all repo names in the org.
#
# @param github_token [String] GitHub API token with permissions to view
#   repositories on the given repo.
# @param org_name [String] Name of GitHub organization.
Given a GitHub organization name and a GitHub API token with access to view
the repositories in that org, returns a list of all repo names in the org.
Given a GitHub organization name and a GitHub API token with access to view the repositories in that org returns a list of all repo names in the org .
def collect_github_repositories(github_token, org_name)
  require 'octokit'
  github = Octokit::Client.new(access_token: github_token)
  github.auto_paginate = true
  github.org_repos(org_name).map(&:name)
end
def collect_github_repositories ( github_token , org_name ) require 'octokit' github = Octokit :: Client . new ( access_token : github_token ) github . auto_paginate = true github . org_repos ( org_name ) . map ( & :name ) end
Given a GitHub organization name and a GitHub API token with access to view
the repositories in that org, returns a list of all repo names in the org.
Given a GitHub organization name and a GitHub API token with access to view the repositories in that org returns a list of all repo names in the org .
github_token
GitHub API token with permissions to view repositories on the given repo.
GitHub API token with permissions to view repositories on the given repo .
org_name
Name of GitHub organization.
Name of GitHub organization .