Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit cc29a13

Browse files
authored
Add Dangermattic configuration (#730)
2 parents 784ec76 + e368ee0 commit cc29a13

File tree

4 files changed

+98
-7
lines changed

4 files changed

+98
-7
lines changed

.github/workflows/run-danger.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: ☢️ Danger
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, ready_for_review, synchronize]
6+
7+
jobs:
8+
dangermattic:
9+
# runs on draft PRs only for opened / synchronize events
10+
uses: Automattic/dangermattic/.github/workflows/[email protected]
11+
secrets:
12+
github-token: ${{ secrets.DANGERMATTIC_GITHUB_TOKEN }}

Dangerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
3+
github.dismiss_out_of_range_messages
4+
5+
# `files: []` forces rubocop to scan all files, not just the ones modified in the PR
6+
rubocop.lint(files: [], force_exclusion: true, inline_comment: true, fail_on_inline_comment: true, include_cop_names: true)
7+
8+
manifest_pr_checker.check_all_manifest_lock_updated
9+
10+
podfile_checker.check_podfile_does_not_have_branch_references
11+
12+
pr_size_checker.check_diff_size(
13+
max_size: 300,
14+
type: :insertions
15+
)

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
44

55
gem 'cocoapods', '~> 1.10'
66
gem 'cocoapods-check', '~> 1.1'
7+
gem 'danger-dangermattic', '~> 1.0'
78
gem 'fastlane', '~> 2.189'
8-
gem 'rubocop', '~> 1.18'

Gemfile.lock

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ GEM
4141
base64 (0.2.0)
4242
bigdecimal (3.1.5)
4343
claide (1.1.0)
44+
claide-plugins (0.9.2)
45+
cork
46+
nap
47+
open4 (~> 1.3)
4448
cocoapods (1.14.3)
4549
addressable (~> 2.8)
4650
claide (>= 1.0.2, < 2.0)
@@ -86,6 +90,44 @@ GEM
8690
highline (~> 2.0.0)
8791
concurrent-ruby (1.2.2)
8892
connection_pool (2.4.1)
93+
cork (0.3.0)
94+
colored2 (~> 3.1)
95+
danger (9.4.3)
96+
claide (~> 1.0)
97+
claide-plugins (>= 0.9.2)
98+
colored2 (~> 3.1)
99+
cork (~> 0.1)
100+
faraday (>= 0.9.0, < 3.0)
101+
faraday-http-cache (~> 2.0)
102+
git (~> 1.13)
103+
kramdown (~> 2.3)
104+
kramdown-parser-gfm (~> 1.0)
105+
no_proxy_fix
106+
octokit (>= 4.0)
107+
terminal-table (>= 1, < 4)
108+
danger-dangermattic (1.0.0)
109+
danger (~> 9.4)
110+
danger-junit (~> 1.0)
111+
danger-plugin-api (~> 1.0)
112+
danger-rubocop (~> 0.12)
113+
danger-swiftlint (~> 0.35)
114+
danger-xcode_summary (~> 1.0)
115+
rubocop (~> 1.60)
116+
danger-junit (1.0.2)
117+
danger (> 2.0)
118+
ox (~> 2.0)
119+
danger-plugin-api (1.0.0)
120+
danger (> 2.0)
121+
danger-rubocop (0.12.0)
122+
danger
123+
rubocop (~> 1.0)
124+
danger-swiftlint (0.35.0)
125+
danger
126+
rake (> 10)
127+
thor (~> 1.0.0)
128+
danger-xcode_summary (1.3.0)
129+
danger-plugin-api (~> 1.0)
130+
xcresult (~> 0.2)
89131
declarative (0.0.20)
90132
digest-crc (0.6.5)
91133
rake (>= 12.0.0, < 14.0.0)
@@ -116,6 +158,8 @@ GEM
116158
faraday-em_http (1.0.0)
117159
faraday-em_synchrony (1.0.0)
118160
faraday-excon (1.1.0)
161+
faraday-http-cache (2.5.1)
162+
faraday (>= 0.8)
119163
faraday-httpclient (1.0.1)
120164
faraday-multipart (1.0.4)
121165
multipart-post (~> 2)
@@ -171,6 +215,9 @@ GEM
171215
fourflusher (2.3.1)
172216
fuzzy_match (2.0.4)
173217
gh_inspector (1.1.3)
218+
git (1.19.1)
219+
addressable (~> 2.8)
220+
rchardet (~> 1.8)
174221
google-apis-androidpublisher_v3 (0.53.0)
175222
google-apis-core (>= 0.11.0, < 2.a)
176223
google-apis-core (0.11.2)
@@ -218,6 +265,10 @@ GEM
218265
jmespath (1.6.2)
219266
json (2.7.1)
220267
jwt (2.7.1)
268+
kramdown (2.4.0)
269+
rexml
270+
kramdown-parser-gfm (1.1.0)
271+
kramdown (~> 2.0)
221272
language_server-protocol (3.17.0.3)
222273
mini_magick (4.12.0)
223274
mini_mime (1.1.5)
@@ -230,30 +281,38 @@ GEM
230281
nap (1.1.0)
231282
naturally (2.2.1)
232283
netrc (0.11.0)
284+
no_proxy_fix (0.1.2)
285+
octokit (8.1.0)
286+
base64
287+
faraday (>= 1, < 3)
288+
sawyer (~> 0.9)
289+
open4 (1.3.4)
233290
optparse (0.1.1)
234291
os (1.1.4)
235-
parallel (1.23.0)
236-
parser (3.2.2.4)
292+
ox (2.14.17)
293+
parallel (1.24.0)
294+
parser (3.3.0.5)
237295
ast (~> 2.4.1)
238296
racc
239297
plist (3.7.0)
240298
public_suffix (4.0.7)
241299
racc (1.7.3)
242300
rainbow (3.1.1)
243301
rake (13.1.0)
244-
regexp_parser (2.8.3)
302+
rchardet (1.8.0)
303+
regexp_parser (2.9.0)
245304
representable (3.2.0)
246305
declarative (< 0.1.0)
247306
trailblazer-option (>= 0.1.1, < 0.2.0)
248307
uber (< 0.2.0)
249308
retriable (3.1.2)
250309
rexml (3.2.6)
251310
rouge (2.0.7)
252-
rubocop (1.59.0)
311+
rubocop (1.60.2)
253312
json (~> 2.3)
254313
language_server-protocol (>= 3.17.0)
255314
parallel (~> 1.10)
256-
parser (>= 3.2.2.4)
315+
parser (>= 3.3.0.2)
257316
rainbow (>= 2.2.2, < 4.0)
258317
regexp_parser (>= 1.8, < 3.0)
259318
rexml (>= 3.2.5, < 4.0)
@@ -266,6 +325,9 @@ GEM
266325
ruby-progressbar (1.13.0)
267326
ruby2_keywords (0.0.5)
268327
rubyzip (2.3.2)
328+
sawyer (0.9.2)
329+
addressable (>= 2.3.5)
330+
faraday (>= 0.17.3, < 3)
269331
security (0.1.3)
270332
signet (0.18.0)
271333
addressable (~> 2.8)
@@ -278,6 +340,7 @@ GEM
278340
terminal-notifier (2.0.0)
279341
terminal-table (3.0.2)
280342
unicode-display_width (>= 1.1.1, < 3)
343+
thor (1.0.1)
281344
trailblazer-option (0.1.2)
282345
tty-cursor (0.7.1)
283346
tty-screen (0.8.1)
@@ -302,15 +365,16 @@ GEM
302365
rouge (~> 2.0.7)
303366
xcpretty-travis-formatter (1.0.1)
304367
xcpretty (~> 0.2, >= 0.0.7)
368+
xcresult (0.2.1)
305369

306370
PLATFORMS
307371
ruby
308372

309373
DEPENDENCIES
310374
cocoapods (~> 1.10)
311375
cocoapods-check (~> 1.1)
376+
danger-dangermattic (~> 1.0)
312377
fastlane (~> 2.189)
313-
rubocop (~> 1.18)
314378

315379
BUNDLED WITH
316380
2.3.24

0 commit comments

Comments
 (0)