Skip to content

Commit abcc95c

Browse files
authored
Merge pull request #2 from seamapi/dependabot-support
Add dependabot support
2 parents f17de8d + 8a4a553 commit abcc95c

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/dependabot.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: npm
5+
directory: '/'
6+
schedule:
7+
interval: daily
8+
commit-message:
9+
prefix: feat
10+
include: scope
11+
allow:
12+
- dependency-type: production
13+
ignore:
14+
- dependency-name: '*'
15+
update-types:
16+
- 'version-update:semver-major'
17+
groups:
18+
seam:
19+
dependency-type: production
20+
update-types:
21+
- patch
22+
- minor

.github/workflows/automerge.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Automerge
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
merge:
11+
name: Merge #${{ number }}
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
if: github.actor == 'dependabot[bot]'
15+
steps:
16+
- name: Approve pull request
17+
run: gh pr review --approve "$PR_URL"
18+
env:
19+
PR_URL: ${{ github.event.pull_request.html_url }}
20+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
21+
- name: Merge pull request
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{ github.event.pull_request.html_url }}
25+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)