Skip to content

Commit

Permalink
Remove dependabot config in favour of upstream
Browse files Browse the repository at this point in the history
Rails has started providing a `dependabot.yml` file, so instead of
maintaining our own we can rely on that instead.

See: #1243
  • Loading branch information
nickcharlton committed Jan 31, 2025
1 parent 5211c6e commit 9cb3cd6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 1 addition & 3 deletions lib/generators/suspenders/ci_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ class CiGenerator < Rails::Generators::Base

source_root File.expand_path("../../templates/ci", __FILE__)
desc <<~MARKDOWN
Uses [GitHub Actions][] for CI, and [Dependabot][] for dependency updates.
Uses [GitHub Actions][] for CI
[GitHub Actions]: https://docs.github.com/en/actions
[Dependabot]: https://docs.github.com/en/code-security/dependabot/working-with-dependabot
MARKDOWN

def ci_files
empty_directory ".github/workflows"
template "ci.yml", ".github/workflows/ci.yml"
template "dependabot.yml", ".github/dependabot.yaml"
end

private
Expand Down
7 changes: 0 additions & 7 deletions lib/generators/templates/ci/dependabot.yml

This file was deleted.

2 changes: 0 additions & 2 deletions test/generators/suspenders/ci_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class CiGeneratorTest < Rails::Generators::TestCase
run_generator

assert_file app_root(".github/workflows/ci.yml")
assert_file app_root(".github/dependabot.yaml")
end
end

Expand All @@ -25,7 +24,6 @@ class CiGeneratorTest < Rails::Generators::TestCase
run_generator

assert_no_file app_root(".github/workflows/ci.yml")
assert_no_file app_root(".github/dependabot.yaml")
end
end
end
Expand Down

0 comments on commit 9cb3cd6

Please sign in to comment.