This repository was archived by the owner on Sep 6, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Sometimes it's a README fix, or something like that - which isn't relevant for
2+ # including in a project's CHANGELOG for example
3+ declared_trivial = github . pr_title . include? "#trivial"
4+
5+ # Make it more obvious that a PR is a work in progress and shouldn't be merged yet
6+ warn ( "PR is classed as Work in Progress" ) if github . pr_title . include? "[WIP]"
7+
8+ # Warn when there is a big PR
9+ warn ( "Big PR" ) if git . lines_of_code > 500
10+
11+ # if git.lines_of_code > 3 && !git.modified_files.include?("CHANGELOG.yml")
12+ if !git . modified_files . include? ( "CHANGELOG.yml" ) && !declared_trivial
13+ fail ( "Please include a CHANGELOG entry. \n You can find it at [CHANGELOG.md](https://github.com/SwiftGen/SwiftGen/blob/master/CHANGELOG.md)." )
14+ message "We use the following format for CHANGELOG entries:\n \n " +
15+ '```' + "\n " +
16+ "* Describe your change here. Don't forget to use 2 spaces at the end of the last line describing your change. \n " +
17+ " [#nn](https://github.com/SwiftGen/SwiftGen/pull/nn)"
18+ end
Original file line number Diff line number Diff line change 22source 'https://rubygems.org'
33
44gem 'cocoapods' , '1.2.1'
5+ gem 'danger'
56gem 'xcpretty'
Original file line number Diff line number Diff line change 77 minitest (~> 5.1 )
88 thread_safe (~> 0.3 , >= 0.3.4 )
99 tzinfo (~> 1.1 )
10+ addressable (2.5.1 )
11+ public_suffix (~> 2.0 , >= 2.0.2 )
1012 claide (1.0.1 )
13+ claide-plugins (0.9.2 )
14+ cork
15+ nap
16+ open4 (~> 1.3 )
1117 cocoapods (1.2.1 )
1218 activesupport (>= 4.0.2 , < 5 )
1319 claide (>= 1.0.1 , < 2.0 )
4248 netrc (= 0.7.8 )
4349 cocoapods-try (1.1.0 )
4450 colored2 (3.1.2 )
51+ cork (0.3.0 )
52+ colored2 (~> 3.1 )
53+ danger (5.1.0 )
54+ claide (~> 1.0 )
55+ claide-plugins (>= 0.9.2 )
56+ colored2 (~> 3.1 )
57+ cork (~> 0.1 )
58+ faraday (~> 0.9 )
59+ faraday-http-cache (~> 1.0 )
60+ git (~> 1 )
61+ kramdown (~> 1.5 )
62+ octokit (~> 4.2 )
63+ terminal-table (~> 1 )
4564 escape (0.0.4 )
65+ faraday (0.12.1 )
66+ multipart-post (>= 1.2 , < 3 )
67+ faraday-http-cache (1.3.1 )
68+ faraday (~> 0.8 )
4669 fourflusher (2.0.1 )
4770 fuzzy_match (2.0.4 )
4871 gh_inspector (1.0.3 )
72+ git (1.3.0 )
4973 i18n (0.8.1 )
74+ kramdown (1.13.2 )
5075 minitest (5.10.1 )
5176 molinillo (0.5.7 )
77+ multipart-post (2.0.0 )
5278 nanaimo (0.2.3 )
5379 nap (1.1.0 )
5480 netrc (0.7.8 )
81+ octokit (4.7.0 )
82+ sawyer (~> 0.8.0 , >= 0.5.3 )
83+ open4 (1.3.4 )
84+ public_suffix (2.0.5 )
5585 rouge (1.11.1 )
5686 ruby-macho (1.1.0 )
87+ sawyer (0.8.1 )
88+ addressable (>= 2.3.5 , < 2.6 )
89+ faraday (~> 0.8 , < 1.0 )
90+ terminal-table (1.7.3 )
91+ unicode-display_width (~> 1.1.1 )
5792 thread_safe (0.3.6 )
5893 tzinfo (1.2.3 )
5994 thread_safe (~> 0.1 )
95+ unicode-display_width (1.1.3 )
6096 xcodeproj (1.4.4 )
6197 CFPropertyList (~> 2.3.3 )
6298 claide (>= 1.0.1 , < 2.0 )
@@ -70,6 +106,7 @@ PLATFORMS
70106
71107DEPENDENCIES
72108 cocoapods (= 1.2.1 )
109+ danger
73110 xcpretty
74111
75112BUNDLED WITH
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ dependencies:
77 - rake lint:install
88
99test :
10+ pre :
11+ - bundle exec danger
1012 override :
1113 - rake lint:tests
1214 - rake xcode:test
You can’t perform that action at this time.
0 commit comments