Skip to content

Commit 5797e30

Browse files
committed
add dependabot automerge
1 parent 3a39b1a commit 5797e30

7 files changed

Lines changed: 245 additions & 46 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "bundler"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup Ruby
1111
uses: ruby/setup-ruby@v1
1212
with:
13-
ruby-version: 3.4.3
13+
ruby-version: 4.0.0
1414
- uses: actions/cache@v4
1515
with:
1616
path: vendor/bundle
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Dependabot auto-merge
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
dependabot:
14+
runs-on: ubuntu-latest
15+
if: github.actor == 'dependabot[bot]'
16+
steps:
17+
- name: Approve Dependabot PR
18+
run: gh pr review --approve "$PR_URL"
19+
env:
20+
PR_URL: ${{github.event.pull_request.html_url}}
21+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
- name: Enable auto-merge for Dependabot PRs
23+
run: gh pr merge --auto --merge "$PR_URL"
24+
env:
25+
PR_URL: ${{github.event.pull_request.html_url}}
26+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.3
1+
4.0.0

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 3.4.3
1+
ruby 4.0.0

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
source "https://rubygems.org"
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby "3.4.3"
4+
ruby "4.0.0"
55

66
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
77
gem "rails", "~> 8"
88
# Use postgresql as the database for Active Record
99
gem "pg", ">= 0.18", "< 2.0"
1010
# Use Puma as the app server
11-
gem "puma", "~> 4.3"
11+
gem "puma", ">= 5"
1212
# Use SCSS for stylesheets
1313
gem "sassc-rails"
1414
# Use Uglifier as compressor for JavaScript assets
@@ -19,6 +19,7 @@ gem "octicons_helper"
1919
gem "slim"
2020

2121
gem "view_component"
22+
gem "auto_preview", github: "joelhawksley/auto_preview", branch: "main"
2223

2324
# Reduces boot times through caching; required in config/boot.rb
2425
gem "bootsnap", ">= 1.1.0"

0 commit comments

Comments
 (0)