From bebe86eae6a706334b822e148443875611e3aef8 Mon Sep 17 00:00:00 2001 From: ydah Date: Wed, 5 Jun 2024 01:26:31 +0900 Subject: [PATCH] Revert "Add a Danger check to prevent review approval for cops that have become `Enabled: true`" This reverts commit 31cc9c7ad5822ec2077f35d9683a9694a555bc1e. --- .github/workflows/danger.yml | 22 ---------------------- Dangerfile | 9 --------- Gemfile | 1 - 3 files changed, 32 deletions(-) delete mode 100644 .github/workflows/danger.yml delete mode 100644 Dangerfile diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml deleted file mode 100644 index 79bff997..00000000 --- a/.github/workflows/danger.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Danger -on: - - pull_request -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true -jobs: - danger: - name: Danger - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - ruby-version: "3.3" - - name: Run Danger - run: bundle exec danger - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Dangerfile b/Dangerfile deleted file mode 100644 index 1e257235..00000000 --- a/Dangerfile +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -diff = git.diff_for_file('config/default.yml') -if diff && diff.patch =~ /^\+\s*Enabled: true$/ - warn(<<~MESSAGE) - There is a cop that became `Enabled: true` due to this pull request. - Please review the diff and make sure there are no issues. - MESSAGE -end diff --git a/Gemfile b/Gemfile index a1e1c2f9..57396ba7 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,6 @@ source 'https://rubygems.org' gemspec gem 'bump' -gem 'danger' gem 'rack' gem 'rake' gem 'rspec', '~> 3.11'