github-lister-core 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +13 -1
- data/README.md +1 -0
- data/VERSION.txt +1 -1
- data/lib/github-lister-core/utils.rb +1 -0
- data/lib/github-lister-core/version.rb +1 -1
- data/lib/github-lister-core/workflows.rb +29 -0
- data/lib/github-lister-core.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22f46d214a9ede3433e161770c99c8dc23f489c5c522e4431d39f5d14bfb75a1
|
4
|
+
data.tar.gz: '096668b123f11a7da5557ccb85ae926e11b9b9d30beeab86ac197a5a501db349'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 408cdacea0f69213a0b14a6316503e9675761c37145abbcbe140f99c6991775b1c75b8e2a331898f7c12bfc560024ef137da83fccc946ac5a4a221761151b896
|
7
|
+
data.tar.gz: 67d007d2954fa5c02dc0babfd8e0c4f79afd50935c2aaae3ecf756c5e6469cad6d6bb798d5675bc0f38050497923b5a64953f7677f031eb322bad1d94f460615
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,11 +5,23 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
|
6
6
|
This changelog was automatically generated using [Caretaker](https://github.com/DevelopersToolbox/caretaker) by [Wolf Software](https://github.com/WolfSoftware)
|
7
7
|
|
8
|
+
### [v0.1.6](https://github.com/DevelopersToolbox/github-lister-core/compare/v0.1.5...v0.1.6)
|
9
|
+
|
10
|
+
> Released on June, 13th 2022
|
11
|
+
|
12
|
+
- fix pakcage and git ignore [`[head]`](https://github.com/DevelopersToolbox/github-lister-core/commit/)
|
13
|
+
|
14
|
+
### [v0.1.5](https://github.com/DevelopersToolbox/github-lister-core/compare/v0.1.4...v0.1.5)
|
15
|
+
|
16
|
+
> Released on June, 13th 2022
|
17
|
+
|
18
|
+
- Added workflows [`[84a37a1]`](https://github.com/DevelopersToolbox/github-lister-core/commit/84a37a1b39c71a48f877d972a4bbdaea9571e39d)
|
19
|
+
|
8
20
|
### [v0.1.4](https://github.com/DevelopersToolbox/github-lister-core/compare/v0.1.3...v0.1.4)
|
9
21
|
|
10
22
|
> Released on May, 20th 2022
|
11
23
|
|
12
|
-
- Added SAML error handling and also capture genereic error and surface the message [`[
|
24
|
+
- Added SAML error handling and also capture genereic error and surface the message [`[7b72478]`](https://github.com/DevelopersToolbox/github-lister-core/commit/7b72478d5de58b5dd862d04bf0d66345dc334b1c)
|
13
25
|
|
14
26
|
- rebrand [`[c84ea27]`](https://github.com/DevelopersToolbox/github-lister-core/commit/c84ea270deed05ecdd3f483a7921e5260ef6b46d)
|
15
27
|
|
data/README.md
CHANGED
@@ -80,6 +80,7 @@ All of the exposed methods will return data in JSON format.
|
|
80
80
|
| :add_latest_release | This will add information about the latest release to the details (Requires an additional look query per repo) |
|
81
81
|
| :add_releases | This will add information about releases to the repository (Requires an additional look query per repo) |
|
82
82
|
| :add_languages | This will add the repository languages to the details (Requires an additional look query per repo) |
|
83
|
+
| :add_workflows | This will add the repository workflow information to the details (Requires an additional look query per repo) |
|
83
84
|
|
84
85
|
> :user, :username, :org, :org_name can be either a single user/organisation name _OR_ a comma-separated list of user/organisation names _OR_ an array of user/organisation names. If more than one name is given, the results for all names will be merged together into one result set.
|
85
86
|
|
data/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
@@ -89,6 +89,7 @@ class GithubListerCore
|
|
89
89
|
repos = add_latest_release_private(client, repos) if flag_set?(options, :add_latest_release)
|
90
90
|
repos = add_releases_private(client, repos) if flag_set?(options, :add_releases)
|
91
91
|
repos = add_languages_private(client, repos) if flag_set?(options, :add_languages)
|
92
|
+
repos = add_workflows_private(client, repos) if flag_set?(options, :add_workflows)
|
92
93
|
repos
|
93
94
|
end
|
94
95
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#
|
2
|
+
# Add workflows to each repository
|
3
|
+
#
|
4
|
+
class GithubListerCore
|
5
|
+
class << self
|
6
|
+
#
|
7
|
+
# Everything below here is private
|
8
|
+
#
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
#
|
13
|
+
# Extra the slug from the payload and return it
|
14
|
+
#
|
15
|
+
def workflows_private(client, repo)
|
16
|
+
workflows = function_wrapper(client, 'list_workflows', repo)
|
17
|
+
decode_sawyer_resource(workflows) || {}
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# Add topics to each repo
|
22
|
+
#
|
23
|
+
# This method smells of :reek:FeatureEnvy
|
24
|
+
def add_workflows_private(client, repos)
|
25
|
+
(repo_list ||= []) << Parallel.each(repos, :in_threads => repos.count) { |repo| repo[:workflows] = workflows_private(client, repo[:full_name]) }
|
26
|
+
repo_list.flatten
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/lib/github-lister-core.rb
CHANGED
@@ -19,6 +19,7 @@ require_relative 'github-lister-core/topics'
|
|
19
19
|
require_relative 'github-lister-core/users'
|
20
20
|
require_relative 'github-lister-core/utils'
|
21
21
|
require_relative 'github-lister-core/version'
|
22
|
+
require_relative 'github-lister-core/workflows'
|
22
23
|
require_relative 'github-lister-core/wrapper'
|
23
24
|
|
24
25
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-lister-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Gurney aka Wolf
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -181,6 +181,7 @@ files:
|
|
181
181
|
- lib/github-lister-core/users.rb
|
182
182
|
- lib/github-lister-core/utils.rb
|
183
183
|
- lib/github-lister-core/version.rb
|
184
|
+
- lib/github-lister-core/workflows.rb
|
184
185
|
- lib/github-lister-core/wrapper.rb
|
185
186
|
- testing/get-raw.rb
|
186
187
|
homepage: https://github.com/DevelopersToolbox/github-lister-core
|