git-reviewer 0.7.0 → 0.8.0
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/README.md +2 -0
- data/lib/gitreviewer/analyze/analyzer.rb +5 -1
- data/lib/gitreviewer/option/analyze_option.rb +1 -1
- data/lib/gitreviewer/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: d8591466df9e2c91bec2bd58ad020bd25b8e6c173cab87224a90e393589be979
|
|
4
|
+
data.tar.gz: f774101ec57f4d21bc73dabef64523d3ff6363f11f5e2ca3e9542f2c55758429
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee1dda2c0c91704c32bf9abf6de0c55bab6b084531c0399d15820d0a8a693df986ec9fa9f40cc7014975b7ce8b5327ddb20da0a6a15d3059586f91e8e7276226
|
|
7
|
+
data.tar.gz: b86f5c2dd2f5e6370fa9974399c94599bd1b970fa0472d6d6c8da14c8b2652798777088bbbb2f26eb0b403222140ce0b7bce4907bf8dbfee8b8a6c8d8809ca25
|
data/README.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|

|
|
7
7
|

|
|
8
8
|
|
|
9
|
+
[简体中文](README-zh.md)
|
|
10
|
+
|
|
9
11
|
Git Reviewer is a git plugin that solves a common problem in team collaborative development: **Who should review the code changes?**
|
|
10
12
|
|
|
11
13
|
## Core Feature
|
|
@@ -131,11 +131,15 @@ module GitReviewer
|
|
|
131
131
|
if ldiff.operation == DiffLine::DELETE
|
|
132
132
|
# 删除类型,记录为原始作者
|
|
133
133
|
author = ldiff.source_line.user
|
|
134
|
-
|
|
134
|
+
elsif ldiff.operation == DiffLine::ADD
|
|
135
135
|
# 新增类型,记录为最新作者
|
|
136
136
|
author = ldiff.target_line.user
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
+
if author.empty?
|
|
140
|
+
return
|
|
141
|
+
end
|
|
142
|
+
|
|
139
143
|
item = @author_results[author]
|
|
140
144
|
if item == nil
|
|
141
145
|
item = ResultItem.new(author)
|
|
@@ -73,7 +73,7 @@ module GitReviewer
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
table = Terminal::Table.new do |t|
|
|
76
|
-
t.title = "Suggested reviewers for code changes
|
|
76
|
+
t.title = "Suggested reviewers for code changes"
|
|
77
77
|
t.headings = ["Suggested Reviewer", "File Count", "File Ratio", "Line Count", "Line Ratio"]
|
|
78
78
|
t.rows = output_rows
|
|
79
79
|
end
|
data/lib/gitreviewer/version.rb
CHANGED