File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Sometimes it's a README fix, or something like that - which isn't relevant for
4
4
# 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" )
6
6
7
7
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
8
8
warn ( "PR is classed as Work in Progress" ) if pr_title . include? "[WIP]"
9
9
10
10
# Warn when there is a big PR
11
11
warn ( "Big PR" ) if lines_of_code > 500
12
12
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
16
15
17
16
# Add a CHANGELOG entry for app changes
18
17
if git . lines_of_code > 50 && !github . modified_files . include? ( "CHANGELOG.md" ) && !declared_trivial
19
18
fail ( "Please update [CHANGELOG.md](https://github.com/polydice/iCook-tvOS/blob/develop/CHANGELOG.md)." )
20
19
end
21
20
22
21
# 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/ }
24
23
fail ( 'Please rebase to get rid of the merge commits in this PR' )
25
24
end
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ ruby "2.3.1"
3
3
4
4
gem "cocoapods" , "~> 1.1.0"
5
5
gem "cocoapods-keys"
6
- gem "danger" , "~> 0.10 .0"
6
+ gem "danger" , "~> 4.0 .0"
7
7
gem "scan"
8
8
gem "slather"
Original file line number Diff line number Diff line change 14
14
addressable (2.4.0 )
15
15
babosa (1.0.2 )
16
16
claide (1.0.1 )
17
- claide-plugins (0.9.1 )
17
+ claide-plugins (0.9.2 )
18
18
cork
19
19
nap
20
20
open4 (~> 1.3 )
64
64
commander (>= 4.3.5 )
65
65
highline (>= 1.7.1 )
66
66
security
67
- danger (0.10.1 )
67
+ danger (4.0.0 )
68
68
claide (~> 1.0 )
69
- claide-plugins (~> 0.9 )
69
+ claide-plugins (>= 0.9.2 )
70
70
colored (~> 1.2 )
71
71
cork (~> 0.1 )
72
- faraday (~> 0 )
72
+ faraday (~> 0.9 )
73
73
faraday-http-cache (~> 1.0 )
74
74
git (~> 1 )
75
+ kramdown (~> 1.5 )
75
76
octokit (~> 4.2 )
76
- redcarpet (~> 3.3 )
77
77
terminal-table (~> 1 )
78
78
dotenv (2.1.1 )
79
79
escape (0.0.4 )
102
102
highline (1.7.8 )
103
103
i18n (0.7.0 )
104
104
json (1.8.3 )
105
+ kramdown (1.12.0 )
105
106
mini_portile2 (2.1.0 )
106
107
minitest (5.9.1 )
107
108
molinillo (0.5.2 )
@@ -112,13 +113,12 @@ GEM
112
113
netrc (0.7.8 )
113
114
nokogiri (1.6.8.1 )
114
115
mini_portile2 (~> 2.1.0 )
115
- octokit (4.3.0 )
116
+ octokit (4.4.1 )
116
117
sawyer (~> 0.7.0 , >= 0.5.3 )
117
118
open4 (1.3.4 )
118
119
osx_keychain (1.0.1 )
119
120
RubyInline (~> 3 )
120
121
plist (3.2.0 )
121
- redcarpet (3.3.4 )
122
122
rouge (1.11.1 )
123
123
rubyzip (1.1.7 )
124
124
sawyer (0.7.0 )
@@ -160,7 +160,7 @@ PLATFORMS
160
160
DEPENDENCIES
161
161
cocoapods (~> 1.1.0 )
162
162
cocoapods-keys
163
- danger (~> 0.10 .0 )
163
+ danger (~> 4.0 .0 )
164
164
scan
165
165
slather
166
166
You can’t perform that action at this time.
0 commit comments