Skip to content

Commit d6339e4

Browse files
committed
Update the syntax to danger (4.0.1)
1 parent de83c24 commit d6339e4

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

Dangerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
# Sometimes it's a README fix, or something like that - which isn't relevant for
44
# including in a project's CHANGELOG for example
5-
declared_trivial = (github.pr_title + github.pr_body).include?("#trivial")
5+
declared_trivial = (github.pr_title + github.pr_body).include? "#trivial"
66

77
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
8-
warn("PR is classed as Work in Progress") if pr_title.include? "[WIP]"
8+
warn "PR is classed as Work in Progress" if github.pr_title.include? "[WIP]"
99

1010
# Warn when there is a big PR
11-
warn("Big PR") if lines_of_code > 500
11+
warn "Big PR" if git.lines_of_code > 500
1212

1313
# Ensure there is a summary for a PR
1414
fail "Please provide a summary in the Pull Request description" if github.pr_body.length < 5
1515

1616
# Add a CHANGELOG entry for app changes
17-
if git.lines_of_code > 50 && !github.modified_files.include?("CHANGELOG.md") && !declared_trivial
18-
fail("Please update [CHANGELOG.md](https://github.com/polydice/iCook-tvOS/blob/develop/CHANGELOG.md).")
17+
if git.lines_of_code > 50 && !git.modified_files.include?("CHANGELOG.md") && !declared_trivial
18+
fail "Please update [CHANGELOG.md](https://github.com/polydice/iCook-tvOS/blob/develop/CHANGELOG.md).", sticky: true
1919
end
2020

2121
# Ensure a clean commits history
2222
if git.commits.any? { |c| c.message =~ /^Merge branch/ }
23-
fail('Please rebase to get rid of the merge commits in this PR')
23+
fail "Please rebase to get rid of the merge commits in this PR", sticky: true
2424
end

Gemfile.lock

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: http://rubygems.org/
33
specs:
4-
CFPropertyList (2.3.3)
4+
CFPropertyList (2.3.4)
55
RubyInline (3.12.4)
66
ZenTest (~> 4.3)
77
ZenTest (4.11.1)
@@ -12,7 +12,6 @@ GEM
1212
thread_safe (~> 0.3, >= 0.3.4)
1313
tzinfo (~> 1.1)
1414
addressable (2.4.0)
15-
babosa (1.0.2)
1615
claide (1.0.1)
1716
claide-plugins (0.9.2)
1817
cork
@@ -64,7 +63,7 @@ GEM
6463
commander (>= 4.3.5)
6564
highline (>= 1.7.1)
6665
security
67-
danger (4.0.0)
66+
danger (4.0.1)
6867
claide (~> 1.0)
6968
claide-plugins (>= 0.9.2)
7069
colored (~> 1.2)
@@ -82,8 +81,7 @@ GEM
8281
multipart-post (>= 1.2, < 3)
8382
faraday-http-cache (1.3.1)
8483
faraday (~> 0.8)
85-
fastlane_core (0.53.0)
86-
babosa
84+
fastlane_core (0.57.2)
8785
colored
8886
commander (>= 4.4.0, <= 5.0.0)
8987
credentials_manager (>= 0.16.2, < 1.0.0)
@@ -102,13 +100,13 @@ GEM
102100
highline (1.7.8)
103101
i18n (0.7.0)
104102
json (1.8.3)
105-
kramdown (1.12.0)
103+
kramdown (1.13.1)
106104
mini_portile2 (2.1.0)
107-
minitest (5.9.1)
108-
molinillo (0.5.2)
105+
minitest (5.10.1)
106+
molinillo (0.5.4)
109107
multi_json (1.12.1)
110108
multipart-post (2.0.0)
111-
nanaimo (0.2.2)
109+
nanaimo (0.2.3)
112110
nap (1.1.0)
113111
netrc (0.7.8)
114112
nokogiri (1.6.8.1)
@@ -124,8 +122,8 @@ GEM
124122
sawyer (0.7.0)
125123
addressable (>= 2.3.5, < 2.5)
126124
faraday (~> 0.8, < 0.10)
127-
scan (0.14.1)
128-
fastlane_core (>= 0.53.0, < 1.0.0)
125+
scan (0.14.2)
126+
fastlane_core (>= 0.57.0, < 1.0.0)
129127
slack-notifier (~> 1.3)
130128
terminal-table (>= 1.4.5, < 2.0.0)
131129
xcpretty (>= 0.2.4, < 1.0.0)

0 commit comments

Comments
 (0)