git_ownership_insights 1.0.7 → 1.0.9
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7975c52466ff8152129983834939960192795ed43b63dc99e930d687cc8913f
|
4
|
+
data.tar.gz: b7ab381e8916c57a5d942a9efbeea6a58563bc811bc868fb548b79dcd1a9889d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cff237852117440dfead023b6e403cce0b0b78c83713fa73318d7c5c695ccd1d83aabe7310bd0534c9a79d8c827635cb31f4845a502d0a155837821a5ed7926
|
7
|
+
data.tar.gz: 99185e95efb4e6d7316cdacd30270306be94caf3a2afa58af864acf4b6ccc95634c9b73937053a7747f77559915a26213c15829629e7a83ffc4f27677cbe9afe
|
@@ -62,7 +62,7 @@ module GitOwnershipInsights
|
|
62
62
|
count += 1 if lines_count > size
|
63
63
|
end
|
64
64
|
|
65
|
-
puts "
|
65
|
+
puts " *Total number of code files longer than #{size} lines:* #{count}"
|
66
66
|
end
|
67
67
|
|
68
68
|
def self.count_hotspot_lines(files)
|
@@ -82,7 +82,7 @@ module GitOwnershipInsights
|
|
82
82
|
count += lines_count
|
83
83
|
end
|
84
84
|
|
85
|
-
puts "
|
85
|
+
puts " *Total lines of hotspot code:* #{count}"
|
86
86
|
end
|
87
87
|
|
88
88
|
def self.contribution_message(directory_path:, duration_in_days:, begin_time:, debug: nil, steps: nil)
|
@@ -155,19 +155,19 @@ module GitOwnershipInsights
|
|
155
155
|
filtered_top_touched_files = filtered_files.sort_by { |element, count| [-count.last, element] }
|
156
156
|
|
157
157
|
puts ""
|
158
|
-
puts "Timeframe
|
159
|
-
puts "
|
160
|
-
puts "
|
161
|
-
puts "
|
162
|
-
puts "
|
163
|
-
puts "
|
158
|
+
puts "*Timeframe:* #{(begin_time - duration_in_days).strftime('%Y-%m-%d')} to #{begin_time.strftime('%Y-%m-%d')}"
|
159
|
+
puts " *Hotspot Code Changes:* #{churn_count} (#{hotspot_changes_percentage.round(2)}%)"
|
160
|
+
puts " *Cross-Squad Dependency:*"
|
161
|
+
puts " *Contributions by multiple squads to the same files:* #{cross_teams_count}"
|
162
|
+
puts " *Contributions by single squads contributing to single files:* #{single_ownership_teams_count}"
|
163
|
+
puts " *Files exceeding #{BIG_FILE_SIZE} lines with multiple contributors:* #{filtered_top_touched_files.count}"
|
164
164
|
count_hotspot_lines(filtered_files.keys)
|
165
165
|
count_big_files(directory_path)
|
166
|
-
puts "
|
167
|
-
puts "
|
168
|
-
puts "
|
169
|
-
puts "
|
170
|
-
puts "
|
166
|
+
puts " *Code files with a single contributor:* #{(100 - ((files_changed_by_many_teams.to_f / code_files_with_changes.count) * 100)).round(2)}%"
|
167
|
+
puts " *Total amount of code changes:* #{total_changes}"
|
168
|
+
puts " *Total files changed:* #{code_files_with_changes.count}"
|
169
|
+
puts " *Total files in the folder:* #{file_count}"
|
170
|
+
puts " *Contributors:* #{contributors}"
|
171
171
|
|
172
172
|
if HOTSPOT
|
173
173
|
puts "\n"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_ownership_insights
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serghei Moret
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: date
|