Skip to content

Commit f4f627a

Browse files
committed
Dependabot のプルリクエストを自動マージする仕組み
1 parent 176b018 commit f4f627a

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "gitsubmodule"
3+
- package-ecosystem: gitsubmodule
44
directory: "/"
55
schedule:
6-
interval: "monthly"
6+
interval: daily
7+
- package-ecosystem: github-actions
8+
directory: "/.github/workflows/"
9+
schedule:
10+
interval: daily
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
name: "Merge Dependabot PR"
3+
4+
on:
5+
pull_request:
6+
types: [ opened ]
7+
branches: [ master ]
8+
9+
jobs:
10+
merge:
11+
if: github.event.pull_request.user.login == 'dependabot[bot]'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: KeisukeYamashita/auto-pull-request-merge@v1
15+
with:
16+
pullRequestNumber: ${{ github.event.pull_request.number }}
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
labels: "dependencies"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_site/
2+
Gemfile.lock

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gem "github-pages", group: :jekyll_plugins

0 commit comments

Comments
 (0)