whatsup_github 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/linters/.ruby-lint.yml +11 -0
- data/.github/workflows/linter.yml +48 -0
- data/.github/workflows/tests.yml +11 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +75 -96
- data/Rakefile +1 -1
- data/lib/template/.whatsup.yml +3 -4
- data/lib/whatsup_github/cli.rb +8 -3
- data/lib/whatsup_github/client.rb +40 -0
- data/lib/whatsup_github/config_reader.rb +1 -0
- data/lib/whatsup_github/pulls.rb +4 -12
- data/lib/whatsup_github/row_collector.rb +5 -2
- data/lib/whatsup_github/version.rb +1 -1
- data/whatsup_github.gemspec +9 -7
- metadata +48 -18
- data/.travis.yml +0 -6
- data/lib/whatsup_github/members.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfff3f017c4ab987bfb23086782ad4ca233bbc3f8216eece2bf518b7164f71c7
|
4
|
+
data.tar.gz: 20b3555c3511a364c86c5dc7a83e6d934ab12a0fee54573b6d6cee5090ad9c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e4604bf0cab9e466e0c30834ae8ed4e454f9a3229e25fc4ed3c5dbd33db89919b3f280a4001f794c7edec2d3ce4ac5e2f3a7185db34b976bb187fbf5f7436b1
|
7
|
+
data.tar.gz: 29e3adc0ea5190d4ae912a00778e66db83889825963641269a954a2cd6d8f056dde54bbda0c164b026744f3dda5d2e0b0471d1d42804b19e94f5ecf4e0dcf4fa
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
###########################
|
3
|
+
###########################
|
4
|
+
## Linter GitHub Actions ##
|
5
|
+
###########################
|
6
|
+
###########################
|
7
|
+
name: Lint Code Base
|
8
|
+
|
9
|
+
#
|
10
|
+
# Documentation:
|
11
|
+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
12
|
+
#
|
13
|
+
|
14
|
+
###################################
|
15
|
+
# Start the job on a pull request #
|
16
|
+
###################################
|
17
|
+
on:
|
18
|
+
pull_request
|
19
|
+
|
20
|
+
###############
|
21
|
+
# Set the Job #
|
22
|
+
###############
|
23
|
+
jobs:
|
24
|
+
super-lint:
|
25
|
+
# Set the agent to run on
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
|
28
|
+
##################
|
29
|
+
# Load all steps #
|
30
|
+
##################
|
31
|
+
steps:
|
32
|
+
##########################
|
33
|
+
# Checkout the code base #
|
34
|
+
##########################
|
35
|
+
- name: Checkout Code
|
36
|
+
uses: actions/checkout@v3
|
37
|
+
with:
|
38
|
+
# Full git history is needed to get a proper list of changed files within `super-linter`
|
39
|
+
fetch-depth: 0
|
40
|
+
|
41
|
+
################################
|
42
|
+
# Run Linter against code base #
|
43
|
+
################################
|
44
|
+
- name: Lint Code Base
|
45
|
+
uses: github/super-linter@v4
|
46
|
+
env:
|
47
|
+
VALIDATE_ALL_CODEBASE: false
|
48
|
+
DEFAULT_BRANCH: main
|
@@ -0,0 +1,11 @@
|
|
1
|
+
name: Test the code
|
2
|
+
on: [pull_request]
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
runs-on: ubuntu-latest
|
6
|
+
steps:
|
7
|
+
- uses: actions/checkout@v3
|
8
|
+
- uses: ruby/setup-ruby@v1
|
9
|
+
with:
|
10
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
11
|
+
- run: bundle exec rake
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.7.7
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,129 +1,108 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
whatsup_github (0.
|
4
|
+
whatsup_github (0.5.0)
|
5
5
|
netrc (~> 0.11)
|
6
|
-
octokit (~>
|
7
|
-
thor (~> 1.
|
6
|
+
octokit (~> 6.0)
|
7
|
+
thor (~> 1.2)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
tzinfo (~> 2.0)
|
17
|
-
zeitwerk (~> 2.3)
|
18
|
-
addressable (2.7.0)
|
19
|
-
public_suffix (>= 2.0.2, < 5.0)
|
20
|
-
aruba (1.0.4)
|
12
|
+
addressable (2.8.1)
|
13
|
+
public_suffix (>= 2.0.2, < 6.0)
|
14
|
+
aruba (2.1.0)
|
15
|
+
bundler (>= 1.17, < 3.0)
|
21
16
|
childprocess (>= 2.0, < 5.0)
|
22
|
-
contracts (
|
23
|
-
cucumber (>=
|
17
|
+
contracts (>= 0.16.0, < 0.18.0)
|
18
|
+
cucumber (>= 4.0, < 9.0)
|
24
19
|
rspec-expectations (~> 3.4)
|
25
20
|
thor (~> 1.0)
|
26
21
|
builder (3.2.4)
|
27
|
-
childprocess (4.
|
22
|
+
childprocess (4.1.0)
|
28
23
|
coderay (1.1.3)
|
29
|
-
|
30
|
-
|
31
|
-
cucumber (5.3.0)
|
24
|
+
contracts (0.16.1)
|
25
|
+
cucumber (8.0.0)
|
32
26
|
builder (~> 3.2, >= 3.2.4)
|
33
|
-
cucumber-
|
34
|
-
cucumber-
|
35
|
-
cucumber-cucumber-expressions (~>
|
36
|
-
cucumber-gherkin (~>
|
37
|
-
cucumber-html-formatter (~>
|
38
|
-
cucumber-messages (~>
|
39
|
-
|
40
|
-
|
41
|
-
multi_test (~>
|
42
|
-
sys-uname (~> 1.2, >= 1.2.
|
43
|
-
cucumber-
|
44
|
-
|
45
|
-
cucumber-
|
46
|
-
cucumber-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
cucumber-
|
52
|
-
cucumber-messages (~>
|
53
|
-
cucumber-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
faraday-net_http (~> 1.0)
|
65
|
-
multipart-post (>= 1.2, < 3)
|
66
|
-
ruby2_keywords
|
67
|
-
faraday-net_http (1.0.1)
|
68
|
-
ffi (1.15.0)
|
69
|
-
i18n (1.8.9)
|
70
|
-
concurrent-ruby (~> 1.0)
|
27
|
+
cucumber-ci-environment (~> 9.0, >= 9.0.4)
|
28
|
+
cucumber-core (~> 11.0, >= 11.0.0)
|
29
|
+
cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
|
30
|
+
cucumber-gherkin (~> 23.0, >= 23.0.1)
|
31
|
+
cucumber-html-formatter (~> 19.1, >= 19.1.0)
|
32
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
33
|
+
diff-lcs (~> 1.5, >= 1.5.0)
|
34
|
+
mime-types (~> 3.4, >= 3.4.1)
|
35
|
+
multi_test (~> 1.1, >= 1.1.0)
|
36
|
+
sys-uname (~> 1.2, >= 1.2.2)
|
37
|
+
cucumber-ci-environment (9.1.0)
|
38
|
+
cucumber-core (11.0.0)
|
39
|
+
cucumber-gherkin (~> 23.0, >= 23.0.1)
|
40
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
41
|
+
cucumber-tag-expressions (~> 4.1, >= 4.1.0)
|
42
|
+
cucumber-cucumber-expressions (15.2.0)
|
43
|
+
cucumber-gherkin (23.0.1)
|
44
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
45
|
+
cucumber-html-formatter (19.2.0)
|
46
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
47
|
+
cucumber-messages (18.0.0)
|
48
|
+
cucumber-tag-expressions (4.1.0)
|
49
|
+
diff-lcs (1.5.0)
|
50
|
+
faraday (2.7.2)
|
51
|
+
faraday-net_http (>= 2.0, < 3.1)
|
52
|
+
ruby2_keywords (>= 0.0.4)
|
53
|
+
faraday-net_http (3.0.2)
|
54
|
+
faraday-retry (2.0.0)
|
55
|
+
faraday (~> 2.0)
|
56
|
+
ffi (1.15.5)
|
57
|
+
fileutils (1.7.0)
|
71
58
|
method_source (1.0.0)
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
59
|
+
mime-types (3.4.1)
|
60
|
+
mime-types-data (~> 3.2015)
|
61
|
+
mime-types-data (3.2022.0105)
|
62
|
+
multi_test (1.1.0)
|
76
63
|
netrc (0.11.0)
|
77
|
-
octokit (
|
78
|
-
faraday (>=
|
79
|
-
sawyer (~> 0.
|
80
|
-
|
81
|
-
activesupport (>= 3.2)
|
82
|
-
middleware
|
83
|
-
thor
|
84
|
-
thread_safe
|
85
|
-
pry (0.14.0)
|
64
|
+
octokit (6.0.1)
|
65
|
+
faraday (>= 1, < 3)
|
66
|
+
sawyer (~> 0.9)
|
67
|
+
pry (0.14.1)
|
86
68
|
coderay (~> 1.1)
|
87
69
|
method_source (~> 1.0)
|
88
|
-
public_suffix (
|
89
|
-
rake (13.0.
|
90
|
-
rspec (3.
|
91
|
-
rspec-core (~> 3.
|
92
|
-
rspec-expectations (~> 3.
|
93
|
-
rspec-mocks (~> 3.
|
94
|
-
rspec-core (3.
|
95
|
-
rspec-support (~> 3.
|
96
|
-
rspec-expectations (3.
|
70
|
+
public_suffix (5.0.1)
|
71
|
+
rake (13.0.6)
|
72
|
+
rspec (3.12.0)
|
73
|
+
rspec-core (~> 3.12.0)
|
74
|
+
rspec-expectations (~> 3.12.0)
|
75
|
+
rspec-mocks (~> 3.12.0)
|
76
|
+
rspec-core (3.12.0)
|
77
|
+
rspec-support (~> 3.12.0)
|
78
|
+
rspec-expectations (3.12.1)
|
97
79
|
diff-lcs (>= 1.2.0, < 2.0)
|
98
|
-
rspec-support (~> 3.
|
99
|
-
rspec-mocks (3.
|
80
|
+
rspec-support (~> 3.12.0)
|
81
|
+
rspec-mocks (3.12.1)
|
100
82
|
diff-lcs (>= 1.2.0, < 2.0)
|
101
|
-
rspec-support (~> 3.
|
102
|
-
rspec-support (3.
|
103
|
-
ruby2_keywords (0.0.
|
104
|
-
sawyer (0.
|
83
|
+
rspec-support (~> 3.12.0)
|
84
|
+
rspec-support (3.12.0)
|
85
|
+
ruby2_keywords (0.0.5)
|
86
|
+
sawyer (0.9.2)
|
105
87
|
addressable (>= 2.3.5)
|
106
|
-
faraday (
|
88
|
+
faraday (>= 0.17.3, < 3)
|
107
89
|
sys-uname (1.2.2)
|
108
90
|
ffi (~> 1.1)
|
109
|
-
thor (1.1
|
110
|
-
thread_safe (0.3.6)
|
111
|
-
tzinfo (2.0.4)
|
112
|
-
concurrent-ruby (~> 1.0)
|
113
|
-
zeitwerk (2.4.2)
|
91
|
+
thor (1.2.1)
|
114
92
|
|
115
93
|
PLATFORMS
|
116
94
|
ruby
|
117
|
-
x86_64-darwin-19
|
118
95
|
|
119
96
|
DEPENDENCIES
|
120
|
-
aruba (~> 1
|
121
|
-
bundler (~> 2.
|
122
|
-
cucumber (~>
|
97
|
+
aruba (~> 2.1)
|
98
|
+
bundler (~> 2.1)
|
99
|
+
cucumber (~> 8.0)
|
100
|
+
faraday-retry (~> 2.0)
|
101
|
+
fileutils (~> 1.7)
|
123
102
|
pry (~> 0.14)
|
124
103
|
rake (~> 13.0)
|
125
|
-
rspec (~> 3.
|
104
|
+
rspec (~> 3.12)
|
126
105
|
whatsup_github!
|
127
106
|
|
128
107
|
BUNDLED WITH
|
129
|
-
2.
|
108
|
+
2.1.4
|
data/Rakefile
CHANGED
data/lib/template/.whatsup.yml
CHANGED
@@ -4,7 +4,6 @@ base_branch: master
|
|
4
4
|
# The list of repositories to scan for pull requests
|
5
5
|
repos:
|
6
6
|
- magento/devdocs
|
7
|
-
- magento-commerce/devdocs
|
8
7
|
|
9
8
|
# Labels also will be used as a 'type' value in the output file
|
10
9
|
labels:
|
@@ -19,10 +18,10 @@ output_format:
|
|
19
18
|
- yaml
|
20
19
|
# - markdown
|
21
20
|
|
22
|
-
# The phrase that is used as a separator in the pull request
|
21
|
+
# The phrase that is used as a separator in the pull request description.
|
23
22
|
# All the lines that follows this phrase are captured as 'description' for this PR's entry in the resulted data file.
|
24
23
|
magic_word: whatsnew
|
25
24
|
|
26
25
|
# An organization to check a contributor for membership.
|
27
|
-
# Values: 'true', 'false',
|
28
|
-
membership: magento-commerce
|
26
|
+
# Values: 'true', 'false', empty if not configured.
|
27
|
+
# membership: magento-commerce
|
data/lib/whatsup_github/cli.rb
CHANGED
@@ -2,14 +2,19 @@
|
|
2
2
|
|
3
3
|
require 'thor'
|
4
4
|
require 'whatsup_github/runner'
|
5
|
+
require 'whatsup_github/version'
|
5
6
|
module WhatsupGithub
|
7
|
+
# CLI options
|
6
8
|
class CLI < Thor
|
7
|
-
desc 'since DATE', 'Filters pull requests since the specified date till now.'
|
8
|
-
|
9
|
+
desc 'since DATE', 'Filters pull requests since the specified date till now. Default: last 7 days.'
|
9
10
|
def since(date = Date.today - 7)
|
10
11
|
runner = WhatsupGithub::Runner.new(Date.parse(date.to_s))
|
11
12
|
runner.run
|
12
13
|
end
|
13
|
-
|
14
|
+
|
15
|
+
desc 'version', 'Current version of the gem'
|
16
|
+
def version
|
17
|
+
puts "Current version is #{WhatsupGithub::VERSION}"
|
18
|
+
end
|
14
19
|
end
|
15
20
|
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'singleton'
|
4
|
+
|
5
|
+
# Client authorization
|
6
|
+
module WhatsupGithub
|
7
|
+
# Create a singleton object for Client.
|
8
|
+
# Authorize with a GitHub token from $WHATSUP_GITHUB_ACCESS_TOKEN if available
|
9
|
+
# Otherwise, use credentials from ~/.netrc
|
10
|
+
# Otherwise, continue as a Guest
|
11
|
+
class Client
|
12
|
+
include Singleton
|
13
|
+
|
14
|
+
WHATSUP_GITHUB_ACCESS_TOKEN = ENV['WHATSUP_GITHUB_ACCESS_TOKEN']
|
15
|
+
private_constant :WHATSUP_GITHUB_ACCESS_TOKEN
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@client =
|
19
|
+
if WHATSUP_GITHUB_ACCESS_TOKEN
|
20
|
+
Octokit::Client.new(access_token: WHATSUP_GITHUB_ACCESS_TOKEN)
|
21
|
+
elsif File.exist? "#{ENV['HOME']}/.netrc"
|
22
|
+
Octokit::Client.new(netrc: true)
|
23
|
+
else
|
24
|
+
Octokit::Client.new
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def search_issues(query)
|
29
|
+
@client.search_issues(query)
|
30
|
+
end
|
31
|
+
|
32
|
+
def pull_request(repo, number)
|
33
|
+
@client.pull_request(repo, number)
|
34
|
+
end
|
35
|
+
|
36
|
+
def org_members(org)
|
37
|
+
@client.org_members(org)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/whatsup_github/pulls.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'octokit'
|
4
4
|
require_relative 'config_reader'
|
5
|
+
require_relative 'client'
|
5
6
|
|
6
7
|
module WhatsupGithub
|
7
8
|
# Gets issues found on GitHub by query
|
@@ -51,28 +52,19 @@ module WhatsupGithub
|
|
51
52
|
# Otherwise, use credentials from ~/.netrc
|
52
53
|
# Otherwise, continue as a Guest
|
53
54
|
def client
|
54
|
-
|
55
|
-
|
56
|
-
@client =
|
57
|
-
if ENV['WHATSUP_GITHUB_ACCESS_TOKEN']
|
58
|
-
Octokit::Client.new(access_token: ENV['WHATSUP_GITHUB_ACCESS_TOKEN'])
|
59
|
-
elsif File.exist? "#{ENV['HOME']}/.netrc"
|
60
|
-
Octokit::Client.new(netrc: true)
|
61
|
-
else
|
62
|
-
Octokit::Client.new
|
63
|
-
end
|
55
|
+
Client.instance
|
64
56
|
end
|
65
57
|
|
66
58
|
def search_issues(label)
|
67
59
|
auto_paginate
|
68
|
-
query = "repo:#{repo} label:\"#{label}\" merged:>=#{since} base:#{base_branch}"
|
60
|
+
query = "repo:#{repo} label:\"#{label}\" merged:>=#{since} base:#{base_branch} is:pull-request"
|
69
61
|
puts "Searching on GitHub by query #{query}"
|
70
62
|
client.search_issues(query)
|
71
63
|
end
|
72
64
|
|
73
65
|
def search_issues_with_magic_word(label)
|
74
66
|
auto_paginate
|
75
|
-
query = "repo:#{repo} label:\"#{label}\" merged:>=#{since} base:#{base_branch} \"#{magic_word}\" in:body"
|
67
|
+
query = "repo:#{repo} label:\"#{label}\" merged:>=#{since} base:#{base_branch} \"#{magic_word}\" in:body is:pull-request"
|
76
68
|
puts "Searching on GitHub by query #{query}"
|
77
69
|
client.search_issues(query)
|
78
70
|
end
|
@@ -3,7 +3,6 @@
|
|
3
3
|
require_relative 'row'
|
4
4
|
require_relative 'pulls'
|
5
5
|
require_relative 'config_reader'
|
6
|
-
require_relative 'members'
|
7
6
|
|
8
7
|
module WhatsupGithub
|
9
8
|
# Creates Row objects for the future table
|
@@ -82,7 +81,7 @@ module WhatsupGithub
|
|
82
81
|
def load_members
|
83
82
|
return if @members
|
84
83
|
|
85
|
-
@members =
|
84
|
+
@members = client.org_members(config.membership)
|
86
85
|
end
|
87
86
|
|
88
87
|
def member_logins
|
@@ -93,5 +92,9 @@ module WhatsupGithub
|
|
93
92
|
def config
|
94
93
|
Config.instance
|
95
94
|
end
|
95
|
+
|
96
|
+
def client
|
97
|
+
Client.instance
|
98
|
+
end
|
96
99
|
end
|
97
100
|
end
|
data/whatsup_github.gemspec
CHANGED
@@ -34,16 +34,18 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
35
|
spec.require_paths = ['lib']
|
36
36
|
|
37
|
-
spec.required_ruby_version = '>= 2.
|
37
|
+
spec.required_ruby_version = '>= 2.7.0'
|
38
38
|
|
39
39
|
spec.add_dependency 'netrc', '~> 0.11'
|
40
|
-
spec.add_dependency 'octokit', '~>
|
41
|
-
spec.add_dependency 'thor', '~> 1.
|
40
|
+
spec.add_dependency 'octokit', '~> 6.0'
|
41
|
+
spec.add_dependency 'thor', '~> 1.2'
|
42
42
|
|
43
|
-
spec.add_development_dependency 'aruba', '~> 1
|
44
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
45
|
-
spec.add_development_dependency 'cucumber', '~>
|
43
|
+
spec.add_development_dependency 'aruba', '~> 2.1'
|
44
|
+
spec.add_development_dependency 'bundler', '~> 2.1'
|
45
|
+
spec.add_development_dependency 'cucumber', '~> 8.0'
|
46
46
|
spec.add_development_dependency 'pry', '~> 0.14'
|
47
47
|
spec.add_development_dependency 'rake', '~> 13.0'
|
48
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
48
|
+
spec.add_development_dependency 'rspec', '~> 3.12'
|
49
|
+
spec.add_development_dependency 'fileutils', '~> 1.7'
|
50
|
+
spec.add_development_dependency 'faraday-retry', '~> 2.0'
|
49
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whatsup_github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dima Shevtsov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: netrc
|
@@ -30,70 +30,70 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '6.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '6.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: aruba
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1
|
61
|
+
version: '2.1'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1
|
68
|
+
version: '2.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.1'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
82
|
+
version: '2.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: cucumber
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '8.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '8.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,42 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
131
|
+
version: '3.12'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '3.
|
138
|
+
version: '3.12'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: fileutils
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '1.7'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '1.7'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: faraday-retry
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '2.0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '2.0'
|
139
167
|
description:
|
140
168
|
email:
|
141
169
|
- shevtsov@adobe.com
|
@@ -144,10 +172,12 @@ executables:
|
|
144
172
|
extensions: []
|
145
173
|
extra_rdoc_files: []
|
146
174
|
files:
|
175
|
+
- ".github/linters/.ruby-lint.yml"
|
176
|
+
- ".github/workflows/linter.yml"
|
177
|
+
- ".github/workflows/tests.yml"
|
147
178
|
- ".gitignore"
|
148
179
|
- ".rspec"
|
149
180
|
- ".ruby-version"
|
150
|
-
- ".travis.yml"
|
151
181
|
- CHANGELOG.md
|
152
182
|
- Gemfile
|
153
183
|
- Gemfile.lock
|
@@ -160,9 +190,9 @@ files:
|
|
160
190
|
- lib/template/.whatsup.yml
|
161
191
|
- lib/whatsup_github.rb
|
162
192
|
- lib/whatsup_github/cli.rb
|
193
|
+
- lib/whatsup_github/client.rb
|
163
194
|
- lib/whatsup_github/config_reader.rb
|
164
195
|
- lib/whatsup_github/generator.rb
|
165
|
-
- lib/whatsup_github/members.rb
|
166
196
|
- lib/whatsup_github/pulls.rb
|
167
197
|
- lib/whatsup_github/row.rb
|
168
198
|
- lib/whatsup_github/row_collector.rb
|
@@ -186,14 +216,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
216
|
requirements:
|
187
217
|
- - ">="
|
188
218
|
- !ruby/object:Gem::Version
|
189
|
-
version: 2.
|
219
|
+
version: 2.7.0
|
190
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
221
|
requirements:
|
192
222
|
- - ">="
|
193
223
|
- !ruby/object:Gem::Version
|
194
224
|
version: '0'
|
195
225
|
requirements: []
|
196
|
-
rubygems_version: 3.1.
|
226
|
+
rubygems_version: 3.1.6
|
197
227
|
signing_key:
|
198
228
|
specification_version: 4
|
199
229
|
summary: Collect info from GitHub pull requests.
|
data/.travis.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module WhatsupGithub
|
4
|
-
# Members of an organization
|
5
|
-
class Members
|
6
|
-
def initialize(org)
|
7
|
-
@org = org
|
8
|
-
end
|
9
|
-
|
10
|
-
def client
|
11
|
-
Octokit::Client.new(netrc: true)
|
12
|
-
end
|
13
|
-
|
14
|
-
def members
|
15
|
-
client.org_members @org
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|