Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Danger support #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Sometimes it's a README fix, or something like that - which isn't relevant for
# including in a project's CHANGELOG for example
declared_trivial = github.pr_title.include? "#trivial"

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

# Warn when there is a big PR
warn("Big PR") if git.lines_of_code > 500

# Don't let testing shortcuts get into master by accident
#fail("fdescribe left in tests") if `grep -r fdescribe specs/ `.length > 1
#fail("fit left in tests") if `grep -r fit specs/ `.length > 1
7 changes: 4 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# A sample Gemfile
source 'https://rubygems.org'

gem 'danger'
gem 'pry'
gem 'rake'
gem 'rubocop'
gem 'rspec'
gem 'serverspec'
gem 'pry'
gem 'rubocop'
gem 'ruby-progressbar'
gem 'serverspec'
39 changes: 39 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,55 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.0)
public_suffix (~> 2.0, >= 2.0.2)
ast (2.3.0)
claide (1.0.1)
claide-plugins (0.9.2)
cork
nap
open4 (~> 1.3)
coderay (1.1.1)
colored (1.2)
cork (0.2.0)
colored (~> 1.2)
danger (4.0.3)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored (~> 1.2)
cork (~> 0.1)
faraday (~> 0.9)
faraday-http-cache (~> 1.0)
git (~> 1)
kramdown (~> 1.5)
octokit (~> 4.2)
terminal-table (~> 1)
diff-lcs (1.2.5)
faraday (0.10.0)
multipart-post (>= 1.2, < 3)
faraday-http-cache (1.3.1)
faraday (~> 0.8)
git (1.3.0)
kramdown (1.13.1)
method_source (0.8.2)
multi_json (1.12.1)
multipart-post (2.0.0)
nap (1.1.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (3.2.0)
net-telnet (0.1.1)
octokit (4.6.2)
sawyer (~> 0.8.0, >= 0.5.3)
open4 (1.3.4)
parser (2.3.1.2)
ast (~> 2.2)
powerpack (0.1.1)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
public_suffix (2.0.4)
rainbow (2.1.0)
rake (11.2.2)
rspec (3.5.0)
Expand All @@ -42,6 +75,9 @@ GEM
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
serverspec (2.36.0)
multi_json
rspec (~> 3.0)
Expand All @@ -54,13 +90,16 @@ GEM
net-ssh (>= 2.7, < 4.0)
net-telnet
sfl
terminal-table (1.7.0)
unicode-display_width (~> 1.1)
unicode-display_width (1.1.0)

PLATFORMS
ruby
x64-mingw32

DEPENDENCIES
danger
pry
rake
rspec
Expand Down