github_repo_statistics 2.3.12 → 2.3.13
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/Gemfile.lock +1 -1
- data/bin/github_repo_statistics +2 -3
- data/lib/github_repo_statistics/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d7a3d6beade66d65ab5b6cb336ff19d33979c24a8df10890c4bae0d8ea0a528
|
4
|
+
data.tar.gz: 44a3d382315b612416f19810aac7a2629a552a6ad492d1cf3632e4c792204856
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1d6d87658337a9df4d085931122e3343ab98f0e016369c618e4118e1e7647f1d99f9d3b9a919ccbbde190794a89ca2d2e2b528c1154dd8d8057998cb068afca
|
7
|
+
data.tar.gz: 5f0e1064c26e65c390042740c8db42938042a3317107fe51a9ed49209a2005741f6cf78662d23489538317ea8fe9614d264b66d61e77a8ee12d7cf8ed0375dd0
|
data/Gemfile.lock
CHANGED
data/bin/github_repo_statistics
CHANGED
@@ -155,8 +155,9 @@ end
|
|
155
155
|
|
156
156
|
if options[:hotspot_check]
|
157
157
|
feature_branch = `git rev-parse --abbrev-ref HEAD`.chomp
|
158
|
+
system("git checkout #{DEFAULT_BRANCH}", [:out] => File::NULL)
|
158
159
|
puts "Feature branch: #{feature_branch}"
|
159
|
-
changed_files = `git diff --name-only
|
160
|
+
changed_files = `git diff --name-only #{DEFAULT_BRANCH}...origin/#{feature_branch} | grep #{REPO_PATH} | grep '\.swift'`.split
|
160
161
|
puts "Changed files: #{changed_files}"
|
161
162
|
return if changed_files.empty?
|
162
163
|
|
@@ -165,11 +166,9 @@ if options[:hotspot_check]
|
|
165
166
|
puts "branch_hotspot_files = #{branch_hotspot_files}"
|
166
167
|
return if branch_hotspot_files.empty?
|
167
168
|
|
168
|
-
system("git checkout #{DEFAULT_BRANCH}", [:out] => File::NULL)
|
169
169
|
master_hotspot_files = GithubRepoStatistics.new(duration_in_days: options[:duration_in_days] || 30, directory_path: REPO_PATH,
|
170
170
|
begin_time: DateTime.now, steps: options[:steps].to_i, debug: options[:debug]).hotspot_check(files: branch_hotspot_files, branch: DEFAULT_BRANCH)
|
171
171
|
puts "master_hotspot_files = #{master_hotspot_files}"
|
172
|
-
system('git pull', %i[out err] => File::NULL)
|
173
172
|
|
174
173
|
raise 'New hotspot was introduced, contact foundation to unblock the PR' if branch_hotspot_files.count > master_hotspot_files.count
|
175
174
|
else
|