From 3902b7657ea6860cc1f6dcb42dbb2b8b581f4402 Mon Sep 17 00:00:00 2001 From: JayShortway <29483617+JayShortway@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:51:07 +0200 Subject: [PATCH] Adds the Danger bot. (#87) --- .circleci/config.yml | 6 ++++ Dangerfile | 1 + Gemfile | 3 ++ Gemfile.lock | 68 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 Dangerfile create mode 100644 Gemfile create mode 100644 Gemfile.lock diff --git a/.circleci/config.yml b/.circleci/config.yml index 662fc2b1..a2331c22 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,6 +2,7 @@ version: 2.1 orbs: android: circleci/android@2.5.0 + revenuecat: revenuecat/sdks-common-config@3.0.0 commands: install-android-sdk-on-macos: @@ -68,6 +69,11 @@ jobs: - android/save-build-cache workflows: + danger: + jobs: + - revenuecat/danger: + context: danger-bot + on-main: # On all pushes to main, except when it's a scheduled pipeline. when: diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 00000000..ca377fb4 --- /dev/null +++ b/Dangerfile @@ -0,0 +1 @@ +danger.import_dangerfile(github: 'RevenueCat/Dangerfile') diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..a432dd03 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source "https://rubygems.org" + +gem 'danger' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 00000000..888c3541 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,68 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + claide (1.1.0) + claide-plugins (0.9.2) + cork + nap + open4 (~> 1.3) + colored2 (3.1.2) + cork (0.3.0) + colored2 (~> 3.1) + danger (9.4.3) + claide (~> 1.0) + claide-plugins (>= 0.9.2) + colored2 (~> 3.1) + cork (~> 0.1) + faraday (>= 0.9.0, < 3.0) + faraday-http-cache (~> 2.0) + git (~> 1.13) + kramdown (~> 2.3) + kramdown-parser-gfm (~> 1.0) + no_proxy_fix + octokit (>= 4.0) + terminal-table (>= 1, < 4) + faraday (2.9.1) + faraday-net_http (>= 2.0, < 3.2) + faraday-http-cache (2.5.1) + faraday (>= 0.8) + faraday-net_http (3.1.0) + net-http + git (1.19.1) + addressable (~> 2.8) + rchardet (~> 1.8) + kramdown (2.4.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + nap (1.1.0) + net-http (0.4.1) + uri + no_proxy_fix (0.1.2) + octokit (9.1.0) + faraday (>= 1, < 3) + sawyer (~> 0.9) + open4 (1.3.4) + public_suffix (5.0.5) + rchardet (1.8.0) + rexml (3.3.0) + strscan + sawyer (0.9.2) + addressable (>= 2.3.5) + faraday (>= 0.17.3, < 3) + strscan (3.1.0) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + unicode-display_width (2.5.0) + uri (0.13.0) + +PLATFORMS + arm64-darwin-23 + +DEPENDENCIES + danger + +BUNDLED WITH + 2.3.26