Skip to content

Commit e09caa9

Browse files
jeswrCopilot
andauthored
chore: add Dependabot configuration file (#17)
* Add Dependabot configuration file Configure Dependabot for npm and GitHub Actions updates. * Add automerge workflow for dependabot PRs * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @jeswr --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fbc84b1 commit e09caa9

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"

.github/workflows/automerge.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Enable automerge on dependabot PRs
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
automerge:
8+
name: Enable automerge on dependabot PRs
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
if: github.actor == 'dependabot[bot]'
14+
steps:
15+
- run: gh pr merge ${{ github.event.pull_request.html_url }} --auto --squash
16+
- run: gh pr review ${{ github.event.pull_request.html_url }} --approve
17+
env:
18+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)