Skip to content

Commit f9eaf8f

Browse files
committed
Update danger (4.0.0)
1 parent eed952a commit f9eaf8f

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

Dangerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +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 = pr_title.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
88
warn("PR is classed as Work in Progress") if pr_title.include? "[WIP]"
99

1010
# Warn when there is a big PR
1111
warn("Big PR") if lines_of_code > 500
1212

13-
# Don't let testing shortcuts get into master by accident
14-
fail("fdescribe left in tests") if `grep -r fdescribe specs/`.length > 1
15-
fail("fit left in tests") if `grep -r "fit specs/ `.length > 1
13+
# Ensure there is a summary for a PR
14+
fail "Please provide a summary in the Pull Request description" if github.pr_body.length < 5
1615

1716
# Add a CHANGELOG entry for app changes
1817
if git.lines_of_code > 50 && !github.modified_files.include?("CHANGELOG.md") && !declared_trivial
1918
fail("Please update [CHANGELOG.md](https://github.com/polydice/iCook-tvOS/blob/develop/CHANGELOG.md).")
2019
end
2120

2221
# Ensure a clean commits history
23-
if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}'/ }
22+
if git.commits.any? { |c| c.message =~ /^Merge branch/ }
2423
fail('Please rebase to get rid of the merge commits in this PR')
2524
end

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ ruby "2.3.1"
33

44
gem "cocoapods", "~> 1.1.0"
55
gem "cocoapods-keys"
6-
gem "danger", "~> 0.10.0"
6+
gem "danger", "~> 4.0.0"
77
gem "scan"
88
gem "slather"

Gemfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GEM
1414
addressable (2.4.0)
1515
babosa (1.0.2)
1616
claide (1.0.1)
17-
claide-plugins (0.9.1)
17+
claide-plugins (0.9.2)
1818
cork
1919
nap
2020
open4 (~> 1.3)
@@ -64,16 +64,16 @@ GEM
6464
commander (>= 4.3.5)
6565
highline (>= 1.7.1)
6666
security
67-
danger (0.10.1)
67+
danger (4.0.0)
6868
claide (~> 1.0)
69-
claide-plugins (~> 0.9)
69+
claide-plugins (>= 0.9.2)
7070
colored (~> 1.2)
7171
cork (~> 0.1)
72-
faraday (~> 0)
72+
faraday (~> 0.9)
7373
faraday-http-cache (~> 1.0)
7474
git (~> 1)
75+
kramdown (~> 1.5)
7576
octokit (~> 4.2)
76-
redcarpet (~> 3.3)
7777
terminal-table (~> 1)
7878
dotenv (2.1.1)
7979
escape (0.0.4)
@@ -102,6 +102,7 @@ GEM
102102
highline (1.7.8)
103103
i18n (0.7.0)
104104
json (1.8.3)
105+
kramdown (1.12.0)
105106
mini_portile2 (2.1.0)
106107
minitest (5.9.1)
107108
molinillo (0.5.2)
@@ -112,13 +113,12 @@ GEM
112113
netrc (0.7.8)
113114
nokogiri (1.6.8.1)
114115
mini_portile2 (~> 2.1.0)
115-
octokit (4.3.0)
116+
octokit (4.4.1)
116117
sawyer (~> 0.7.0, >= 0.5.3)
117118
open4 (1.3.4)
118119
osx_keychain (1.0.1)
119120
RubyInline (~> 3)
120121
plist (3.2.0)
121-
redcarpet (3.3.4)
122122
rouge (1.11.1)
123123
rubyzip (1.1.7)
124124
sawyer (0.7.0)
@@ -160,7 +160,7 @@ PLATFORMS
160160
DEPENDENCIES
161161
cocoapods (~> 1.1.0)
162162
cocoapods-keys
163-
danger (~> 0.10.0)
163+
danger (~> 4.0.0)
164164
scan
165165
slather
166166

0 commit comments

Comments
 (0)