thefuntasty_danger 0.9.3 → 0.9.5
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/Dangerfile +20 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95bf88f352be0bbdc587adb1e097273f7f70004356163af2d7ecca0f73b79a50
|
|
4
|
+
data.tar.gz: 4341b85f5fa56210120eb16647a5dee63b6e268db2618a161b206179380fe5d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80af518ba01ce09677daf1398788b49d6e8b3324e5758a21f927b353a89e914e1dfbfce4f293e719ccaba841db3f0ec180998ebb62762406dbd28bf9c1852dad
|
|
7
|
+
data.tar.gz: 4f65252c59cc6fc01e6a0ba7fee5dc23408c71150a32acbe579cb65e32f4b9736602ece88af2f770d68fc7c29e0ec7d00916f2d95c707f4a425e38e28dbb06e7
|
data/Dangerfile
CHANGED
|
@@ -16,7 +16,21 @@ branch_contains_jira_id = github.branch_for_head.match(branch_name_pattern)
|
|
|
16
16
|
title_contains_jira_id = github.pr_title.match(pr_title_pattern)
|
|
17
17
|
|
|
18
18
|
is_pr_wip = github.pr_title.include? "[WIP]"
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
# Count insertions excluding assets
|
|
21
|
+
asset_extensions = ['.png', '.jpg', '.jpeg', '.gif', '.svg', '.pdf', '.mov', '.mp4', '.zip', '.ipa', '.dSYM']
|
|
22
|
+
asset_bundle_dirs = ['.imageset', '.appiconset', '.colorset', '.dataset', '.launchimage', '.brandassets']
|
|
23
|
+
|
|
24
|
+
# Filter out asset files and JSON files in asset bundles
|
|
25
|
+
code_files = git.modified_files.reject do |file|
|
|
26
|
+
# Exclude files with asset extensions
|
|
27
|
+
asset_extensions.any? { |ext| file.end_with?(ext) } ||
|
|
28
|
+
# Exclude JSON files in asset bundle directories
|
|
29
|
+
(file.end_with?('.json') && asset_bundle_dirs.any? { |dir| file.include?("/#{dir}/") })
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
code_insertions = code_files.sum { |file| git.diff_for_file(file).insertions } rescue 0
|
|
33
|
+
is_pr_big = code_insertions > max_pr_length
|
|
20
34
|
|
|
21
35
|
# Do not show out of range issues, not caused by the current PR
|
|
22
36
|
github.dismiss_out_of_range_messages
|
|
@@ -52,7 +66,11 @@ xcresult_file = Dir["fastlane/test_output/*.xcresult"].first
|
|
|
52
66
|
if !xcresult_file.nil? then
|
|
53
67
|
xcode_summary.ignored_files = 'Pods/**'
|
|
54
68
|
xcode_summary.inline_mode = true
|
|
55
|
-
|
|
69
|
+
begin
|
|
70
|
+
xcode_summary.report xcresult_file if File.exist?(xcresult_file)
|
|
71
|
+
rescue => e
|
|
72
|
+
puts "⚠️ Skipping xcresult report: #{e.message}"
|
|
73
|
+
end
|
|
56
74
|
end
|
|
57
75
|
|
|
58
76
|
# Warn about documenting dependency changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thefuntasty_danger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matěj Kašpar Jirásek
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|