Class: GithubListerCore
- Inherits:
-
Object
- Object
- GithubListerCore
- Defined in:
- lib/github-lister-core.rb,
lib/github-lister-core/regex.rb,
lib/github-lister-core/repos.rb,
lib/github-lister-core/users.rb,
lib/github-lister-core/utils.rb,
lib/github-lister-core/client.rb,
lib/github-lister-core/errors.rb,
lib/github-lister-core/topics.rb,
lib/github-lister-core/preview.rb,
lib/github-lister-core/version.rb,
lib/github-lister-core/wrapper.rb,
lib/github-lister-core/releases.rb,
lib/github-lister-core/languages.rb,
lib/github-lister-core/workflows.rb,
lib/github-lister-core/organisations.rb
Overview
Pull information specific to organisations (org repos are in repos.rb)
Defined Under Namespace
Classes: InvalidOptionsHashError, InvalidParameterError, InvalidTokenError, MissingOrganisationError, MissingTokenError, NotFoundError, SAMLProtected, TooManyRequests, UnknownError
Constant Summary collapse
- PREVIEW_TYPES =
Missing from Octokit
{ :visibility => 'application/vnd.github.nebula-preview+json' }.freeze
- MAJOR =
Current major release.
0
- MINOR =
Current minor release.
1
- PATCH =
Current patch level.
8
- VERSION =
Full release version.
[MAJOR, MINOR, PATCH].join('.').freeze
Class Method Summary collapse
-
.all_repos(options = {}) ⇒ Object
Generate a list of repos for all organisations that a user is a member of.
-
.org_members_repos(options = {}) ⇒ Object
Get a list of repos for ALL organisations that a user is a member of If the user is authenticated and a member of the org it will list private + public.
-
.org_membership(options = {}) ⇒ Object
These are the public wrappers which return json encoded objects.
-
.org_repos(options = {}) ⇒ Object
Get a list of repos got a given organisation If the user is authenticated and a member of the org it will list private + public.
-
.user_repos(options = {}) ⇒ Object
Get a list of repos got a given user If the user is authenticated it will list private + public.
-
.validate_user(options = {}) ⇒ Object
Validate the list of users.
Class Method Details
.all_repos(options = {}) ⇒ Object
Generate a list of repos for all organisations that a user is a member of
98 99 100 101 102 103 104 105 106 107 |
# File 'lib/github-lister-core.rb', line 98 def all_repos( = {}) client = init_client() user = get_user_list(client, ) if flag_set?(, :use_slugs) all_repo_slugs_private(client, user, ).to_json else all_repos_private(client, , user, ).to_json end end |
.org_members_repos(options = {}) ⇒ Object
Get a list of repos for ALL organisations that a user is a member of If the user is authenticated and a member of the org it will list private + public
84 85 86 87 88 89 90 91 92 93 |
# File 'lib/github-lister-core.rb', line 84 def org_members_repos( = {}) client = init_client() users = get_user_list(client, ) if flag_set?(, :use_slugs) org_members_repo_slugs_private(client, users, ).to_json else org_members_repos_private(client, users, ).to_json end end |
.org_membership(options = {}) ⇒ Object
These are the public wrappers which return json encoded objects.
112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/github-lister-core.rb', line 112 def org_membership( = {}) () client = init_client() users = get_user_list(client, ) if flag_set?(, :use_slugs) org_membership_slugs_private(client, users).to_json else org_membership_private(client, users, ).to_json end end |
.org_repos(options = {}) ⇒ Object
Get a list of repos got a given organisation If the user is authenticated and a member of the org it will list private + public
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/github-lister-core.rb', line 69 def org_repos( = {}) client = init_client() orgs = get_org_list() if flag_set?(, :use_slugs) org_repo_slugs_private(client, orgs, ).to_json else org_repos_private(client, orgs, ).to_json end end |
.user_repos(options = {}) ⇒ Object
Get a list of repos got a given user If the user is authenticated it will list private + public
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/github-lister-core.rb', line 54 def user_repos( = {}) client = init_client() users = get_user_list(client, ) if flag_set?(, :use_slugs) user_repo_slugs_private(client, users, ).to_json else user_repos_private(client, users, ).to_json end end |
.validate_user(options = {}) ⇒ Object
Validate the list of users
43 44 45 46 47 48 |
# File 'lib/github-lister-core.rb', line 43 def validate_user( = {}) client = init_client() users = get_user_list(client, ) validate_user_private(client, users).to_json end |