Skip to content

Commit efaf20a

Browse files
authored
Merge pull request #294 from YutaGoto/add-auto-merge
👷 add auto merge action
2 parents 86b890b + 3eb554f commit efaf20a

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @YutaGoto
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Dependabot Auto-Merge Agent
2+
3+
on:
4+
pull_request_review:
5+
types: [submitted]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
auto-merge:
13+
if: github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Fetch Dependabot metadata
17+
id: metadata
18+
uses: dependabot/fetch-metadata@v2
19+
20+
- name: Enable auto-merge
21+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{github.event.pull_request.html_url}}
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.yamllint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ rules:
66
new-line-at-end-of-file:
77
level: warning
88
truthy: disable
9+
line-length:
10+
max: 120
911

1012
ignore:
1113
- .gem_rbs_collection/

0 commit comments

Comments
 (0)