Skip to content

Commit 4b302f4

Browse files
authored
Adds Danger to CI (Instabug#12)
Adds Danger to automate various checks for PRs. Starting with just a rule to make sure PRs have a summary of changes.
1 parent 7371c61 commit 4b302f4

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ jobs:
66
- image: cirrusci/flutter
77
steps:
88
- checkout
9+
- run: bundle check || sudo bundle install
10+
- run: bundle exec danger
911
- run: flutter doctor
1012
- run: pub get
1113
- run: dartanalyzer --options analysis_options.yaml lib

Dangerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Make sure PR has a description.
2+
if github.pr_body.length < 3 && git.lines_of_code > 10
3+
fail "Please provide a summary of the changes in the pull request description."
4+
end

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
git_source(:github) {|repo_name| "https://github.com/Instabug/Instabug-Flutter/" }
6+
7+
gem 'danger'

Gemfile.lock

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.5.2)
5+
public_suffix (>= 2.0.2, < 4.0)
6+
claide (1.0.2)
7+
claide-plugins (0.9.2)
8+
cork
9+
nap
10+
open4 (~> 1.3)
11+
colored2 (3.1.2)
12+
cork (0.3.0)
13+
colored2 (~> 3.1)
14+
danger (5.16.1)
15+
claide (~> 1.0)
16+
claide-plugins (>= 0.9.2)
17+
colored2 (~> 3.1)
18+
cork (~> 0.1)
19+
faraday (~> 0.9)
20+
faraday-http-cache (~> 1.0)
21+
git (~> 1.5)
22+
kramdown (~> 1.5)
23+
no_proxy_fix
24+
octokit (~> 4.7)
25+
terminal-table (~> 1)
26+
faraday (0.15.4)
27+
multipart-post (>= 1.2, < 3)
28+
faraday-http-cache (1.3.1)
29+
faraday (~> 0.8)
30+
git (1.5.0)
31+
kramdown (1.17.0)
32+
multipart-post (2.0.0)
33+
nap (1.1.0)
34+
no_proxy_fix (0.1.2)
35+
octokit (4.13.0)
36+
sawyer (~> 0.8.0, >= 0.5.3)
37+
open4 (1.3.4)
38+
public_suffix (3.0.3)
39+
sawyer (0.8.1)
40+
addressable (>= 2.3.5, < 2.6)
41+
faraday (~> 0.8, < 1.0)
42+
terminal-table (1.8.0)
43+
unicode-display_width (~> 1.1, >= 1.1.1)
44+
unicode-display_width (1.5.0)
45+
46+
PLATFORMS
47+
ruby
48+
49+
DEPENDENCIES
50+
danger
51+
52+
BUNDLED WITH
53+
1.16.1

0 commit comments

Comments
 (0)