fastlane-plugin-snapshot_test 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/snapshot_test/actions/compatibility/screenshot_notifier.rb +1 -1
- data/lib/fastlane/plugin/snapshot_test/actions/regression/compare_snapshot.rb +12 -12
- data/lib/fastlane/plugin/snapshot_test/helper/github_notifier.rb +2 -2
- data/lib/fastlane/plugin/snapshot_test/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: 2c05b3cc9f0d681b8e5ac9d13982dca4e3f0f4227a44be5a6b21d532c32412cb
|
4
|
+
data.tar.gz: 988a8014c34e4624161b781c3c2fe9e054d5378404519a8378223a9ab762c316
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de68b1a4123792f429600089dc197d4df924922fd2f4a8fdfd17b664192394de7701bdb25bd7880d14d316291627b6454d224cdc0109c38489dd3d62c60d8f90
|
7
|
+
data.tar.gz: b17bb178acd595ed155b253d4d10e24785aa84fd0dcbb438fd978268ae2df5ceaecaf7ddbd27594d79f4d0443dee5f5f4139544761dd3842803359555c9b7aad
|
@@ -50,14 +50,14 @@ module Fastlane
|
|
50
50
|
commit_hash = Helper.get_current_commit_hash
|
51
51
|
|
52
52
|
message = <<~EOS
|
53
|
-
|
54
|
-
|
53
|
+
## Snapshot Test Result
|
54
|
+
Commit Hash: #{commit_hash}
|
55
55
|
|
56
|
-
|
56
|
+
#{summary_table(result[:new_items], result[:deleted_items], result[:changed_items], result[:passed_items])}
|
57
57
|
|
58
|
-
|
58
|
+
#{changed_items_table(result[:changed_items], bucket, commit_hash, params[:working_dir], params[:image_length])}
|
59
59
|
|
60
|
-
|
60
|
+
#{new_items_table(result[:new_items], bucket, commit_hash, params[:working_dir], params[:image_length])}
|
61
61
|
|
62
62
|
#{deleted_items_list(result[:deleted_items])}
|
63
63
|
EOS
|
@@ -81,13 +81,13 @@ module Fastlane
|
|
81
81
|
|
82
82
|
def self.summary_table(new_items, deleted_items, changed_items, passed_items)
|
83
83
|
<<~EOS
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
84
|
+
### Summary
|
85
|
+
| | Count |
|
86
|
+
| --- | --- |
|
87
|
+
| New Screenshots | #{new_items.size} |
|
88
|
+
| Deleted Screenshots | #{deleted_items.size} |
|
89
|
+
| Changed Screenshots | #{changed_items.size} |
|
90
|
+
| Passed Screenshots | #{passed_items.size} |
|
91
91
|
EOS
|
92
92
|
end
|
93
93
|
|
@@ -10,7 +10,7 @@ module Fastlane
|
|
10
10
|
JSON.parse(res.body)
|
11
11
|
.select { |comment| comment["body"] != nil && comment["body"].start_with?(comment_prefix) }
|
12
12
|
.each { |comment|
|
13
|
-
body = "<details><summary>#{summary}</summary>\n#{comment["body"]}\n\n</details>\n"
|
13
|
+
body = "<details><summary>#{summary}</summary>\n\n#{comment["body"]}\n\n</details>\n"
|
14
14
|
patch_comment(github_owner, github_repository, comment["id"], body, github_api_token)
|
15
15
|
}
|
16
16
|
end
|
@@ -84,4 +84,4 @@ module Fastlane
|
|
84
84
|
res
|
85
85
|
end
|
86
86
|
end
|
87
|
-
end
|
87
|
+
end
|