github_repo_statistics 2.3.13 → 2.3.14
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/bin/github_repo_statistics +2 -2
- 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: 9d94bc3e40ce62624d26ad71cede3f3f151e84530e6ad27fc278a9234d4e5170
|
4
|
+
data.tar.gz: 146afb708f9b43e455c691393ac791473ad553de997720127ae4afd849227091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53e90a20a15dacb9cd9ed1f1c59619993ad51117c8834321d50f7d80281876847231a2b17a4274a2fe480da7cd8f65342ed5659966c220c070a614ffdd00a656
|
7
|
+
data.tar.gz: af4b349db7fe3ccc130410d08bab08fd4bc9370a4b51cfe1f91af82ca899d829b23cd345e95254a01a96461c7fbbf058f8d5edf13302026730abdb5c2a52a929
|
data/bin/github_repo_statistics
CHANGED
@@ -155,9 +155,8 @@ 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)
|
159
158
|
puts "Feature branch: #{feature_branch}"
|
160
|
-
changed_files = `git diff --name-only
|
159
|
+
changed_files = `git diff --name-only master...origin/#{feature_branch} | grep #{REPO_PATH} | grep '\.swift'`.split
|
161
160
|
puts "Changed files: #{changed_files}"
|
162
161
|
return if changed_files.empty?
|
163
162
|
|
@@ -166,6 +165,7 @@ if options[:hotspot_check]
|
|
166
165
|
puts "branch_hotspot_files = #{branch_hotspot_files}"
|
167
166
|
return if branch_hotspot_files.empty?
|
168
167
|
|
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}"
|